Answer Questions
George Giolfan Different Versions ? What is that?
hi folks Just joined here ,curious about few things before i leap into Visual basic What are these different versions here Visua Basic Express Edition Visual Basic 2005 Visual Basic 6 Professional ,standard etc etc editions...So confusing ..Could some one elaborate this please.. Thanx There are many versions of Visual Basic : Visual Basic 6 (1998) Visual Basic 7 (2002) (.NET) Visual Basic 7.1 (2003) (.NET) Visual Basic 8 (2005) (.NET) There are many editions, one of them is Express and it's a 100% free edition. Product Feature Comparisons . Basically the current versions of Visual Basic is Visual Basic 2005. There are various versions of the product and VB express (Full name is VB 2005 Express Edition) ...Show All
LTD control panel items
Hi there, I'd like to ask how could i retrieve the name of the items on the control panel. I know they are .cpl files and know how to run them, but how could i get the name of them thnx; Here's a 'not foolproof', 'bruteforce' way of looking at them. Imports System.io Public Class Form1 Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim fvi As FileVersionInfo = Nothing Dim files() As String files = Directory.GetFiles( "c:\windows\system32" , "*.cpl" ) For Each x As String In files fvi = FileVersionInfo.GetVersionInfo(x) TextBox1.Text = TextBox1.Text & Path.GetFileName(fvi.Fil ...Show All
etones Starting apps at shutdown
I am writeing a simple app that displays a message telling the user to turn off the moniter etc before the user shuts down the system. Could someone exlpain how I can run the app at shutdown. The app also has to be iinstalled on a large network, is there anyway of installing it on all the machines at once. Thanks Hi Rob, Take a look at the ClickOnce delivery system. It's designed to enable applications to be installed from remote machines as and when they are updated. I am unsure as to what style of application you are creating, but if you can have a form loaded in it, a simple way to detect a system shutdown would be to handle the FormClosing event and check the value of the FormClosingEventAr ...Show All
sujazach bubble sort in a list box
OK, from what I understand, I would be better off trying to sort numbers in a bubble sort in my listbox. I used the listBox.sorted = true but that does not sort larger numbers correctly., What is the code on this bubble sort and do you just call it in a subroutine Here is the problem with the sorted list command. It does not work correctly with numbers. If you have a numeric list, and the numbers are bigger than 9, or have decimals in them you are out of luck. This is something that MS needs to address in their next code upgrade. Having a single line call for a bubble sort or other types of sorts, be they numeric or whatever would be great. I will try the other thing and see if it works. ...Show All
Franco Finstad Hello nooby here... needs a quick answer!
Ello... I am in the middle of programming a game... ... again.. in visual basic... and I can't seem to find a way to make it check to see if a image is a certain image... Basically... what i want it to do... ... is when you click it... have it check to see which picture is up... Example (Red is the part I'm stuck on and can't seem to get to work I've tried so many different things its insane... but I'm sure one of you experts has the answer I'm looking for) : If Picturebox1.Enabled = true And Picturebox1.picture = ("C:\Picture.jpg") Then Picturebox1.Image = Nothing Picturebox1.load = (C:\Picture2.jpg") End If ANY help what so ever would be appreciated... Thank you all, Moveit man.... so close!!!... now i hav ...Show All
Christoph_S VB 2003 & .Net 1.1 - Data Write/Read Issue
Hi, Working upon an embedded application and have conclusively found the following issue. I have an application that was written before in VB6 that has been upgraded successfully to VB.Net 2003. All issues resolved except the following. Previously, we used the Win32 API to make data writes to a logical disk upon the PC. With the current code, we have upgraded to use the FileStream .Net approach to make all data writes and reads. For interest sake, this is an embedded application that keeps some data in a specific logical drive. The issue is as follows, when I power off the PC and power on, the data is being trashed upon the logical drive where it is being written. I am almost certain that the VB.Net approach we have imple ...Show All
Jademobile Need help on Visual Basic and Excel
I have a few reports already design on excel, I go to edit query and just change the range of dates then just refresh the data. I now I can get the SQL language from the edit query option. What I will like to know if there is a way of getting this through Visual basi. I will like to do a menu in visual basic with buttons for all the reports then bring a submenu within visual (the program) wich asks for the date ranges and then using the sql language and the date range; bring the report in excel. I know how to design the buttons (a menu) and submenu through visual basic, but I don;t know how to open and design these excel reports using the sql language. I will appreciate any help, thankyou. Take a squiz at this and see if it's a ...Show All
arturm Feature Request: Regions Allowed In Method Bodies
It would be really handy if regions were supported within method bodies. I've been using a "design-by-contract" style approach and I would like to be able to put my method's pre-conditions and post-conditions into regions. We're just a bunch of volunteers here, trying to answer questions. We don't get to change .NET or the IDE (I wish). A suggestion like that is best given to the MSFT developpers directly. Has been suggested before but not a very high priority at MS. I really wouldnt hold my breath about it making its way into the product and time soon. but obviously making the suggestion as well adds weight to the suggestion and increases its likelyhood of being implemented. &nbs ...Show All
NickNotYet How do I suppress display of "0"s in GridView web control
I would like to be able to suppress the display of numeric data in a GridView web control if the value is zero. In other words, if the data is 0 or 0.0 I would like to to display a blank field. I can find no way to do this with DataFormatString. Any suggestions These questions are referred to www.asp.net. I don't think this is possible using the DataFormatString. ...Show All
torvaldson Error message: module containing it is not loaded in the debugging session
Hi I've been having the same annoying minor problem ever since I started using VB.net and was wondering if this is just a feature or whether there is a way round it. The issue I'm having seems to concern shared members of classes. When I try to access one of these member variables or functions to see what their current value is at run time (F9), I get the error message: <membername> is not declared or the module containing it is not loaded in the debugging session. My code is trying to do this: databasePath = Path.GetDirectoryName(txtDatabase.Text) Why can I not see what databasePath is going to become by hitting F9 Thanks for your help! The only way to bring up the quick watch window is in debug ...Show All
Gidjett InvalidOperationException
Hi , I know I am missing the obvious , but why am I getting an InvalidOperationException ,when I try and run this code (vs 2005) , further comment to exception " Collection was modified; enumeration operation might not execute." Any Solution with examples will be greatly appreciated ! Dim row As HidWkFlwDataSet.tblPodRow For Each row In Me .HidWkFlwDataSet.tblPod.Rows If row.Verified = False Then Me .HidWkFlwDataSet.tblPod.Rows.Remove(row) End If Next See if this helps. Dim row As NEW HidWkFlwDataSet.tblPodRow Thanks Chuck, I have tried iterating backwards through the collection , the problem is that the code in the If ...Show All
Kosmo007 How to get computer names on the network
I want to populate all computer names available on the network in a listbox in vb .net 2005. Please if any one knows how to do it tell me. Hi, Last post of this thread http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=215715&SiteID=1 has the code. Add a reference to System.DirectoryServices to your project and imports System.DirectoryServices in your code file. Best regards, I want to build a form for client where user can select computer name from his/her network (it could be workgroup or domain) and the sql server name also. In vb6 it automatically builds a form for odbc connectivity, but .net does not have such form. i want to build this kind of form. http://www.codeproject.com/csharp/Serve ...Show All
Dato0011 Enabling user control mouse events
I have created a user control and placed it onto a form and it all generally works OK. I have put code into the form to react to Mouse up, down and move events for the user control but the form code is never entered when I click on the user control. I am guessing that I need to put code into the user control to generate these events. If so can anyone suggest what is required You're welcome, poiuytrewq Thank you but this doen't really answer my problem. I have coded my user control with all its properties and it works well on my form. I want to detect when a user clicks anywhere on the user control and so I created the MouseDown event handler in the form's c ...Show All
warning9 How to set a control's visible property.
I have a form that has a combo box with 7 items and also has 7 group boxes. Basically, I would like the user to click an item in the combo box and have the corresponding group box appear. If the user clicks a different item in the combo box, then I want the visible groupbox to become invisible, and the new corresponding groupbox to become visible. Could someone help me out with the code Sorry guys, this has been covered in another thread. Yes, the Groupboxes do get put inside one another so you need to keep them separate in the designer and set the location programatically. This works fine but is a real pain when you're designing a busy screen! Rich You don't hav ...Show All
RobertMcNair "Bad Sequence of Commands" FTP Error
I'm getting a strange error in my VB FTP program. It works fine when I download a file from an FTP server, but the second time that I download the same file i get "503 Bad Sequence of Commands". If I download one file, download 3 other files, and then try to download the first file again, I get the error. If I close the program and open it again, the error is gone when I try to download the file. Is there some command that I need to send the server to unlock the file or something Yes it fixes the problem but it forces you to open and close the ftp connection for every operation, which is not acceptable when you have multiple operations to perform :-( This problem occurs only with a Unix f ...Show All
