338 Posted Topics
Re: Single step thru the load. Most of the time you are referencing something that hasn't been loaded. Such as setting a check box but it hasn't been created yet. | |
Re: Go to the link he suggested. | |
Re: Try this site for a tutorial. [url]http://www.homeandlearn.co.uk/NET/nets11p2.html[/url] | |
Re: I am not a database person but I have heard that if you run your program in the IDE then a new database is created each time the program is run. Try compiling and running the bin/release/ exe. | |
Re: Your locations are already in the controls collection. | |
Re: [CODE] Today = CType("05/14/2007", Date) TimeOfDay = CType("11:32", Date) [/CODE] | |
Re: Go here and watch all the videos. Lots to learn. [url]http://msdn.microsoft.com/vstudio/ex...b/easytolearn/[/url] | |
Re: It depends on the course. If it is a course on programing concepts rather than the language then the language is secondary. Don't let that stop you from taking the course. I see a lot of people trying to program with out a knowledge of programing concepts. There is, in … | |
Re: Try this: [QUOTE] Dim x As Integer = System.Text.RegularExpressions.Regex.Matches(TextBox1.Text, "\w+").Count() [/QUOTE] | |
| |
Re: It looks like homework to me. What code do you have so far? We don't do homework but help with code you already have. | |
Re: I don't know what you are trying to do but you are trying to use a button_click inside a structure. I don't think you can do that. | |
Re: The question is, Why are they global? Are they only used in one place? Are they used in several modules, forms, etc? If you have to maintain a value to be used in several places then it needs to be a public variable. If used in one place then where … | |
Re: [CODE] Private Sub TextBox1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress Dim x As String = e.KeyChar.ToString Select Case x Case "a" To "z", " ", "0" To "9", "A" To "Z" ' 'allows these keystrokes thru disallows all others Case Else e.Handled = True End Select End … | |
Re: The simple way is to declare the variable in a module and declare it public. Set or read the variable from any form. If however you are worried about security then do as jabijohn says. | |
Re: I don't know exactally what you want. Your main menu is showing unless you have the visible property set to false. If that is true then use the mouse down event, check for right mouse button and set the visible property to true. If you want to turn it off … | |
Re: Try this: [CODE] Dim input As String = "abc" Dim output As String = "" Dim CharStr As New Char For Each CharStr In input output = CharStr & output Next MessageBox.Show(output)[/CODE] | |
Re: Where - what - property Form1.btnExit.Visible = False | |
Re: try: [QUOTE]Label.Text = [COLOR="Red"]CSng[/COLOR](Val(txtbox.Text) + Val(txtbox2.Text))[/QUOTE] | |
Re: Why not use the FolderBrowserDialog in the tool box? | |
Re: I haven't used AutoCad and Visual Basic since Acad2000 and VB6. I used mostly Lisp. Try these three sites to see if they help. [url]http://www.autocode.com/lisp/prog1.htm[/url] [url]http://usa.autodesk.com/adsk/servlet/index?siteID=123112&id=3377116[/url] [url]http://www.contractcaddgroup.com/download/[/url] | |
Re: start here: [url]http://msdn.microsoft.com/vstudio/express/beginner/windows/tier1/[/url] This is for vb 2003 but can be used in 2005 [url]http://msdn2.microsoft.com/en-us/vbasic/ms789057.aspx[/url] | |
Re: In your main() you have to call Application.Run(Form1) otherwise the program thinks you are finished. To pass array pass them without dimension [CODE]Private Sub Calculate(ByVal myArray(,) as Integer)[/CODE] Hope this helps And as stated earlier don't count on conversion. Learn net and do the conversion yourself, you'll be better off. | |
![]() | Re: Double click on the project in the explorer and go down to the settings tab. [URL="http://www.codeproject.com/vb/net/appsettings2005.asp"]http://www.codeproject.com/vb/net/appsettings2005.asp[/URL] |
Re: What do you mean UI - User Interface. That is what vb does. Adding controls to a form makes it a user interface. If you are talking about design of the user interface then I have seen no documentation on that. It is something you just work on until it … | |
I am doing my third first time database. In the attached picture I am showing my tables. My problem is I can't input any data because of a circular reference and I don't know how to handle it. Bowling Center is no problem. League info I can't enter because I … | |
Re: Instead of creating a new label just draw around the label. Such as place an ellipse around the label use: [CODE] Dim rect As New Rectangle(Label1.Left - 5, Label1.Top - 5, Label1.Width + 10, Label1.Height + 10) Using g As Graphics = Me.CreateGraphics g.DrawEllipse(Pens.Black, rect) End Using [/CODE] | |
Re: [url]http://www.pctools.com/guides/registry/detail/799/[/url] | |
Re: It use to be you designed your forms for 800x600. Now I think it is 1024x768 now. The higher resolutions are harder to read. | |
Re: Because you havn't calculated it yet. And would always be zero(0). Leave it as it is if you want a correct answer. | |
Re: You can use DoEvents in loops or run you calcuclations in a seperate thread (see BackgroundWorker in ToolBar). | |
Re: You are still referencing the file thru the objXMLdoc. Try this [CODE] objXMLdoc.Load(Filename) objXMLdoc.async = False root = objXMLdoc.documentElement.firstChild.firstChild GetXMLData() 'USES XPATH... TO RETRIEVE DATA OutPutRecord() 'outputs retrieved data to an SQL Database [COLOR="Red"] objXMLdoc = Nothing[/COLOR] MoveFile(Filename)[/CODE] | |
Re: Add an OpenFileDialog to your project and in your button click add this: [CODE] Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If OpenFileDialog1.ShowDialog = Windows.Forms.DialogResult.OK Then PictureBox1.Load(OpenFileDialog1.FileName) End If End Sub[/CODE] | |
Re: Here is a link that should help. [url]http://www.geometryalgorithms.com/Archive/algorithm_0103/algorithm_0103.htm[/url] | |
Re: most likely you will have to go to your sound card manufacture to find out how to do it. Then see how vb net can do the job. | |
Re: arjunsasidharan is right. On your form properties set the KeyPreview to true. Then use code simular to this: [CODE] Private Sub Form1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles Me.KeyPress Select Case e.KeyChar Case "k", "K" MessageBox.Show("k was pressed") Case "x", "X" Me.Close() End Select End Sub [/CODE] | |
Re: No opacity but can change all colors to transparent. 0 complete transparent to 255 complete opacity. | |
Re: Here is a book from Microsoft you can download. [url]http://msdn2.microsoft.com/en-us/vbasic/ms789094.aspx[/url] Some tutorials: [url]http://searchvb.techtarget.com/generic/0,295582,sid8_gci1133500,00.html[/url] [url]http://www.vbcodesource.com/exampleNet.html[/url] [url]http://abstractvb.com/code.asp?P=1&F=26[/url] [url]http://www.functionx.com/vbnet/index.htm[/url] Videos: [url]http://msdn.microsoft.com/vstudio/express/vb/easytolearn/[/url] | |
Re: I would just recalculate the total. Not an easy task to track numbers to be deleted. What if they changed one of the textboxes? It would have to be recalculated anyway. ![]() | |
Re: [QUOTE=Mirasol;316838]What does .15D stand for?:sad:[/QUOTE] D is decimal F is float S is short L is long etc. ![]() | |
Re: I tried your code and it works for me unless you are looking for something different. I get this: First Click: [INDENT]btnInRe visible[/INDENT] Second Click: [INDENT]btnInRe not visible btnGR and btnGl are visible[/INDENT] Third Click: [INDENT]btnInRe visible btnGR and btnGl are not visible[/INDENT] Did you want something different? | |
Re: I open the code in vb6 and go form by form, module by module, class by class transfering code from vb6 to vb net. Slow but effective. Don't like the conversion in vb net. Almost as much work as redoing it (500 errors). | |
Re: Try using a boolean to indicate the decimal point has been used already and ignore it if true. [CODE] Dim DecUsed As Boolean = False Private Sub TextBox1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles TextBox1.KeyDown If e.KeyCode = 190 Then If DecUsed Then e.Handled = True e.SuppressKeyPress = … | |
Re: You can get free e-book "Introducing Microsoft Visual Basic 2005 for Developers" here: [url]http://msdn2.microsoft.com/en-us/vbasic/ms789094.aspx[/url] And video tutorials here: [url]http://msdn.microsoft.com/vstudio/express/vb/learning/[/url] | |
Re: You can get free e-book "Introducing Microsoft Visual Basic 2005 for Developers" here: [url]http://msdn2.microsoft.com/en-us/vbasic/ms789094.aspx[/url] And video tutorials here: [url]http://msdn.microsoft.com/vstudio/express/vb/learning/[/url] | |
Re: Add the windows media player control to your form. Set the visible property to false so you can't see the control. In the button click add the following code. [CODE] Me.AxWindowsMediaPlayer1.URL = "C:\Documents and Settings\wayne1\My Documents\My Music\The Beatles\Abbey Road\03 Maxwell's Silver Hammer.wma"[/CODE] Change the file name to one of yours. | |
Re: Not to take anything away from kristinaswan but I like short code. :cheesy: Here I combined what she wrote into a more compact code. [CODE]Public Class Form1 ' combine all the textboxes in one TextChanged Event Private Sub txtScience_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) _ Handles txtScience.TextChanged, txtEnglish.TextChanged, … | |
Re: I am assuming it is like vb express. You declare a variable like: [CODE]Private MyObject As Class1 = New Class1[/CODE] Then you call your function: [CODE]Dim MyMessage As String = MyObject.dismsg[/CODE] | |
Re: Some software (AutoCad for one) will not let you resell the software, it is in the license. Don't know about vb but I think you can resell it. | |
Re: Look at this. ctor is the last reply. Try replacing the "ctor.dll" [url]http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=99940&SiteID=1[/url] |
The End.