Answer Questions
Adam Mishler Imports? Importance, Advantages and Disadvantages
The Project Properties Imports are the list of all class that will be used in the project for referencing classes/dlls. I just want to clarify something if there is any article in MS that will discussed the advantages / disadvantages and ways of importing classes. And also the best method to do for that. (In Script and/or in Project Properties.) I also need to know what will be the effect for the Project of Importing in Pro ...Show All
microsoft_developer Getting the connection string for a project
I'd like to set a string variable to the connection string for a project. I've seen the build connection string module/function and tried to use it but it's hopelessly complex for what I want. I just want the string. Is there an easier way LOL! I want to get the value of the current Connection string to open a SQLDataReader. Eventually, I want to store the Connection string in a separate dat ...Show All
Alex Feldstein How do I get the value that is in the {}
I have a combobox with its datasource bound to an enumeration. Now When I look at it the selecteditem and selected value are objects. I don't need the string I need intgere assignes to that string and it looks like this in the debugger value column under locals RED {1} BLUE {2} GREEN {3} So how do I get the integer. If I do X = comboBox.selectedValue.GethashCode it works but I don't know if that is the right way. Is there a way to ...Show All
RickVF Compiler Problems even though code is sound.
Hi, I'm having a strange problem with Visual Studio 2003 and I'm hoping someone can help. The problem is I'm getting compiler errors even though the code is fine. Here's an example.... This is code from a form I have... Public Class frmGasDiagram Dim udtGasDiagram As clsGasDiagram In some methods of the form I get errors saying the type udtGasDiagram cannot be used as it hasn't been defined, but it is. If I change the ac ...Show All
Bjoerni Creating Events Dynamically
I have a function that creates a form, creates controls for that form, adds the controls to the form, then displays the form. Now, all this works perfectly. I just cannot figure out how to create events for the newly created form. This is what I have: Friend Form2 = New System.Windows.Forms.Form() Friend Amount = New System.Windows.Forms.Label() Friend TBar = New System.Windows.Forms.TrackBar() Friend Bevel = New System.Windows.For ...Show All
Killaars Help reading xml data into my application
http://www2.mvr.usace.army.mil/OMNI/ws/OMNIdataWebService.cfm Help! Based on this page, I have used their .xsd file to generate classes in my VB express application. I then load in their "sample xml" file. To test, I run this code: MessageBox.Show(vesloc206.SERVER.POOL(1).VESSEL(0).VESSEL_NAME) It works. However this code: MessageBox.Show(vesloc206.SERVER.POOL(1).VESSEL(0).STATUS_RECORD) gives me err: Value of type 'vesloc206.STATUS_RE ...Show All
Thomas Andersson Running an external application
Hi All: I want to program a button's click event to run a Windows batch program. Is this "legal" If so, could you either provide me with an example or point me to where I can find some documentation on this. If not, please tell me how this little feat can be accomplished elegantly. Thanks. Try this: p.StartInfo.Arguments = strTextFile Thanks, David and Daniel. One&n ...Show All
Rongping Progress Bar & Status Label Problems
I am working on a web browser and have reached the step of inserting a progress bar and status text. I have a status strip at the bottom but when i insert a Progress Bar and I run the Program, it never works. For the status text I need to know what code is needed for there too. Could somebody tell me what code I need to insert into it so it will function properly. Also, will the Progress Bar disappear when I'm not loading a page then Thanks ...Show All
zyont1000 Reading characters from a line
I was wondering (DESPERATELY) how to read only certain characters from a line of text and how to define where the code will start reading and how far into the line the code will read. and lastly - is it possible to store these specified characters in a variable I've been messing around with "Mid()" but its not doing exactly what I need it to. THANX I agree - I was thinking of the substri ...Show All
The Ken Remove items from My namespace
Is there any way to remove items from the My namespace or to disable My completely so that I can fill it with custom objects I like the idea of implementing the My namespace in my app, but I have no use for the default objects. For example, I want My.User to refer to a shared instance of a class in my application that has nothing to do with Microsoft.VisualBasic.ApplicationServices.User. Thanks, Lance ...Show All
imran_517 How to Read, Write, Modify & Remove Application Settings From Config File Using VB 2005?
.NET Framework 1.1 provides System.Configuration Namespace which exposes methods for reading information from the config file, but there are no methods for modifying the contents. Is there anyway this can be done using Visual Basic 2005, without implementing a custom class Hi, Good news! There are very simple features to do this in VB 2005: the Project Designer and My.Settings. First, open the Project Designer by double-click ...Show All
MCJ Try..Catch not executed in EXE
I have a Shared Sub Main() in my application which, after performing various startup tasks, shows the main form by executing Application.Run(frmMain). All code in Sub Main is encased in a Try..Catch block. If an error occurs further down in the call stack (in the form or another class), then that Try..Catch block catches the error, displays a message, and calls a shutdown routine. This works fine in the development environement. However, in t ...Show All
ZHOU Dan here
i alrdy started to crawl Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim n As String n = "Error" Dim z As String z = "Click Fix" & ...Show All
FHJJr Configuration system failed to initialize ---- Help Please
When i try to run my app I get this exception "Configuration system failed to initialize" I recently added a datascource to the app and am assuming that something has gone wrong there but it was all working ok and then this error just started. I assume it's a problem with my appconfig file which i'll post here I cant see anything wrong with it but.!! I've tried deleting the ConnectionString Section but nothing helps and i cant run my app at all! ...Show All
GregA modal dialog active...
Any news on the "Microsoft Visual Studio cannot shut down because a modal dialog is active. Close the active dialog and try again." I have had this happen several times and its a pain in the butt! ME TOO ... now this is happening almost every time I try to shut down visual studio. There is absolutely NOTHING open on my pc except VS and there is NOTHING open in VS ... I have closed down EVERY window possible ...Show All
