Answer Questions
Shaantu Flash Cards
I am doing an addition problem with flash cards, i have done the code for the addition part but i am lost on the flash cards though. Any suggestions would be welcome. Messageboxes...borderless tool windows...panels on a form....tab pages...Labels on a form...You will have to be alittle more informative to get a better answer...WHat are you doing with your existing code...is it displayed on a form You have a plethora of controls to choose from in order to show the user information (Flash Card)! I think it's much nicer :) Goodluck !!!!!!! thanks a lot i will take another look around. i have only just started programming again. it looks so very different from pascal and c. ...Show All
Tigerroad login probs
Below are my codes for a login form. the part where its the correct ID and Password works perfectly fine. its the part where, the textbox1.text = "" and textbox2.text = "" and else part, where it doesn't work. the codes look good to me. but yeaup. please try your best to help! thank you! Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim str_driverId As String Dim str_passWord As String str_driverId = TextBox1.Text str_passWord = TextBox2.Text Dim sqlconnection As New SqlCeConnection("Data source = \My Documents\busInfoSys.sdf") Dim reader As SqlCeDataReader Dim cmd As New SqlCeCommand("SELECT passWord FROM driverR ...Show All
Dan Shookowsky How to set a printer to be the system default printer?
Hi all, first of all: please be pateient with me as I'm not at all an experienced VB programmer. Reading lots of articles on MSDN I learned how to use PrinterSettings and PrintDialog and control printer settings. What I didn't find, though, is a way to make one of the installed printers the system default printer using VB 2005 Express. If - for some reason - that's not possible using VB 2005 Express, there's still a 2nd option; in the forums I found a link to a technote explaining how to set the default printer using VB 6.0 / through Win32 API calls (http://support.microsoft.com/default.aspx scid=kb;en-us;266767). I'd like to avoid the hassle, but if necessary I would do it. Unfortunately, I don't know how to retrieve the CURRENT system de ...Show All
Glenn Ramsey matrices in VB express
What is best way to program matrices in VB Is it a predeife structure or do I need to create such a structure ALso is there a way to reverse the coordinates of the X,Y on forms..currently X coord. goes left to right and Y up n down. Is there a way to change that The best way is probably to use somebody else's code. To inverse to coordinate system, translate the Y-coordinate with Me.Height - Y. To invert the coordinate system or perhaps the values on a scrollbar for instance You take the maximum value and subtract the current value. Example of this for a scrollbar is (it shows the real value and the calculate value) Public Class Form1 Private Sub VScrollBar1_Scroll(ByVal sender ...Show All
oaix Reading/Writing INI Files
I Add this code in a Module And i wrote this file that i called "Italian.lng": [DATA] Field1 = Speaker <DllImport("kernel32.dll", SetLastError:=True)> _ Public Function WritePrivateProfileString _ (ByVal lpApplicationName As String, _ ByVal lpKeyName As String, _ ByVal lpString As String, _ ByVal lpFileName As String) _ As Integer End Function <DllImport("kernel32.dll", SetLastError:=True)> _ Public Function GetPrivateProfileString( _ ByVal lpAppName As String, _ ByVal lpKeyName As String, _ ByVal lpDefault As String, _ ByVal lpReturnedString As StringBuilder, _ ByVal nSize As Integer, _ ByVal ...Show All
zkhan Print textbox
I have a textbox with test in it that looks like this: CONNECTION FRONT PAGE DATE Tuesday, September 26, 2006 GENERAL INPUT: GENERAL INPUT CONT: Actuator Weight (lbf): 411.0000 Design Pressure (psi): 210.0000 Actuator Size (sq in): 100 Operating Pressure (psi): 60.0000 Spring Type: ...Show All
slyi VB.Net, Excel and multiple workbooks
Hello all, VB.Net 2003 and Office 2000 running on Windows 2000 Sp4. I have written an application that opens two Excel workbooks, copies data from one to the other, formats it and saves it. Nice and simple and has worked perfectly with just one workbook in another part of the application. Problem comes when I quit Excel and run the garbage collector, to tidy up the excel.exe that is still running in the background, and then Excel throws an unhandled exception which is revealed to be the following in the debugger, Unhandled exception at 0x300341b6 in EXCEL.EXE: 0xC0000005: Access violation reading location 0x650eeed8. Is there anything I am missing with the two open workbooks that I have to do differently when using one workbook ...Show All
Bill Henning IDE says OK but compilation fails
I am developing a web site/system using VS2005, ASP.NET and VB.NET. Suddenly I ran into a problem where I cannot build my site any more. The message is: ..path../UserOwner.aspx.vb(1278,0): error BC30451: Name 'a3333' is not declared. BUT the (in this case) label a3333 is declared. When I edit the behind code there is also no "bubble lines" telling me there is a problem. But as soon as I hit Run - I get this message in this code. It look's like I have hit a "limit" as all objects created "before" in this page works perfect, but all objects "after" fails in the compilation. This happens around the 180th object on this page. If I as example drop a new button object on the page - set's the ID ...Show All
reichard A problem with tool transparenct
In Visual Basic 2005 A have a problem when setting up the tool backcolor When I make it "Transparent" It shows the background of the form even if there're other tools behind it How can I make it shows what is behind it The transparency is not 'true' transparency: you won't see the controls behind a transparent control. You can work around that, though. You can change the outline of a control via the GraphicsPath object and the control's Region: http://msdn2.microsoft.com/en-gb/library/system.windows.forms.control.region.aspx ...Show All
DevDevil How do I use a ComboBox? [AMENDED POST TO THE RIGHT LETTER ORDER]. :-)
My question is a little hard to word, so I'll just use an example: Say that I click a combo box and 7 items appear. The items are: O Class B Class A Class F Class G Class K Class M Class Note: These are the 7 main star groups. There are also 6 labels: Temperature, Star color, Mass, Radius, and Luminosity, and Hability Zone What I want is: if I choose O class, a textbox (or something) next to Mass should read 60. I have not yet learned the Visual Basic, but I should get this one out the way right now. If you do not understand the question well, please tell me. Sincerely, Mirai Naza Hi, Presuming you have the items in the order you stated then do something ...Show All
Fata1Attack How i can create function dataset
Pls, Help How i can create function dataset for check PK on database befor save new data on database. hope your help Thaks, Dear Sir, You can create easy the funcional(mathematical or logical)Database(Set) with the excel sheet using in Microsoft Access.OK. Mur it Hakan C L What type of Db IS it an autogenerated PK If it is Access or SQL, you have the Identity method to return the last autogenerated PK on the connection In any event ADO.NET (via the db) will let you know if you are trying to insert a duplicate primary key! ...Show All
Joshizzle thread-safe in VB.NET 2005
Hi, I have a form with common controls such as comboboxes, texboxes, checkboxes...etc... I need to launch some threads to accomplish some work that was impossible otherwise The problem is how can I access (safe mode) the data of the main form controls I know how to make delegate functions to change data in main form, but I don't know how to get them in safe mode example : control in main thread : me.checkbox1.checked=true me.combobox1.selectedindex=2 in thread1 : How to get that controls values/states in safe mode thanks in advance Hi The only safe way to interact with a windows control is to do so on the thread that it was created on. The base control class exposes ...Show All
cdaviduik Passing variables between forms
Hi, I'm having problems passing variables from form to form. My situation is that I launch an MDI form and within this the user can launch any number of child forms with names which can be derived by the user (I have no idea what these might be). These child forms can then launch modally a generic form which acts dependent on variables passed from the child form. I understand that within the child form I can set a shared/public variable but can't see how I can access this without knowing the form name. Any suggestion would be much appreciated. Cheers John You might want to try to use events to link your forms together. Make each parent form listen for events in each child form. As for kn ...Show All
Rod Yager Can a form be opened as a single instance using the constructor.
I want to make sure only a single instance of a form exist using the constructor. Here is and example not using the constructor Public Class Myform Private _CurrentForm As Myform Public ReadOnly Property CreateForm() As Myform Get If (_CurrentForm Is Nothing ) Then _CurrentForm = New MyForm End If ...Show All
Robert F Bouillon Registry Keys with spaces
I am trying to retrieve the username from the registry which unless there is a better one I used HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Logon User Name the problem is I can't figure out how to deal with the spaces I tried retrieving other keys without the spaces and they are just fine. Is there a String function or something that I can put in to deal with the spaces or is there a better registry key for the user currently logged into the system Heres the code I got. Dim regKey As RegistryKey = Registry.CurrentUser regKey = regKey.OpenSubKey("Software\Microsoft\Windows\CurrentV ...Show All
