Ask Your VB.NET Questions Here!
Do you have a question about the VB.NET Language, Compiler or IDE?
If so, then you've come to the right place, comment on this post and your question will be added to the list to be answered. Of course, depending on the nature of your comment, and the volume of comments received, we may not get to every question.
Thanks!
Duncan Mackenzie
Comments
Anonymous
April 15, 2004
Good for all VB users.Anonymous
April 15, 2004
Really a good idea... I hope it could be improved soon.Anonymous
April 15, 2004
Let me ask the first one:
What was the design decision behind the fact that, VB.NET does not support Operator Overloading? How hard it was to implement the feature in VB.NET? Will this feature be in the VB.NET specification in the future?
Although it doesn't support building such code, it should at least, in my opinion, support using overloaded operators coded in other languages (C# etc.) rather than using auto generated methods like "op_Multiply".Anonymous
April 15, 2004
I have created a client end user interface in vb6 and my data is in linux server i.e. in mysql now i want to access that data from some other place through that client end program or say from a .exe file. Now my question is what should i do to access that data?
Second i want to use jsp as middle ware between vb6 and Mysql, is it possible, if yes can any one help me.Anonymous
April 15, 2004
Thanks
i am looking for something like this.Anonymous
April 15, 2004
Hi..
Please send your help to me on my e-mailid i.e.
amit_bhardwaj5@yahoo.comAnonymous
April 15, 2004
Having a VB.NET FAQ (like C# does) it is a very good idea.
Gohan, VB 2005 will have Operator overloading... ;-)Anonymous
April 15, 2004
The comment has been removedAnonymous
April 15, 2004
Bitwise vs Logical
The 'and' and 'or' operators continue to be bitwise operators when in 99% of situations a logical comparison is what should be used.
No vb programmers use the awkward and strange 'andalso' and 'orelse' operators. These operators aren't even used in the demo code from Microsoft.
When the language first came out the 'and' and 'or' operators were logical and the 'bitor' and 'bitand' did bitwsise comparisons. This seemed far more sensible than the current situation of everybody doing bitwise comparisons instead of logical.
Any chane of this changing?Anonymous
April 16, 2004
I am creating a simple form to display data that is in a SQL Server database. I am using text boxes to display each record. The problem that I am having is that none of the records are being displayed in the text boxes. Does anyone know the code or statements that I need to display the data in the form?Anonymous
April 16, 2004
To use Reporting services effectively in our projects we need it to be able to use ADO .Net datasets(Cystal reports have this feature). There's no extensions available with vb code in MSDN or other codewise community sites.Anonymous
April 16, 2004
I'm trying to port an MS Access app to VB.Net and have run into some tough problems.
Why no multicolumn combobox??
Access has always had Continous Forms, VB6 had repeater control. Nothing in .net??
I realize these are winform issues more than specific vb, but isnt vb supposed to be a RAD tool?
IanAnonymous
April 16, 2004
I have a MDI application, when i open a child form it gives me a list of items in my database, i then double click on an item and it opens up another child form, in that form i can change the values, and even delete items, my problem is that once this is done i want the other form to refresh to reflect what changes i have made. Right now i am having to close the child form then open it up again in order to have it show the changes. Can anything else be done to make this work the way i intended?Anonymous
April 16, 2004
Any chance of getting an UnmanagedType.ByValTStr that behaves like VB's fixed-length strings used to? (sans appending the null at the last caracter of the string). The workaround suggested in KB 834056 is pretty messy, and it hardly seems any trouble for the platform NOT to replace the last char with a null. Call it a UnmanagedType.VBByValTStr or something. (Perhaps even UnmanagedType.ByValTStrWithoutAddingTheNullAtTheEndWhichMakesUsHaveToUseByteArraysWhichHaveToBeInitializedWithAStringOfTheExactSize)Anonymous
April 16, 2004
Are there any plans to add the 'reference type constraint' and 'value type constraint' in Visual Basic generics?Anonymous
April 16, 2004
Great idea, thanks in advance for the possible anwer.
How can I document VB.NET source codes like what you do for C#?Anonymous
April 16, 2004
I used the DataGrid Control in my WinForm,
but I can't change the color of ScrollBar in DataGrid.I trid to use the property "Scrollbar.backcolor",but it didn't work.so tell me How to ?
thank you.Anonymous
April 17, 2004
Please help me out. i am in a serious problemAnonymous
April 18, 2004
The comment has been removedAnonymous
April 18, 2004
Hi ,
I'd like to know how to :
- Share a memory allocated block between different programs
- clone the fortran 'Equivalence statement from fortran , ie , be able to see the same variable content with different names , ex : equivalence (array(10),i),(array(11),j) ... )
Thanks
Anonymous
April 18, 2004
Can you tell me the CLR supported Operating system.
the entire listing plzAnonymous
April 19, 2004
Is there a way to use direct text to speech with windows xp. I can't find it.Anonymous
April 19, 2004
The comment has been removedAnonymous
April 19, 2004
From VB.NET I would like to read Milestones, Task Duration, Start and End dates from Microsoft Project based on user input.Anonymous
April 19, 2004
I use VBcommentor & NDOC to auto create my documentation.
VBcommentor can be found a www.gotdotnet.com
NDoc can be found at http://sourceforge.net/projects/ndoc/
This seems to be the best for me. I have Also tried VbDocman, and Custome help builder.
Eric SchneiderAnonymous
April 19, 2004
Hi, I need to know what to do for intellisence in js files. When I have slient side js in html intellisence work well, but, when I move this code in js file intellisence don't workAnonymous
April 21, 2004
Why VB.net does not support field attributes?Anonymous
April 21, 2004
By requirement I have string array dimensioned when the form is loaded. I can pass the array to another sub that processes the array... But I need to then reference that sub(2) upon a button.click event.
How do I reference the array from the button.click sub? i.e. How can I "get" an array rather than "pass" one.
Thanks.
JamesAnonymous
April 24, 2004
How can I change keyboard layout in Notepad?
I programing in VB .NET. Thanks for help. Answear me with e-mail.Anonymous
April 26, 2004
Is it possible to run both VB6 and VB.Net on the same machine,or do I have to remove VB6 to be able to use VB6. I currently use VB6 but thinking of starting out on VB.Net
ThanksAnonymous
April 27, 2004
is there any limit for classes in a dll in .Net environment. If there is a limit then how many classes can be there in a .dllAnonymous
April 29, 2004
I am attempting to create a form that get's it's data from an Access database - Access 2000, but when I attempt to have the form access the database, I get the following error: unrecongize database format. Why would I be getting this error?
Thank youAnonymous
April 29, 2004
hii , Gmrg
my Reqt is ,
i have a parent form and child form ..
i have one button in parent form it ll show the child form . child form contains dtagrid and fill ths datas..
ok
i selected one row and click ok ...the corresponding row should bind the parent form datagrid..with out using database
urgent pla help me
tks .. for advance
ur ganeshAnonymous
May 02, 2004
how we can use user controlAnonymous
May 03, 2004
how i can convert a vb program into vb.net program?Anonymous
May 03, 2004
hii,
what do u mean by unsafe code.And what is the difference between managed code and unsafe code.Anonymous
May 03, 2004
I have a VB 6.0 application that I have attmepted to upgrade to VB Net using the standard VB Net upgrade facility. I get an error that the SSTab control doesn't have a design time licence and the application will not upgrade - any suggestions please.Anonymous
May 04, 2004
I am upgrading to a vb.net environment and developing in asp.net technology.
I am having a problem using the <link href="filename" rel="stylesheet" type="text/css">
Does anyone have a work around?Anonymous
May 06, 2004
Hi there,
I have 2 Questions:
1)How do I programmatically delete the Internet Explorer History with VB.NET?
2)How do I display the contents of Favorites Folder with VB.NET?
Thanks in advance!
Ben Thomas
ben@digitalshop.co.nzAnonymous
May 07, 2004
The comment has been removedAnonymous
May 12, 2004
web Applications used to start up but I reinstalled the OP and now I get a incoorect share path error when I try to open.How do I fix this ?
thank you for your great siteAnonymous
May 13, 2004
i would like to ask:how are autonumbers(server-generated primary keys) handled in a disconnected(.Net) database environment?Anonymous
May 14, 2004
I have a text file with no delimiters and a SQL Server table. I need to take that data and put it into the SQL Server table. The SQL Server table has several columns. I also have another table in SQL Server that has the field names and start and width of the field.
I don't know how to start. I need to put the fixed file data into the SQL Server table based on the layout info in the other SQL Server table.
Any help would be appreciated.
Thanks in advance.Anonymous
May 14, 2004
how to update database in distributed application?Anonymous
May 18, 2004
The comment has been removedAnonymous
May 18, 2004
The comment has been removedAnonymous
May 18, 2004
hi i need code for displaying selected item in listbox on the textboxesAnonymous
May 18, 2004
I want to convert the string into date format.
The below code is in vb.net shape and used in the webpage and then later stored in the db.
can anyone solve this error in the second statement.
Dim str_event_date As String = str_monthlist & "/" & str_daylist & "/" & str_yearlist
Dim str_event_date1 As Date = Format(str_event_date, "MM/dd/yyyy")
thanks
karanAnonymous
May 22, 2004
iam a beginner in vb.net and don't know any thing about try catch.plz guide me.
thx alotAnonymous
May 25, 2004
I have to fetch values from one dataset and then has to pass one of the column values to another dataset.
How can I achieve this?Anonymous
May 25, 2004
Can I make a call to 'C' program in .net?Anonymous
May 25, 2004
Yes you can call 'C' Program.Anonymous
May 25, 2004
How do you create a folder programmatically in VB.NET ?Anonymous
May 26, 2004
The comment has been removedAnonymous
May 29, 2004
Chris Green... doubt you'll find this response, but you didn't give an email address... your Toolbar click procedure doesn't have a 'handles' clause... so it will likely never be called.Anonymous
May 29, 2004
Hello. I just downloaded .NET SDK. I want to use it for creating console applications, but I can't found any solutions on how to use console in curses way (with cursor positioning, coloring and so on).
Is there anything I may use? (libraries, workarounds).
Will Console class be expanded in future .NET versions?Anonymous
May 30, 2004
How to call Windows Application Remotly
and creating instance of the fomeobject its giving an error that this application is running in a patially trusted Context.Anonymous
May 31, 2004
Hi
I would like to know how do you change the color of text in let say a richtextbox. The trick is I dont want to change all the text in the control. I just want to change certain text.
almost like appying a style sheet the richtextcontrol. So if you type a word in the control it should change its color or font according to a style sheet(for example)Anonymous
June 01, 2004
How to add an icon to Start->Programs using Setup project? ThanksAnonymous
June 01, 2004
i want to show the document in the textbox same as the word formatAnonymous
June 01, 2004
Want to display the date-time in date time picker ctrl according to the format of SQL server where its fetching/storing the data.Anonymous
June 02, 2004
I am using a datagrid to display information from an MS SQL DB. The data shows up fine. Now this is what I want to do. When the user clicks on an item in the DG I want it to populate textfields on the same form. That is where I want the editing to occur, which is why I have made the DG read-only. I also do not want changes to show up in the DG until the user has pressed a Save button.
Any suggestions, please e-mail me.
matthiesenjm@hotmail.comAnonymous
June 03, 2004
I am new to VB.NET, so please bear with me. I want to add a phone number field to my webform. Is there a way to make a text field a numeric field and add the parentheses and the dashes, so the user does not have to? (Within the application, without having to write code.)Anonymous
June 04, 2004
using console application possible to create vb.net windows controls. If possible how?Anonymous
June 06, 2004
Using VB.NET, when i get the temp folder name it returns it in the short filename format, e.g. D:DOCUME~1USERLOCALS~1Temp
can i convert this string or get this name in the long filename format, e.g.
D:Documents and SettingsUSERLocal SettingsTemp
?
Thank you,
SunnyAnonymous
June 06, 2004
Using VB.NET, when i get the temp folder name it returns it in the short filename format, e.g. D:DOCUME~1USERLOCALS~1Temp
can i convert this string or get this name in the long filename format, e.g.
D:Documents and SettingsUSERLocal SettingsTemp
?
Thank you,
SunnyAnonymous
June 07, 2004
Id like to create a listbox using code not actually dragging and dropping it on to form, it doesn't need to be in a specific place just need to be able to create oneAnonymous
June 07, 2004
The comment has been removedAnonymous
June 07, 2004
i want to develop a game and how can i build up the logic of target setting and what is the functionality of bounds and setbounds funtionsAnonymous
June 07, 2004
i want to develop a game and how can i build up the logic of target setting and what is the functionality of bounds and setbounds funtionsAnonymous
June 08, 2004
i need to use the ProgressBar ,but how can i
synchronize the thread that controles it with a methode that is runningAnonymous
June 09, 2004
The code which defines an object is found in aAnonymous
June 09, 2004
Any one know how in vb.net to make a listbox allow in place editing to occur. I can not find any properties of the listbox that makes it editable or find any examples of how do this for vb.net. You can email me at
sun_water_snow@hotmail.comAnonymous
June 10, 2004
The comment has been removedAnonymous
June 11, 2004
The comment has been removedAnonymous
June 12, 2004
I have to print the crystal report from a form on the click of a button .how do i write the code ?Anonymous
June 12, 2004
I have to print the crystal report from a form on the click of a button .how do i write the code ?
pls send the answers on harshal_11@yahoo.comAnonymous
June 12, 2004
The comment has been removedAnonymous
June 12, 2004
The comment has been removedAnonymous
June 14, 2004
How do I make my DataGrid have the XP visual style?
(I made a manifest and gave buttons FlatStyle.system and the look, but what about DataGrids?)Anonymous
June 15, 2004
If VB application exe other support files are located on IIS server and want to Lunch VB application form Web Browser How Can we do that,Any Idea?Anonymous
June 16, 2004
I have to send a file through the serial port.
Are StreamWriter and StreamReader my best tool,
or is there an API tool that sends files (of ANY TYPE!) byte by byte?
I've tried the Streams but they only seem to read *.txt. what about jpeg?Anonymous
June 16, 2004
The comment has been removedAnonymous
June 16, 2004
The comment has been removedAnonymous
June 16, 2004
I want to know whether it is possible to send data from a dataset to the database using a sqladapter? if possible how can that be done?
I actually want to insert a new row into my dataset and pass that row to my database. Kindly give me the solution....Anonymous
June 17, 2004
I am a beginner at VB.net so my question may seem foolish ... If I have an application that I am writing that is basically a question and answer application ... and depending on the answers to the questions, the navigation may change, should I make each question within a form or incorporate all questions within one form ...Anonymous
June 18, 2004
The comment has been removedAnonymous
June 18, 2004
Dear all,
How can I a make an Installable for a .net(vb/c#) app. including the .Net framework. WHat are the steps I have to follow to achieve the same.
Pls. help me.
UmeshAnonymous
June 18, 2004
Hi,
Anybody have any idea about vb.net program whether the application will work on PT930 or not. Currently it works with e-VB. If Yes, how?
Thanx in Advance.
UmeshAnonymous
June 20, 2004
How much faster is .Net's StringDictionary Class than VB's Dictionary object?Anonymous
June 20, 2004
i have to create 3 details section in crystal report in following sequence :
header section
detail section
header section
detail section
header section
detail section
how do i do it ?i'm able to create section but not able to control their sequence as i need .Anonymous
June 20, 2004
i have to create 3 details section in crystal report in following sequence :
header section
detail section
header section
detail section
header section
detail section
how do i do it ?i'm able to create section but not able to control their sequence as i need .
contact m e on harshal_11@yahoo.comAnonymous
June 22, 2004
All I want to do is print a jpeg image file without loading it into memory. I suppose all I really want to do is use a standard Windows print from my VB.Net program.
Is there any way I can do this?
BrianAnonymous
June 22, 2004
The comment has been removedAnonymous
June 23, 2004
How can I change a vb.net setup program? I need to change a form on it--but when I do, it doesn't change in the setup installer.Anonymous
June 23, 2004
How can I get context sensitive help for MenuItems? In VB6 the Menu Editor provided with HelpContextID for MenuItems. Thanks in advance.Anonymous
June 24, 2004
None.Anonymous
June 24, 2004
hsdfhsfshfAnonymous
June 25, 2004
I am trying to write VB.Net code and would like to have Option Strict On
Here is my code:
Dim IndOppArray As Array
Dim DateArrayElem as string
IndOppArray = Split(DateArrayElem, "|")
Dim OppGUID As String = IndOppArray(1)
I get an error message on the above IndOppArray(1):
"option strict on disallows late binding"
I have also tried:
Dim OppGUID As String = IndOppArray(1).toString
Any help on why I am getting this error message? Thanks.
JillSarAnonymous
June 27, 2004
I have some Vb.NET that uses the StreamWriter class to write a simple file.
When I use my code to in a windows form it works great.
When I use the exact same code in a Windows Service, the file is created but no data is written.
What is the difference???!!!Anonymous
June 29, 2004
My DataGrid is bound to a DataSet, with following columns: Description, CashExp, CreditExp,Frequency
On run time, I am adding two new DataColumn “AnnualCash” and “AnnualCredit” and defining Expression property to give product of two columns, as follows
Dim dc As DataColumn
dc = New DataColumn("AnnualCash", GetType(System.Single))
dc.Expression = " CashExp * Frequency"
myDataSet.Tables("ClientExpenses").Columns.Add(dc)
dc = New DataColumn("AnnualCredit", GetType(System.Single))
dc.Expression = " CreditExp * Frequency"
myDataSet.Tables("ClientExpenses").Columns.Add(dc)
The only problem I am getting is when CashExp or CreditExp or Frequency is changed the value of derived column is not changed (calculated) until user changes the row either by tab or arrow keys.
How can I change this behaviour so that the derived columns gets calculated when user edit values in a cell.Anonymous
July 02, 2004
I would like to mirror/clone one monitor to another through VB .Net. Example: Display Windows Media Player and have it display on multi monitors, but have the ability to change to only display on one within my program.Anonymous
July 05, 2004
I have a VB 6.0 application that I have attmepted to upgrade to VB Net using the standard VB Net upgrade facility. I get an error that the SSTab control doesn't have a design time licence and the application will not upgrade - any suggestions please.Anonymous
July 05, 2004
hi
i have two pages say a.aspx and b.aspx
a.aspx has two user controls 1.ascx and 2.ascx
now a.aspx is executed which is a search page where 1.ascx takes the search criteria and a button and 2.ascx contains a datagrid to display result.
now 2.ascx has a link to open a popup that is b.aspx. now i want to handle the textbox control on 1.ascx from b.aspx. can i use findcontrol for it. if there is any other solution plz tell me
rohitAnonymous
July 08, 2004
I have an interview in Vb.NET . Do you have any interview questions or links that would be of help to me? Thanks in advance.
Shoba
Email - shoba242002@yahoo.comAnonymous
July 11, 2004
I have the following code in a VB.NET program:
datInventory = New StreamReader("C:MyVBProjectsAssignment ProgramsClarkJMProgram4Inventory.txt")
It works fine on my machine, but what if someone opened it on another machine and on a different drive? This piece of program code would need to be changed. Is there a way to code this so the code would be transferrable?
Thanks,
Jim
Clarkburgr@Hotmail.comAnonymous
July 13, 2004
I was wondering if it was possible to enter null for a date time picker?Anonymous
July 13, 2004
email-computerg33k@msn.comAnonymous
July 13, 2004
its emergencyAnonymous
July 14, 2004
how to upgrade vb6.0 applications to vb.netAnonymous
July 14, 2004
Can i make a project with MSVS 6.0, copy it to a Machine with MSVS.NET, edit it there (run it there etc...) and copy it backt to the first machine with MSVS 6.0 and go on working on it or am I getting Problems with that?
Are 6.0 Projects compatible with .NET Projects or is there a upgrading-downgrading Barrier ????Anonymous
July 15, 2004
On Windows 98 machines, when I print using the PrintDocument I get the exception message that is coded in the "Catch AS" portion of the try statement.
Here's a clue: If I open a Word document and print to the same printer, then my VB.NET application prints without exception.
Same application/same printer on WinNT, or XP or Win2000, works fine.
I will be glad to furnish the code text of my application if need be.
Yours Truly,
VB Rookie In Florida
Peter Trahan
peter.trahan@aurafin.comAnonymous
July 15, 2004
What is difference between dataset and dataview????????Anonymous
July 15, 2004
How can I use "SelectionTabs" property in Richtextbox control using VB.NET.Anonymous
July 18, 2004
I donwloaded the new controls Visual Basic .NET Power Pack, very cool tools, only problem is that when I try the Blend property dropdown in the property window I get an error, also when I deploy it to a client machine it won't work is there something I need to do in order to get both features to work?
Thanks for your help.
DennisAnonymous
July 22, 2004
Hi ,
I'm a beginner in web-application with .NET but i'm not familiar with VB.NET.
....I have created a MODULE in my Web-Application and i have some functions in it.
But for some reasons i want to convert this module to DLL or something like this.
Now How can i create a DLL from a module and call its functions from code-behind.
Please Help me.if possible please show me an article about this topic.
Best Regards.Anonymous
July 23, 2004
how to combine two user-given conditions to retrieve data from databaseAnonymous
July 25, 2004
how do i make it so vb runs with a process and then preforms task with that process...
and whats the code for autoclick..and...how do i find positions on my screen (x, y)Anonymous
July 25, 2004
The comment has been removedAnonymous
July 27, 2004
What is ENCHIddeRefresh in VB.NET 2005?
piece of IL:
.method private instance void __ENCHiddenRefresh() cil managed
It is only in VB compiled IL.
Somehow related to "enc" "edit and continue"?Anonymous
July 27, 2004
Hi,
How can I call Stored Procedure using ADO in VB6.
Kindly reply at the earliest.
Thanks and regards,
MKS Khaleel
mkskhaleel_mca@yahoo.comAnonymous
July 28, 2004
PlsAnonymous
July 28, 2004
I HAVE WRITTEN A VB MACRO TO DRAW GROUND PROFILES IN AUTOCAD. I WANT TO RUN THIS MACRO THROUGH A TOOL BUTTONAnonymous
July 28, 2004
i need it for survey workAnonymous
August 01, 2004
How do i set the chart type in Visual Basic.NET
the chart control is imported from the excel applicationAnonymous
August 01, 2004
How do i set the chart type in Visual Basic.NET
the chart control is imported from the excel applicationAnonymous
August 02, 2004
Hi,
I have written a toolbar button for internet explorer, when clicked it has to fetch me the Page Url and title. Can I do this in .net?
ThanksAnonymous
August 02, 2004
Hi,
I have written a toolbar button for internet explorer, when clicked it has to fetch me the Page Url and title. Can I do this in .net?
Thanks
Sujith
skjagini#hotmail.com(replace # with @)Anonymous
August 02, 2004
How do I write a time delay into a VB code? ie, I would like the script to loop every 5 minutes?Anonymous
August 02, 2004
The comment has been removedAnonymous
August 02, 2004
The comment has been removedAnonymous
August 03, 2004
How to change the BackColor of DatePicker. Before clicking on the drop down, the back color should get changed
.Anonymous
August 04, 2004
What Iterative statements each language does support ? Which one has better combination and Why ?Anonymous
August 04, 2004
what parameter -passing methods each language does support ? which one has better combination and why ?Anonymous
August 05, 2004
Any Option to set to increase the no of printingAnonymous
July 02, 2008
PingBack from http://lukehome.free100megs.com/runopenfiledialogatstartupinvbnet.htmlAnonymous
June 16, 2009
PingBack from http://fixmycrediteasily.info/story.php?id=955