-
- Create Generic 'Button Click' Event for Multiple Buttons
by EastBayCraig
- 4 Replies
- Last post
by cid6-7
- Hello,
I want to create a generic 'Button Click' event which will handle the event corresponding to either button1 or button2 being clicked (easy part) and then find out the name of the button which was clicked (hard part).
Anyone know how to accomplish this task Thanks.
Here is the code as I would like it to work in an ideal world:
Private Sub Button1_Click( ByVal
-
- SetFilePointer win32
by Anonymous577154
- 1 Replies
- Last post
by TilakGopi
- hi
can anyone tell me how to set the win32 API "SetFilePointer " to the end of a file in vb.net
thanks for any responses
-
- property changed event?
by Cryo75
- 1 Replies
- Last post
by tkerns
- Hi all,
I have a usercontrol inherting from a button. When I change, for example, the usercontrol's font from the property grid, the changes are affected immediately. When I change my own properties from the property grid, nothing happens.
What should I add to enable such functionality
Thanks,
Ivan
-
- Adding Rows in a DataGridView environment, need assistance with INDEX error.
by whitezombie
- 2 Replies
- Last post
by PEng1
- I need some serious help if someone has some time please. The following code below adds rows to a DataGridView in my GUI, the problem I am having EVERYTIME when running is the following error: " Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index " This program WORKS if I tell it to populate only up to 3 cells (0-2), but if I go a
-
- IsDate causing System.IndexOutOfRangeException
by Northern Ferret
- 12 Replies
- Last post
by darren3000
- This should be a very simple section of code with an obvious result. The code itself was extracted from a larger project to narrow down the location of the problem. In the larger project, I am just trying to verify that the user input is valid.
The problem is using Visual Basic in Visual Studio 2005 Version 8.0.50727.42
The simplified version of the code:
The form has a standard button (B
-
- How to create a resizable textbox (like in Word)
by SomE matriX stYles
- 2 Replies
- Last post
by jgalley
- I'm talking about a textbox with little squares on the corners and sides. Edit: A resizable textbox, that lets the user resize it at runtime. Like in MS Word when you create a new textbox. You can resize that textbox.
-
- Reg-SOA
by vengattaragavan
- 4 Replies
- Last post
by MS Johan Stenberg
- Hi all,
Can anybody brief why SOA is considered while developing web services application.
venkat.
-
- In VB.net, I can't get reliable transistions between forms
by Fushapa
- 3 Replies
- Last post
by moonyen
- I have a multi-form project in VB.net (visual studios). The coe is written with a button_click event and:
Me.hide()
Form2.show()
yet, when i click the button, the form vanishes, and the second one does not appear. I tried writing a new program, yet still the same error. The buttons are named correctly, and the form-name typed correctly.
I did not get this error when I ran my home-m
-
- learn VB.Net.
by yogamnandhu
- 2 Replies
- Last post
by Spidermans_DarkSide
- Hello Friends ,
I am new to .Net platform..
I need to learn VB.Net as quick as possible... Can any body suggest me a good for a beginner to learn VB .Net soon....
Thanks in advance
Regards,
Nandhu
-
- cannot open visual basic
by hapa2
- 1 Replies
- Last post
by stlarmon
- each time i try to open visual basic in excel or word it crahes the application with the error messsage: appname excel.exe appver: 10.0.2614.0 modname: vbe6.dll modver:6.4.99.69 offset: 000a9c42.
i reinstalled office xp to no avail. this worked before but going to previous restoration points does not solve the problem. same software versions work on my laptop.
any suggestion please
-
- Applying registry changes
by Bart Aertgeerts
- 6 Replies
- Last post
by Eldarion
- I am currently making a program where you can change the mouse cursor (school project), changing it isn't the problem.. The thing that is bothering me is that I have to restart the computer to apply these cursor changes.
I only adjust values in this key:
HKEY_CURRENT_USER/Control Panel/Cursors/ I currently only change the Arrow (to a different *.cur file) I sure would appreciate so
-
- Inputbox (Help please)
by Ray LC
- 14 Replies
- Last post
by SJWhiteley
- Hi all, I am designing an inputbox. This is for the user to enter a whole number. However, i faces the problem that the user cannot use the Cancel button to exit. Any idea how to solve Thanks, Ray ----------------------------------- Dim NewNumber As String Repeat: NewNumber = InputBox("Please enter a whole number between 0 to 100") If IsNumeric(NewNumber) = False Then GoTo R
-
- Creating an patch program to update a client application
by steve1_rm
- 2 Replies
- Last post
by steve1_rm
- Hello, I am working on a windows application .net 2.0. I would like to be able to write my own patch application myself that would update small changes in my main application that has been installed on the customer's computer. I would like for them just to install a small patch, rather than build a setup program. Can anyone point me in the right direction for creating a patch application for a wi
-
- Maximum number of errors exceeded converting from 1.1 to 2.0
by e_com1
- 4 Replies
- Last post
by Shantz
- Hi,
I have converted an application from .net framework 1.1 to 2.0 using Visual Studio 2005. I'm getting the error that maximum number of errors have been exceeded, but it only shows 1 error and no information regarding the error(s). There are only 14 warnings. I have read lots of posts saying this happens when you have more than 100 errors, but mine is only showing 1 error. Please help!
-
- createing a text file
by Joshua Nobes
- 14 Replies
- Last post
by nogChoco
- Hi...i used to play around with vb 6 and now i have 2005 and i gt say...i can learn chinese faster then i can learn it...
can someone show me how to create a simple text file in the programs folder and can you explain the code so i can learn how it workts..thanks!
-
- How to shape a Form ?
by Mental
- 6 Replies
- Last post
by Mental
- Hello i wanted to ask a question . And this is very very important to me iam still learning but
i need to learn this . All new forms when made are Rectangels what if i wanted it to be round or a circle ,
what must i do . I need this explained for Visual Basic 6 and Visual Basic 2005 or just the way how to do it .
-
- Use the Application Object
by Jim Aksel
- 3 Replies
- Last post
by jimbo20814
- I am creating a new VS2005 VB.NET Windows Application. The application is intended to exchange inforamtion between two Microsoft Project (*.mpp) files.
I am having just a little trouble getting started. I need to add a reference to the Project objects, I can do that by adding a reference easily enough.
What I am looking for is just an example of how to create an instance of a Microsoft Proj
-
- How to implement this interface.
by Troy Lundin
- 4 Replies
- Last post
by Troy Lundin
- I found an interface sample at pinvoke.net but it did not come with usage code. It is supposed to allow me to get/set a .lnk file's information. It uses two structures. I will include the entire code. Imports System.Runtime.InteropServices Imports System.Text Module IShell <Serializable(), StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Auto)> _ Structure WIN32_FIND_DATA Publi
-
- Downloading a file.
by adoroxin
- 2 Replies
- Last post
by Nicolas_qc_au
- I want to have my program to download a file from a webserver on startup. How would I code for an error message that says File not found instead of having the program through an exception
-
- Dataset.HasChanges returns false when single add record is called
by FalconDW
- 2 Replies
- Last post
by FalconDW
- I have a dataset that I interact with in my application through a bindingsource. I add records to the dataset using the bindingsource.addnew() method. I use the .haschanges function on the dataset in order to prompt the user whether or not they would like to save when exiting the appliction.
The strange part is that if I start my app and add a single record, haschanges returns false. If I a
-
- ASCII to Binary & Binary to ASCII
by QWERTYtech
- 6 Replies
- Last post
by QWERTYtech
- Hey everyone, I am writing a small app for giggles. I am writing an app to allow a user to put in ASCII text and convert it to Binary and vice versa. Here is everything I'm trying to learn to hopefully teach me some stuff about VB.NET 2005.
How can I convert text in a RTB to Binary and vice versa. For a little info, I have two RTB's: AsciiRTB and BinaryRTB.
I want to allow a user to
-
- how do I ensure the entire box is highlighted
by Izabella
- 0 Replies
- Last post
by Izabella
- I hope someone can help me. It's probably something simple but I'm completely new in this. In my access 2000 I have several boxes (cells) of which one is the most recent and hence needs to be highlighted. I've managed to het it highlighted but with new entries into this database the boxes (cells) get smaller or bigger -depending on the text inside them. This most recent cell got bigger but the hig
-
- A Framework Bug?!
by OmidQRose
- 4 Replies
- Last post
by OmidQRose
- The following code snippet is compiled with no problem:
Dim arrList2 As New ArrayList
arrList2.Add(1)
arrList2.Add(2)
arrList2.Add(3)
arrList2.Add(4)
Dim arr2(arrList2.Count) As Integer
arrList2.CopyTo(arr2)
But this one doesn't:
Dim ListBox1 As New ListBox
ListBox1.Items.Add(1)
ListBox1.Items.Add(2)
ListBox1.Items.Add(3)
-
- Threads
by Rajagopal_JRaman
- 10 Replies
- Last post
by Rajagopal_JRaman
- I have a function which add two numbers and return the answer. If the function is thread unsafe, what will happen .
-
- How to kill a process that's hung in the threadpool
by Matt Bausch
- 3 Replies
- Last post
by Lifeng Lu - MSFT
- I'm trying to get uptime on 1,500 servers so I need to thread it if I'm going to get data in near-time. I create 1,500 new objects Do While n < numServers n += 1 th(n) = New myObj th(n).index = n th(n).Server = serverlist(n, 0) Loop I then queue them all up: For n = 1 To numServers ThreadPool.UnsafeQueueUserWorkItem(New WaitCallback(AddressOf th(n).UptimeThread), Nothing) N