-
- How to run a button1_Click() method in code.
by abacus
- 4 Replies
- Last post
by abacus
- Hello! I'm new to Visual C# programming and I am enjoying it very much.
However, I would like to know how you can make the method that runs when you click a button, e.g. button1_Click(), to run in another part of your code.
For example:
private void button1_Click(object sender, EventArgs e)
{
// The event(s) that occur when you click button1.
}
I would like
-
- My Visual Studio 2005 C++ Will Not Compile winuser.h
by Bwilhite
- 2 Replies
- Last post
by nobugz
- Hi, I'm new to both Visual Studio 2005 and windows programming. I am trying to inclued "winuser.h" in a Windows Forms Application because I want access to the SendMessage() function from the windows API. I am trying to send a message from a .dll to a windows application. However, the compiler won't compile the windows app because it seems to 'not like' the definition of HANDLE in winuse
-
- sending text to random textboxes
by Skylar2135
- 2 Replies
- Last post
by Solitaire
- Alright say i have a page of maybe 10 textboxes the user would fill them with info then when they click a button it should randomly send all of the text to different textboxes and i would like it to be different every time the clicks the button. Is there a code that i can use to make them send randomly Help would be appreciated.
-
- about dbase path in a connectionstring!?
by pinoyz
- 4 Replies
- Last post
by pinoyz
- hi there i have a problem regarding dbase path (i used dbase wizard) where can i find it
because dbase wizard is the easiest and fastest the connect to the dbase and u can choose either detailed or gridview....but my problem is where can i edit the dbase path (C:\Windows\dbase\mydbase.mdb) because when i install my program to another PC the path of dbase was in (C:\windows\dbase\mydbase.mdb) i
-
- How to use file data in VB
by ::Bull
- 3 Replies
- Last post
by Moayad Mardini
- Hello,
I have the game Delta Force 2. The mission editor uses a file with the extension .MIS, which is the file that you edit to make the mission. I opened it in Hex, and found where the mission name, and name of the creator is.
The question part:
How would i make a tool in VB that can change those values (mission name, creator)
-
- How do i get my local machines ip address in VB 2005!!
by moimoiiomiom
- 14 Replies
- Last post
by moimoiiomiom
- I want to be able to write somthing like
Code Snippet
form1.load
label1.text = ipaddress
end sub
so that i can find out the ip address my local machine
-
- code not associated with a button
by bk13
- 11 Replies
- Last post
by bk13
- I need to have code that collectes UDP frames from another computer (port 1234). I found some examples but the code is not part of a button. I have yet to find anything telling me how to add code that is not associated with a button.
The code example is here:
http://www.codeproject.com/vb/net/Silence_Socket.asp
But it does not tell me where in the project/solution to put it. What win
-
- Image Or Not To Image
by DJSTU
- 7 Replies
- Last post
by VBVB66
- Hi Guys & Girls,
Has anyone come across problems with images on buttons
I have put some images on buttons in design time, using the background image option.
The problem is they show up in design time but when I run the program they just come up as normal blank white buttons.. I cant think what would be causing this error.. Any ideas anyone
-
- Help with VB Express Edition
by Munita Vohra
- 3 Replies
- Last post
by Dave299
- Hi. I am very new to Visual Basic. I am trying to do the following: I have created a form on which I have a button for each letter of the alphabet. So one button for A, one button for B etc. I have a textbox at the top of the form. What I want to be able to do is, click on button A and the letter A appears in the textbox. Any idea of how this can be done Thanks
-
- How to make my applicastion manage txt extencion.
by MarcosL
- 2 Replies
- Last post
by Martin Xie - MSFT
- hi, i'll like to know how to do this: - i want all the files with extencion txt to have the icon of my program - i want my program to open every time the end user opens a txt file if you need somemore details, let me know.
-
- Is this a bug?
by Whoisit
- 8 Replies
- Last post
by Whoisit
- Here's the code that fills the ComboBox For i = 28 To 167 cmbSelected.Items.Add([Enum].GetName(GetType(KnownColor), i)) Nex t Here's the code to display the items in the Combo Private Sub ComboBox1_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles cmbSelected.TextChanged Label1.ForeColor = Color.FromKnownColor(cmbSelected.SelectedIndex + 28) 'TextBox so I
-
- Must be non-Negative and less than the size of the collection
by Olodu
- 14 Replies
- Last post
by Dave299
- Hi All,
I need help with the code below. I keep getting this error when I run this code.
"Index was out of range. Must be non-Negative and less than the size of the collection Parameter name: Index"
This is the code I am running
Private Sub tsbtnSave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles tsbtnSave.Click objData = New DALBase Dim iv
-
- Good books about vb .net 2005?
by FooFighter560415
- 3 Replies
- Last post
by Solitaire
- Can anyone suggest a decent book about vb.net 2005 I don't want one that's straight up for the beginner. Also bear in mind I'm using express edition. I've looked at the books on amazon, but I have no idea which one would be a good one. Has anyone reading this used any learning books with decent results Also if anyone knows of some decent free sites where I could learn stuff it'd be cool. Microsoft
-
- Putting a byte in to a text box
by ElliotHC
- 14 Replies
- Last post
by ElliotHC
- Hi,
Please can someone paste some code for me, I am trying to put a byte in to a text box but have no iead how. I'm pulling my hair out with VB 2005 express and have no idea how to do anything.
Thanks
-
- A field prefixed with an underscore?
by alphonso
- 5 Replies
- Last post
by alphonso
- Hi,
I seem to run into code from books wherein the name of a field in either a struct or a class is prefixed with an underscore. What does this mean The books don't explain them. I knew for one thing that it couldn't have been naming convention, because they always advise NEVER EVER use underscores when it comes to naming fields, methods, properties, etc. Can anyone help me, please Here's
-
- How to create a folder in Visual C#?
by paoloTheCool
- 6 Replies
- Last post
by paoloTheCool
- I would like to create a folder called "ePod Nano" and then within that create a folder called "Music" all from Visual C# - Im pretty sure you have to create an *.ink file, but I do not know how to create that.
Thanks,
paoloTheCool
-
- How mach time did you use VB2005 express edition ?
by NetPochi
- 2 Replies
- Last post
by Greazy
- A question please. I'd want to know how much time did you use VB2005 express edition --- free ---
-
- How to detach and delete a mdf database in visual basic?
by Michal Cihelka
- 3 Replies
- Last post
by Michal Cihelka
- Hi everyone,
I am working on a small program (in VB 2005 express) that accesses a SQL 2005 database through ADO2.8. I'm not worried about upgrading the code to ADO.NET since it all works like a charm.
However, I'm stumped at this: I need to delete the database file upon exit of the application using VB code. How do you free up the database files so that they are no longer in use I ha
-
- Quickness in painting Question
by betardfooser
- 6 Replies
- Last post
by betardfooser
- When I first started programming, i was using a language that .... was literally only text; there was no design layout. If you wanted to display a picture, you had to say "DrawImage( img, locx, locy, ...)". When I Set a form Up in vbe, i often find that not using controls and using the "Paint" event to draw everything makes the whole application Smoother. Controls flicker and d
-
- Need major help please
by Samwv77
- 28 Replies
- Last post
by Samwv77
- Im trying my best but its not working out for me, what i need is to know how i would go about doing an application that enables the user to put information into a multible text boxs then click a save button and it will save it then be able to load it later, for example
(label1) Name: (textbox1)John Doe (textbox2)3337 Moorehead Ave
and when the save button is clicked it will save thi
-
- Compilation problems and more...
by Anna558742
- 8 Replies
- Last post
by Takashi Toyota
- Hi, I'm new here.
I have recently downloaded the Visual C++ Express Edition I have problems working with it.
Fisrt, I converted my project from Visual C++ 6.0 and while rebuilding it I have compilation error:
: fatal error C1083: Cannot open precompiled header file: 'Debug\main.pch': No such file or directory
I am totaly new in this erea so I've no idea what does it mean... H
-
- Unable to connect to SQL2k5 Express
by H@bib
- 5 Replies
- Last post
by Caddre
- Hi all.
I have just insalled MSSQL 2k5 express, and VB2k5 express to port an Access2003 app. I am, however, unable to get a connection from VB to MSSQL. The error msg says that it might be due to the default install not allowing remote connections to the server - (it is set, but it's local endpoint to local endpoint anyway).
Any ideas would be greatly appreciated!
Thanks.
-
- Visual C++
by Not Happy Jan
- 1 Replies
- Last post
by Weston Hutchins - MSFT
- Spent hours downloading the promoted greatest Visual Studio Express C++ windows compiler. Forget it! Complicated not intuitive. Visual Basic was/is the best if you want to write quick applications, otherwise use Borland. Even the post is !@#$% ^. After 30 years glad to be out of the game...
-
- "Update requires a valid DeleteCommand when passed DataRow collection with deleted rows. "
by D.V.Sridhar
- 3 Replies
- Last post
by ahmedilyas
- For god's sake somebody help me. I have become half mad and tearing my hair for the last 2 weeks trying to delete a damn row from sql database but all i get is an error saying:
"Update requires a valid DeleteCommand when passed DataRow collection with deleted rows. "
i have tried many solutions including parameterized queries.Can somebody give me a simple code for a button which wh
-
- Bible Code
by Merlin the Wizard
- 7 Replies
- Last post
by Rykler
- Hello,
I am using the following command to read an email from a file:
imgSrc = System.Drawing.Image.FromFile(<filename>)
While the whole thing works fine, the variable imgSrc seemed to be "holding" on to the file until I close the program.
According to the document, the variable will lock the file until the image is being disposed off. I tried releasing