Answer Questions
foobarxxyz is there a way to modify code in vb.net on the fly when it is running?
is there a way to modify code in vb.net on the fly when it is running I vb 6 you could hit ctrl break then modify the code then hit F5 and the changes were made. in VB 7 u have to do a recompile after u make the changes for them to take affect. Does anyone know if there is a way to make changes and not recompile the code and have the changes take affect right away. The previous posts stated that a breakpoint should first be made. But what about the times when you want to see the code that prompted the messagebox for example In VB6, when you get a message box, you can press CTRL Break then you can see the code. You don't need to know in advance what exact part of the code you are "debugging" ...Show All
cheston Setup Produced By "Build, Publish" Gives Error After I Uninstalled VB With CD And 'Removed' All Installation CD Programs
Hello, I created a setup file from my application. I did this because I want to put my application on other PCs without installing Visual Basic. I basically want to just run the applicatoin on other PCs. What I did to create the setup file was within VB I clicked "Build" then "Publish." I then wanted to test the setup file on my PC, so I removed everything given to me by the VB installation CD! So, I uninstalled VB using the installation CD. But, I also had to go to the control panel to remove some of the programs that the installation CD gave me. I did this because the uninstall via the CD left things on my system that the installation CD gave me. When I was done, the control panel, remove programs listing ...Show All
robertpnl Delay of 1 sec in code
Hi In my application , I want to execute a code then wait for 1 sec then again execute with some changes and again wait and so on I used Sleep API but i am unable a print a status that loop is running even if i had written before the loop could execute. is there any other way to have a delay of 1 sec other than what i had used Help As stated the problem with the sleep is that this thread will be suspended for the duration of the sleep. Nothing on this thread will run. Which version of VB are you using This doesnt look like VB.NET code and MsComm control I dont think is provided in VB.NET Hi Thank u for your concerned re ...Show All
djshades2004 How to know which panel was on top?
Just want to ask how can I possibly know which among the three panels was currently on top of a certain form.Simply means which panel was the user was staring at thanks.... How are the panel's positions being changed Or are you just toggling visibility In either case when you progmatically set your panel also set a variable the hold info pointing to the last activated panel...ie the name or if need be a complete panel reference ...Show All
pat1975 Consume a VB.Net Bitmap in VB6
Hi All: I was hoping I would be able to consume a VB.Net bitmap in a VB6 picturebox. I have no problem creating the system.drawing.bitmap, and I am able to consume a com wrapper class for the bitmap in my VB6 app; however, I can figure out what to do with the bitmap so the the VB6 picturebox can use it. Any ideas If there is a better place for this question please direct me to it. Thanks, Doug. Hi Jonathan: That looks like what I needed -- Thanks! btw, when I try and load the project in VB2005 I get these errors: Warning 1 Load of property 'RootNamespace' failed. The string for the root namespace must be a valid identifier. InteropUserControl Error 2 '$safeprojectname$' is ...Show All
Horea Soanca Adding child nodes to a tree view.
I am trying to add child nodes to a treeview. I have to do this at runtime. Here is the code that I want to run: For each strFile as string in my.computer.filesystem.getname(dbLocation) if ctype(strFile, String).EndsWith(".cvc") Then dbTree.nodes.add(strfile) End If Next There are three problems with this. If I use my.computer.filesystem.getname(dblocation) it doesn't return any results, so I use getFiles, but that gives the full name of the file, I need to have just the base file name, which is a database (ie, test.cvc, test2.cvc, etc). The second problem is that I can't set these nodes as child nodes of the appropriate node. The third problem is that I need to add child nodes to each and every one of the added tree nodes. I understand th ...Show All
Black_Knight Array starting at 1
I'm redim a array to start 1 and to go to 600, does anyone know how i tryed using the "to", but never worked ReDim Preserve Array(1 to 600) Actually, if I recall correctly, the reason why (0 to x) syntax is now allowed is that for a large ammount of cases it reduces the work needed to upgrade to .net. That article is out of date - you can now (as of 2005) use the "0 to x" syntax again, although you must specify 0 as the lower bound. The speculation is that this is allowed to either make VB6 developers feel more comfortable or that a future version of VB will allow non-zero lower bounds again. David Anton www.tangiblesoftwaresolutions.com Instant C#: VB to C# conver ...Show All
r3n Threading in VB.NET is complex--any alternatives?
[Background and rant first; question below.] In VB5, I wrote a simulation model with 2-D animation on the form. I could start, pause, continue, and stop the simulation. While the simulation subroutine was running, the form controls still processed user's clicks, and the simulation could query the controls' state and pause or stop as requested. It was all in one thread; I didn't even know what a "thread" was. Now, I'm writing in VB.NET another simulation with 2-D animation. I want a "control center" form with start, pause, continue, and stop buttons, a small progress bar form, and an animation form. These have to communicate using shared data and event firing. I am spending a ridiculous amount of time learning a ...Show All
Cristian Nieva Set Dropdown List Items to Hyperlinks
I am using VB in Visual Studio 2005 and have a master page with a dropdown list and I would like to have particular pages loaded depending on what item in the dropdown list the user selects. It is not clear to me how I can make the items in a dropdown list hyperlinks. Thanks. As an asp.net question you may want to direct this question at the forums.asp.net They cover specific Web / ASP.NET issues. When you say "pages", do you mean that you want to show additional forms from your project or you want to open your web browser to a web page from the dropdown list When I click on an item in the dropdown list I want to load a new web form (I ...Show All
learningdba VB6 -> VS2002 -> VS2003 -> VS2005 -> nowhere fast!
So, the upgrade from VB6 to VS2003 was really painful when it happened. A positive thing to note about it is that when you do that one you get big lists of errors and warnings and things that you need to change. If you then take that code and try to upgrade it to VS2005 you get NO warnings and NO errors and, dang it, a lot of things just don't work. It's very frustrating... Thanks, Jonathan, for your assistance. We have wasted too much time on VS2005 and will not be using it any longer. VS2005: has hard crashes at least once every few hours. has very poor management of interop and loses references to dlls and controls on a regular basis handles errors on forms very poorly has no prov ...Show All
KitGreen Create control at runtime
I want to create ocx component in Form at runtime. I got the ocx from net. that is Hardwareinfo.ocx. I want to know how can i create that control at runtime in form. I want to call hardwareinfo. ProcessorID at runtime. Because i want to get my Processor Serial number. Do you have any successfully method to get it Thank you, Supun to get the processor SerialNumber (possibly known as the Processor ID), this would require either doing P/Invoke or using WMI add a reference and import the System.Management namespace and add this on say, a button click or wherever you wish the code to be executed: dim theClass as new ManagementClass("Win32_Processor") dim theCollection as ManagementObjectColle ...Show All
Thomas Olsson Single Instance Windows Forms Applications
I've searched the net for awhile and couldn't find a solution. Let's take Photoshop as an example. It runs in single instance mode and any new image opened by user is handled by the single instance. That is, the single instance has the address of the new image as an argument. I wanted to implement this concept with Mutex but coudn't find a way to pass the address of the new document. Any help in C# or VB.NET is appreciated! That helped a lot. Thanks. you could also detect the number of instances that the application has. So if there is already an instance (> 1) then you could just quit the new instance.... Dim theProcesses() as System.Diagnostics.Process.Get ...Show All
joy2007 VB 2005 Express false compiler error
I have a VB 2005 WinForms Project which is giving what I think is a false error. On the Designer screen for the main form (which normally displays the form layout etc.) I get: One or more errors encountered while loading the designer. The errors are listed below. Some errors can be fixed by rebuilding your project, while others may require code changes. '.ctor' is not a valid identifier. Hide at Microsoft.VisualStudio.Shell.Design.Serialization.CodeDom.CodeDomEventBindingService.ValidateMethodName(String methodName) at System.ComponentModel.Design.EventBindingService.EventPropertyDescriptor.SetValue(Object component, Object value) at System.ComponentModel.Design.Serialization.CodeDomSeriali ...Show All
Pockey Is VB2005 and VB.NET are same?
Hi, I am new to VB2005 programming and i know it is a bit stupid question to most of you people. But i am unable to get a comprehensive answer to this question on different site. So i am confirming from you people that "when someone is referring to VB2005, does this mean that he is talking about VB.NET as well" in short, is VB.NET and VB2005 are same thing or not cheers, Using VS2005 you can create application which will require DOT NET 2.0 on the deploying machine. While creating application you can use any language (VB, C# etc.) Using VS2003 you can create application which will require DOT NET 1.1 on the target machine. again, while creating the application you can use any language of your choice. ...Show All
Jon Stalnaker Windows Service Monitoring Problem On Vista
I've built a small utility to monitor the status of SQL Server Express and start/stop it and it works nicely on Windows XP SP2 and fuctioning great but when I've tested it on windows vista it monitors the service ok but I can't start/stop the service any more unless I use the Run as administrator command to start my tool I've used the folowing code to test my rights on windows My .User.IsInRole(Microsoft.VisualBasic.ApplicationServices.BuiltInRole.Administrator) but it gives me false - note that I've logged as an administrator to windows - is there is any way programtically make the program have administrator rights on windows so I can use all functionality of my little tool Yes. You may ...Show All
