Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 11 results for
globalvariable
- Page 1
Maze Game
Programming
Software Development
14 Years Ago
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
14 Years Ago
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
11 Years Ago
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
15 Years Ago
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
13 Years Ago
by Adak
… are normally used for macro's (see SIZE?), and globals (
Globalvariable
, (also typedef's, if needed).
Re: Maze Game
Programming
Software Development
14 Years Ago
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
14 Years Ago
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
14 Years Ago
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
14 Years Ago
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
14 Years Ago
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
14 Years Ago
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 …
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Meet People
Forums
Top Members
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC