Maze Game Programming Software Development by DZSlasher … start at 32,32. Here is my code. [ICODE]Module GlobalVariable Public value1 As Integer = 12 Public value2 As Integer = 12… single execution of code at start...help required Programming Software Development by pankaj.garg … integer variable globally and initialize it with a value??? dim globalvariable as integer = 5 gives an error.... i might sound naive… Re: Casting oledb to Sqlclient objects Programming Software Development by nmaillet … you should start by modifying your GlobalVariable module to the base types, like this: Module GlobalVariable Public DbCmd As DbCommand Public DbConn… Re: Help with component Programming Software Development by redZERO Ok, i've managed to get it working by referencing it with globalVariable.variable_in_question For some reason i had to set the variables in globalVariables to static. Anyone care to explain this? Re: Sorting A Csv file Programming Software Development by Adak … are normally used for macro's (see SIZE?), and globals (Globalvariable, (also typedef's, if needed). Re: Maze Game Programming Software Development by QVeen72 Hi, In Form_Load, just write this : (I guess "Whitebox", is the name of your Picturebox) Whitebox.Location.X() =32 Whitebox.Location.Y() =32 OR PictureBox1.Left = 32 PictureBox1.Top = 32 Regards Veena Re: Maze Game Programming Software Development by DZSlasher [QUOTE=QVeen72;858586]Hi, In Form_Load, just write this : (I guess "Whitebox", is the name of your Picturebox) Whitebox.Location.X() =32 Whitebox.Location.Y() =32 OR PictureBox1.Left = 32 PictureBox1.Top = 32 Regards Veena[/QUOTE] Veena, I tired the second one that you posted but it did not work. The first on … Re: Maze Game Programming Software Development by QVeen72 Hi, Move the Image and Try to refresh the form: PictureBox1.Left = 32 PictureBox1.Top = 32 Me.Refresh() Change Control Names accordingly... Regards Veena Re: single execution of code at start...help required Programming Software Development by vb5prgrmr In module... [code] Public Const MyVar As Integer = 5 [/code] However, you will not be able to change this value if you are wanting to have this value change. Now, there is another way if you have your program start up in a sub main... [code] Option Explicit Public MyValue As Integer Sub Main() MyValue = 5 Form1.Show End Sub [/… Re: single execution of code at start...help required Programming Software Development by pankaj.garg Thanks alot... i cant use the first method..as i need to change the value of variable.. for second method - i havnt used sub main as of now...but seems it will solve my problem...do i need to declare anything else for can i just call my starting form in main()...just like that??? [QUOTE=vb5prgrmr;1056622]In module... [code] Public Const… Re: single execution of code at start...help required Programming Software Development by vb5prgrmr Add a module, and add... [code] Sub Main() End Sub [/code] Then add the code you need to inside of sub main but don't forget to put in your Form1.Show or your program will look like it does not even run. Next, GoTo Project>Properties and on the right there is a combo box right under the words "Startup Object:". Select Sub Main …