-
- textboxes
by dakota367
- 5 Replies
- Last post
by spotty
- how would a make a text box so that it would only accept certain characters like numbers or letters or make it so it will only accept 0s and 1s
-
- How can we know what copy is currently going on?
by Dinesh Kokate
- 1 Replies
- Last post
by element109
- As an administrator, i want to keep a track of which file the user is currently copying and from which location to which location, using API in VB6.
I want to stop/interrupt the copy if the user is trying to copy any important data.
Regards,
Dinesh
-
- Best Practice for Global Variables
by Ryan_Small
- 4 Replies
- Last post
by Spidermans_DarkSide - VSIP
- I'm writing my first VB.NET application. It's a very simple application that only has 1 form.
A variable that I am declaring needs to be used in multiple procedures (2 button events to be exact). Therefore, I know that I need to declare the variable outside of the button procedure so that it is accessible by both procedures. The question is what's the best way:
Option A) Declare the
-
- App for startup
by compucv621
- 5 Replies
- Last post
by compucv621
- Hi,
I am working on a program that I need to run off of Windows XP, and I need it to choose which files to load during startup. I want it to show up in the area that says 'Select an Operating System' in startup, so it doesn't choose what to load everytime the system boots. I would also like the user to be able to select items that need to be loaded if any. How can I do all of this
-
- VB.NET and DTS package problems
by mcrisf
- 3 Replies
- Last post
by Bruno Yu - MSFT
- I am developing a small application in VB.net 2005 to run remotely an existing DTS package. If i run the package from SQL2000 the package has no failure. All works great in SQL2000. the problem is when i try to run the same package from VB.net.
I added references Interop.DTS.dll and DTSPump.dll in my project and my code to run the package is below.
Anybody has ideas
Private Sub Execut
-
- Printer Compatibility Library
by Robert Conley
- 5 Replies
- Last post
by parper
- The Print Method offers no provision for the ';' syntax of VB. While I understand that adding new syntax is not possible what can work is the ability to print lines without a carriage return.
For example
Object.PrintNoReturn("Hello")
Object.PrintNoReturn(" ")
Object.PrintNoReturn("World")
Object.Print("")
Would work the same as the VB6 code
Object.Print "Hello";
-
- Help with dataAdapter and dataSet in VB
by sunni198
- 10 Replies
- Last post
by Rui Dias VD
- I created a form that pulls a row from the database and displays in text boxes. I can alter the data in the text boxes, and update the dataset. It prints out the new data row in my list box, but when I close the program and look at the database file, the changes are not there. It seems to be updating the dataset, but not the adapter; or the adapter is not updating the database. Here's my code:
-
- ProgressBar in VB.net
by QWERTYtech
- 14 Replies
- Last post
by nogChoco
- Okay, I have a progress bar that I want to use to track the reading of a text file and the creation of a CrystalReport. The file size will vary from .txt to .txt. How would I set this up I have read many things online about the progress bar but everyone is setting their ProgressBar.Maxiumum to a static number, I need mine to be dynamic based on the file size.
After the file has been completely
-
- Login Form Help...
by QWERTYtech
- 3 Replies
- Last post
by kirannandedkar
- Okay, I added a users.mdf to my project and now I'm adding a Login Form. I was wondering if anyone could help me with the coding of click event.... I would like it to check the username first then the password. I would like the fail safe for the following things: wrong username, wrong password, username doesn't exist, etc. This is my db structure: Database Name: Users Table Name: Users E
-
- Excel.Application
by USMCNJ
- 5 Replies
- Last post
by Derek Smyth
- Here is my code:
Code Block
Public Function Evaluate(ByVal Input As String) As String Dim Engine As New Microsoft.Office.Interop.Excel.Application Return Engine.Evaluate(Input).ToString End Function
Pretty simple, it takes in an Excel Formula, Evaluates it and returns the results. Here is the issue, this simple function fires off excel in the background.
Excel
-
- Is there a memory leak issue with Visual Studio IDE not addressed in SP1?
by trekkie25
- 9 Replies
- Last post
by Sarika_MS
- Steps to reproduce the problem I describe: 1) Create a new project 2) Go to the Resources Tab and "Add an existing file" 3) Ctrl-Alt-Del to open active Processes in the Windows Task Manager 4) Watch devenv.exe 5) Add a jpeg, bmp, whatever in the Resources Tab in VS 2005 6) Watch the memory usage creep up in the Task Manager 7) Keep adding files 8) At some point a threshold is reached and
-
- System.Configuration.ConfigurationManager.AppSettings Does Not Exist
by BobInIndy
- 8 Replies
- Last post
by nonyabiz
- I am trying to upgrade a VB 2003 program to VB 2005.
One warning I am getting is:
'Public Shared ReadOnly Property AppSettings() As System.Collections.Specialized.NameValueCollection' is obsolete: 'This method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.AppSettings' C:\CS\CSolution\bin\Classes\Utilities.vb 8380 25 CSolution
1) what
-
- Generics inheritance typeloadexception
by CPoke
- 6 Replies
- Last post
by CPoke
- I am getting typeload exceptions in the watch window & debug tooltip intellisense on all of the object P1 - P6 below, except P2, where type parameters match the inherited class. Seems to occur when the generic type parameter list for the class does not match that of the class it inherits from, in either number of parameters or type of parameter.
I haven't found any documentation limitin
-
- resizable form window and controls
by ozprog
- 4 Replies
- Last post
by Andrea at magnas
- How can I make my VB.net form and all the objects within it resize to suit the window I wish to switch from full screen to tiled with other apps without having to scroll to get to buttons. Controls could either scale up and down or compress/stretch. Can you set the minimum window size
-
- Where can I get?
by danial1007
- 2 Replies
- Last post
by DMan1
- Hi guys, Despite the default blue, olive green and silver windows color schemes, where can I get/download new cool color schemes for windows Thanks, Danial
-
- Running .NET Windows Application on a Shared Server
by busyme
- 4 Replies
- Last post
by ~DigBoy~
- How do I run a .net windows application n a shared server. I created a .SNK file and updated my Assemblyinfo.vb to
point to it, but it still gives me the following error message when my application tries to authenticate my username and password against SQL server database.
************** Exception Text ************** System.Security.SecurityException: Request for the permission of type
-
- custom label control
by Anonymous568107
- 1 Replies
- Last post
by cybertaz69
- I don't know if someone has already asked this question but How can i go about to create a label which can be exapnded by dragging on it, instead of increasing the size in the properties window.
-
- How to release child's MDI form resources ?
by cmontres
- 5 Replies
- Last post
by rkimble
- Can somebody tell me how to release child's form memory into a MDI form this bug has been noticed in the framework 1.1 and 1.1 SP1 but no solution were brought at this time. Thank's for help
-
- SQL Search Statement Error
by xswzaq
- 7 Replies
- Last post
by Riquel Dong ¨C MSFT
- I have this code below to handle my search, but it could not recognize the part & SearchForm.ComboBox1.Text & . I think the the way I make the SQL to read combobox1 is wrong, but I don't know the right code to make sql read the combo1. I really appreciate any help. Thank you.
If ComboBox1.SelectedIndex >= 0 Then
Code Snippet
Dim houseSearch As New OracleCl
-
- Can't close Excel with VisualBasic 2005
by Jackot
- 11 Replies
- Last post
by Jackot
- I'm using excel.application in visualBasic 2005, and I don't manage to close it. I tried some solutions found on the net, and appart the one killing the processus "Excel" in the task manager, no solution seem to work.
In this simple example, Excel disapear from the task manager, but with the line in comment activated, excel stays open. Launching the function a second time create a new Excel Pro
-
- Inherits Dictionary class not Serializable?
by Fender_73
- 6 Replies
- Last post
by Fender_73
- I have a class that I serialize that used to have a generic dictionary as a member. It made more sense to have the class inherit Dictioanry(of String, customObject) than to just have it as a member so I changed that class to inherit dictionary(of String, customObject). The class still serializes just fine like it did before the inherits change but now when it goes to deserialize the class I get th
-
- Data table only updates once...why is this happening!!!!!!!!!!!!!!
by Pete_M
- 7 Replies
- Last post
by Pete_M
- Hi there,
I have a dataset that i am updating during runtime of my program. To do this, I first delete all of the data in a datatable using "DELETE * FROM Table1" command, and then update the dataset. To initiate this process, i double click on a datagrid. The first time i double-click on the data grid, the program works exactly as planned--i step through the code and verify that firs
-
- FInding Icon files
by BeNiceImNew
- 3 Replies
- Last post
by Bruno Yu - MSFT
- Are all the common icons stored somewhere that you can use in your vb programs.
I've added a print preview dialog but now I just want the bog standard icon to go with it and can't find it anywhere. I've found a few places online who want to sell it to me. But this seems instane.
Any pointers - I think it may be called preview.png
-
- Changing Database connection string for deployment
by dclements
- 9 Replies
- Last post
by cybertaz69
- I'm trying write a program that will read csv files and update a sql database from the csv records. So far everything seems to be ok on my test machine however I'm wondering how to chnage the connection string that connects to the SQL server when I deploy the application.
I was hoping I could just change the connect string (I created my data connection using data source configuration wizard
-
- SelectedIndexChanged
by xswzaq
- 11 Replies
- Last post
by Angel_LL
- I really really need help. I am working on the project that have 3 list box. I want to perform search so that users easily access data they want. In my listbox1, users will choose his/her choice, then the listbox2 (blank before user enter choice in listbox1) will automaticly pop up a list. For example, if I selected QA in listbox1, only catagories (item in QA) should show in listbox 2 (not all), a