Answer Questions
ratslav Character Code
I want to find a character code.I use Ord command in Visual Basic 6.Now What is this command in Visual Basic .net 2005 Thank You for your response . I've never even heard of the ord command in VB - and I've used all versions. To get a character code use Dim i As Integer = Asc("A") To turn a character code into a value then use Dim s As Char = Chr(65) This seems to work for most things I've needed to key character codes. If you can provide more info on what your trying to do, if this doesnt resolve you problem. ...Show All
Selvaraj Anantharaman msgbox when a tabpage is selected
As the title says, this is what i'd like to do. When a user selects a certain tabpage, I'd like a msgbox to popup. sounds simple, but i've been racking my brain over how it's done, as it seems that the tabpage methods don't support it I've given this a read through: http://www.eggheadcafe.com/software/aspnet/28785371/re-of-tabs-and-pages.aspx But I don't think it helps me very much in the end. Any suggestions are appreciated - thanks guys! -Pete Try this: Private Sub TabControl1_Selecting(ByVal sender As Object, ByVal e As System.Windows.Forms.TabControlCancelEventArgs) Handles TabControl1.Selecting MsgBox(TabControl1.SelectedTab.Name & " has been selected ...Show All
Matt Lin containing control not a valid container
I am getting an error while adding the frm to the project. The same is working fine in another folder with vb project. When I try to open only this particular from in a new project , I am not able to do so. Please help. Johnson., If the form is valid and working in another project Project -> Add Existing Item Ensure that vb code files is your filter. Select <Form>.designer.vb, <Form>.resx, <Form>.vb Where <Form> is the name of the form you want to add. All 3 files should reside in the same folder. This should add all three files to you project and the solution explorer will display the correct icon that the form has been added. This separation of the form into 3 files occu ...Show All
Bernaridho visual basic performance vs vb6
I developped a project to solve sudoku puzzles using visual basic 6. I upgraded to 2005. vb6 solves a puzzle in 0.26 second. For the same puzzle Vb 2005 needs more then 6 seconds!!! Is there any reason to explain the loss of performance in the new release Thanks. Gabriele how are you measuring this time The vb6 exe will be a native exe, whereas vb.net will need to be jit-compiled. Theres more info on this, and a description of a utility that can help reduce this @ http://www.codeguru.com/Csharp/.NET/net_general/toolsand3rdparty/article.php/c4651 .I'd also suggest that you run your activity a number of times (e.g. get it to solve 100 sudoku's in one go), to get a better comparison, In addition, if you ...Show All
Ryan Schwartz interpret variable
Hi I create a string Dim value As string = "Email.ID" in fact Email.Id is an object equal to 2. My question is what is the function to get 2 from the variable value. Thanks Dim value As String = CStr(Email.ID) Thanks a lot. I will see if I use this solution or a hashtable ...Show All
radiorus Handling popup windows
Tell me how to handle popup window in VB. It may be done using newWindow2 event.But i am afraid I dont know how to use it. Help me please. Help me doing the same using newWindow2 only as I can't use newWindow3 in my system. Some automation error is coming. Thanks in advance. Actually, Newwindows 2 is a little passe, it's newwindow3 that's of interest. Here is a terffic thread. I'm using this now and it's cured large problems and has introduced some small ones. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=706113&SiteID=1 This should get you started. ...Show All
lushdog How to upload files
Hello I got a problem with uploading files. Look at the code: My.Computer.Network.UploadFile ("D:\file.txt", " http://www.onh1986.com/file.txt ", username , password ) And I set permission to "777". And it couldn't to upload the file. What's problem, please Thanks & Regards The file "file.txt" exists on my server and I set permission to "777" for it. And I'm trying to upload it, but it doesn't work. onh1986 wrote: My.Computer.Network.UploadFile ("D:\file.txt", " http://www.onh1986.com/file.txt ", username , password ) And I set permission to "777". An ...Show All
Mike Hayes Array of Buttons
I want to create rows and columns of buttons in my code using an array. If anyone know how to do this please respond. You're not creating a new instance of each button. When you make the array, it creates the dimensions and sets the type to button but doesn't actually create any new buttons. Try this mod to your code: p.MsoNormal, li.MsoNormal, div.MsoNormal {margin-top:0in;margin-right:0in;margin-bottom:10.0pt;margin-left:0in;line-height:115%;font-size:11.0pt;font-family:'Calibri","sans-serif';} .MsoChpDefault {;} .MsoPapDefault {margin-bottom:10.0pt;line-height:115%;} @page Section1 {size:8.5in 11.0in;margin:1.0in 1.0in 1.0in 1.0in;} div.Section1 {page:Section1;} ...Show All
satish_k clickOnce install Question
Is it really true that clickOnce applications are installed on a unknown location on your hard drive We can only access it from it's short cut I would really like to know! Thank you. Yes, that is correct. ...Show All
ashk1860 Entry Level VB Programmer Question
Hey guys, this may be a bit off topic but I'm interested in applying for entry level positions in VB and I'm wondering just how much I need to know in VB and what sort of responsibilities would they give me I'm also wondering if they sorta teach you as you go along Cool! Thanks! it really depends on the job/company - there is no set "rules" for entry level. Of course as you progress onwards within the job you learn more - sometimes they teach you most times they dont because they dont have much money to send people on courses - really depends. I would say start from bottom up - learning about Object Orientated programming, effeciency, performance, dealing with databases (both SQL and MS Access) - there is no &quo ...Show All
CruzPedro What Language to Use
I was wondering if you guys could give me your advice on something. I want to create a few applications for Windows (maybe even add some special Vista only things). Problem is I'm not sure where to start with Windows development. The only applications with GUIs that I've ever created involved Java (3 years experience), C, and a bunch of web based languages. When it comes to Microsoft Windows I'm not sure where to start. I'm more than willing to learn a new language to develop Microsoft apps, just not sure which is the best one. Any suggestions Thanks, **I do have a full (legal) copy of Visual Studio 2005 && 2003 BlueMikey wrote: Though VB is fun to learn after already being a ...Show All
MyraK All Caps to Title Caps
Hi I need to create a macro that will start at the begining of a Word document and select all sections of text that are in ALLCAPS. It then must change the instances of all caps to title or proper caps. However there are specific two letter codes that must remain as all caps. Is this possible Basically, a mail merge that uses a database query as the datasource is importing address and name details in allcaps. To maintain professionalism, it is desired that these items are in proper caps. However, the letter contains two letter 'class codes' that must remain in all caps (eg. BI, FH, LF, NM). I am only just learning VB and can only get the macro the select the whole document and change it to proper caps. Manually selecting the requi ...Show All
Grumpy McNasty My program dont stop when an error occurs
Sometimes in my program, when i run it in visual studio and there is an error, it dont stop and show the debug window. Instead it just exits the sub where the error is and continues. Is this some function i can set to on/ off The reason i now is that, in my program it was suppodes to do one thing in an opened up form, but instead it just closed the window. I then inserted a break to manually go through the code one line at a time, and i then found the error in an sql command. But the thing that stroke me with this, was that when it got to the cmd.executenonquery command, it exited the sub (and when the sub was exited the window would close as it should). Normally when i make an error in an sql com ...Show All
Christian Sparre Executing System Stored Procedure in Windows Forms App
I'm new (very new) to stored procedures and I'm having difficutly executing the sp_addumpdevice system stored procedure to backup a database. I've put the following code in a button click event handler: Private Sub btnDBBackup_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDBBackup.Click USE master EXEC sp_addumpdevice 'disk', 'FIRM_Backup', 'C:\MSSQL\BACKUP\FIRM.Bak' End Sub The problem I'm having is Intellisense is telling me that "name 'USE' is not declared" and "name 'EXEC' is not declared." Can anyone assist a stored procedure novice with getting this working Thanks in advance for any assistance! Tony ok, i looked at the stored p ...Show All
Phil Atkin Combobox problem
Hi, I have a combobox which displays a list of surnames (from a dataset). A number of other controls then display the other fields of data for the selected surname - no problems. I can navigate around quite hapily and all fields display correctly. By trying to break the application to ensure it's bombproof, I have found a problem that I can't seem to get around. If I delete the selected text in the combobox then type a part of a valid surname (e.g. "S" for Simpson, then hit the down arrow, a new surname is selected from the dropdown list. If I then hit the arrow again, the list disappears and the selected name is displayed in the upper section of the box, but the other controls on the screen are not updated. I ther ...Show All
