-
- Polymorphism? How can you avoid "switch" statements?
by John Oliver (UK&am
- 14 Replies
- Last post
by decyclone
- Hi ALL,
I've create a CLASS where it uses the TYPEOF statement to determine what the object passed to it is, e.g.
If TypeOf(myObject) Is PictureBox Then
'some code.
ElseIf TypeOf(myObject) Is Panel Then
'same code as above only "operating on a Panel"
'with the CreateGraphics.DrawLine method
EndIf
Can i get this to work o
-
- Writing a plug-inable application in .net 2
by S_A_S
- 7 Replies
- Last post
by Bruno Yu - MSFT
- I want to develop a plug-in API for one of my VB.net applications.
Does anyone knows a easy an detailed tutorial for solving my problem or coluld someone explain how to write an application plug-in Interface
-
- Now() returns value that is not the same in VB.Net as it was in VB6?
by SL-USA
- 2 Replies
- Last post
by SL-USA
- Wanted to put this out to save someone else from the time I spent figuring this out: This happened in VB.Net under VS2005, using DAO3.6 and Access2003. The upgraded application was originally VB6, DAO3.51 and Access97.
In VB6 had a module level var named mLastUpdate As Date. Var was set to "Now" (current system date and time) when Name property was set.
Public Property N
-
- Storing values from a file permanently so that the file is not necessary once compiled
by RJBriscoe
- 7 Replies
- Last post
by SJWhiteley
- I need to read through a file and assign values from the file into an array that stores the values permanently once the program is compiled. I am creating a program that will have multiple users and I don't want to send an accessory file each time I send the program out. I could hardcode the values into an array, but that would be a lot of time and lots of lines of code. Below is a shortened versi
-
- how to execute form ?
by Angelian05
- 3 Replies
- Last post
by TinMan12
- Hello
i have 5 forms in a project. Each form has seperate program.The problem is every time when i press F5 only form 1 exeucutes. I want to execute (test) each form separatly. What is the procedure
Thanks
-
- How do I set delay between code?
by shizuka.a
- 5 Replies
- Last post
by DMan1
- Hello all. I would like to enquire how I can set a delay in between chunks of code.
For example, after some code which interacts with a server, I am supposed to get a corresponding information from the server before it is appropriate to proceed on to the next part of the code. As the server response is not immediate, therefore an arbitrary delay is needed.
What is the proper c
-
- XP/Vista ADOX References
by ReneeC
- 2 Replies
- Last post
by ReneeC
- I built a large application on XP and a tiny but needed component uses ADOX for table creation and persistance in an Access database.
I couldn't build the project on Vista until I deleted the ADOX reference and replaced it because msadox.dll has moved from Windows/System32 to Program Files\Common Files\System\ado.
If I wanted to support a single build on both operating systems am I going to
-
- Unexpected results from PrintDocument1 PrintPage event
by Fred Kane
- 4 Replies
- Last post
by JohnWein
- This is my code; I expect two pages of output, but get only one.
'one button on form, used default names and settings for everything
Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
PrintDocument1.DefaultPageSettings.Landscape = False 'portrait mode
PrintDocument1.Print() 'begin print
E
-
- Array Help
by Juniorscone
- 9 Replies
- Last post
by Dustin_H
- Hi,
This may be a very basic problem but im haveing real trouble with it and its driving me crazy!!!!!!!
I have created a class called Class1
I can create a new object by calling
Dim test2 As New Class1
I can change its attrributes by
test2.summary = True test2.is_stage = False
etc.....
Now what I want to do is store this class in an array. I have tried the folowing cod
-
- Trapping Mouse Clicks
by James A. Gayhart
- 3 Replies
- Last post
by rkimble
- Hi,
My application uses an external authentication engine. The user has to enter codes into two text boxes.
This method works for all of our other applications. However, my particular application is done on a touch screen (no keyboard). I built an on-screen keyboard that pop-ups when users click (touch) a text box. I would like the same keyboard to pop-up when the user uses the authe
-
- Delete row from datagridview view
by shax
- 5 Replies
- Last post
by nelsonl
- HI, Here's my problem... you can't delete a row when the datagridview is in edit mode. Now to make the datagridview useable for the user (e.g selecting from a combo column) you have to set the edit mode to be Edit On Enter otherwise the user has to click the cell to select it and then click it again to edit it. SO now when the user goes to select a row to delete it, it automatically goes into edit
-
- How to set the WMI Privilege on VB 2005?
by prjuanl
- 1 Replies
- Last post
by k00tje
- Once I enable the privilege for WMI on VB 2005.
Dim options As ConnectionOptions
options = New ConnectionOptions()
options.EnablePrivileges = True
What CODE AND Where I put the code to specify the privile like SHUTDOWN, REMOTE SHUTDOWN, BACKUP, RESTORE, AUDIT, SECURITY, CREATETOKEN....ETC ....ETC...
Guys any help is super appreciated.
Thanks, PRJUANL.
-
- Run-time error 339: Component 'MSCOMM32.OCX' or one of its dependencies not correctly registerd: a file is missing or invalid.
by Paula573618
- 14 Replies
- Last post
by »Rappin P» »Is
- I get this message when I boot up a Windows XP computer, any ideas why
-
- Splitting Images
by jay Bukstein
- 2 Replies
- Last post
by Riquel Dong ¨C MSFT
- I have a Windows VB application that views and copies TIF images, some single pages some multiply pages. What I need to do is to for each page in the tif is to break to image file into separte pages,
How can I do that
-
- TXT File to MS Access
by ElDorado.
- 14 Replies
- Last post
by PEng1
- We have a manufacturing machine that spits out txt files every so often and we want to read the files and upload them MS Access. Below is a sample of the txt file:
[Job] Line=041 Machine=F/M #59 K155 Description=786201 PP0.5ml 0003-2 PartNumber=0003-2 NominalCycle=68.00 JobStartDate=2/22/2007 11:08:52 AM StartDate=2/27/2007 11:00:00 PM StopDate=2/28/2007 1:01:52 AM Cycles=108 Ru
-
- Can I Create an enum on Runtime, or change Enum values or member Names ?
by ZadehDyn
- 3 Replies
- Last post
by cybertaz69
- I need to fill my enum values from datatable. Is there any way to do it with VB.Net.
-
- Creating a view meter.
by Haziman
- 5 Replies
- Last post
by Fayking
- Hi,
can someone tell me a tutorial to make a VU meter for Audio to monitor audio input devices volume level such as microphone and etc
you also can provide link to the articles.
thanks for helping me.
-
- Where is the Fill() method?
by hemo
- 12 Replies
- Last post
by hemo
-
I am trying to add new rows to MyDataBase.mdb with the below code. My problem is that it does not identify the columns. It fails with the error message ¡°Name1 does not belong to Customers¡±. But it does so do Name2. I think it¡¯s locating the database and table as I can retrieve data with the open code using SQL Select.
Can anyone help Please
hemo
Dim
-
- populating an Access database using visual basic 2005
by IGiberson
- 14 Replies
- Last post
by ahmedilyas
- I am trying to create a new employee application that gets input from a user in text boxes and then take that information and populate a database in Access that will later be pulled to the Track IT! database on SQLserver2005. How do i do it
Thank you.
-
- Messagebox Results as variables
by Kyle Leitch
- 1 Replies
- Last post
by Mattias Sjogren
- Hello all. I've been working on a project where i need to store the result of a messagebox with Yes/No buttons to a variable for later use. I remember having learned how to do it in class, but that was in November and I have since then forgotten. Can anyone here help Thanks! Kyle
-
- OracleConnection Scope
by ChristianBG
- 1 Replies
- Last post
by Spidermans_DarkSide - VSIP
- I have a class that creates an oracle connection to a database that is compiled code and works fine. i pass an oracleconnection object back to the calling program and it uses it perfectly, until the code fully runs and it is time fo ruser imput and a form shows.
the user does what ever he does then a query is launched that uses the conneciton object again and all of a sudden it is closed. I am
-
- Adding data in one column together
by newbieneedshelp
- 7 Replies
- Last post
by PEng1
- I'm working on my first
database application and I am stuck on how to add all the data in one
column and display that total with a label. I've searched the forum
with no luck. The data in the column is currency. Thanks for all the help
-
- Text Alignment Justified
by Rafael Euclides
- 8 Replies
- Last post
by Rafael Euclides
- Hi all, I need to put some text with justified alignment on my form, I tried Label and TextBox but none of then supports text justification. How can i beat this problem Thanks
-
- How to seperate data from the Rightextbox ?
by suis
- 7 Replies
- Last post
by suis
- Hi everybody, i am using a rich text box to display data , now my problem is, in my rich text box i used to diplay text string and some image object. so i need to seperate these two text string and image object in the rich text box is there any way to do this help me.. regards suis
-
- Possible to update a VB 2005 control's 'enabled' property via code while in the IDE environment?
by LRanger
- 3 Replies
- Last post
by Stephen Weatherford MS
- I have created a class based on the forms.button class. Adding the control to the Toolbox, I can add the control to my forms. The problem is that I have a property called 'Mode' that changes the control's other properties as needed. For example, while in the design window, if I set the Mode property to <something>, I want to automatically set the said control's Enabled property to false. It