Answer Questions
GhostTown Delaying code.
Hi guys. Quick question here. I'm looking to put a delay inside a For/Next loop to make the computer wait a designated amount of time before continuing. Rather than use a timer control, I want to keep it purely within code. I remember the good old days where you could just go DELAY 1000 and be done with it, but alas, it seems that those days are no more. If anyone could help me out it would be much appreciated. "Thanks for ...Show All
TimDinh How to keep GUI responsive during DB query?
All right, here's the question...while loading large amounts of data, or querying a DB, my GUI hangs...that's to be expected with single-threaded apps. So what I did is I created a borderless form with a picturebox that has the animated GIF of the progress bar scrolling back and forth, along with a label that gives you a message like "Please wait while the query executes..." I show the form before I call a method that's going to take ...Show All
Mhsn Calculation in Visual Basic 2005 express
I need help please on this question and i could not understand where to begin.The question say, Input Calculate Circumfrunce Area of Circle. Value and surface area sphere. : Pi i = e Pi i square =theda 4/3 Pi i cube = V 4Pi i square = SA please, some give at least some sort of direction i'm just a starter in Visual basic. thanks guys. Context, Context Context. And thread Dr ...Show All
Johnny Butler Rotate an image
Is it possible to rotate a picturebox or an image inside a picturebox Also, is there a way to make the picturebox backcolor actually transparent Setting it to Web/Transparent does not work. In your paint event, do a Graphics.RotateTransform( Angle ) and then whatever you paint next, will be at that angle. nogChoco: That's the way to rotate an image. There's usually a simple way to do just about any ...Show All
Kelly Brownsberger How to use a Process to run CMD and a DOS utility to send Commands
Hello, I need some help. I want to write a program that will do the following: 1. Start a process that will run CMD.exe 2. Once in CMD window run the DOS utility (i.e., "C:\utility.exe Command) where Command is the command to send to a device. 3. There are about 5 or 6 commands that I need to send to configure a device using this utility. This utility exits with the "quit" command and returns to CMD window. Ca ...Show All
newb821 Background worker not working as expected
Today I was trying out the backgroundworker component in Visual Basic 2005 (RC1). I created a very simple windows application conssiting of one form on which I added the backgroundworker component. I added two buttons, one to invoke the backgroundworker RunWorkerAsync, the second to do the same work synchronously. In both cases a progress bar is used to show progress. On trying the application I find that the syncronous code runs much, much  ...Show All
Charlie545587 How to run VB2005 EX B2 .EXE Files...
How do I run an .exe file that I create in Visual Basic 2005 Beta 2 Where are the real files located I looked in the projects folder and saw the \bin folder and tried running the .exe file located there of my application. When I double-click the files located in the \bin folder, each program crashes and ask me do I want to send a report to microsoft about the error. The program will run fine within the programming ...Show All
deepforest Renaming a file with a timestamp
Hey!, i have a slight problem. I want to rename a file with either the date last modified or todays date including time. I also want to move the file to a different folder, then rename it with the timestamp. I have tried several ways of containing the last modified information but failed miserably. Help with partly coding or full code appriciated. /Rav out Big thanks mate!, gonna try it out at work today. ...Show All
Bill Ramos code folding
hello how can i configure the (visual basic) text editor to keep the code folded after closing and re-opening a vb code file thank you i presume you mean collapsing/uncollapsing regions of code I don't think these details are persisted, but you can speed up their opening and closing by either using keyboard shortcuts or macros (see http://weblogs.asp.net/mrdave/archive/2004/09/17/230732.aspx for exampl ...Show All
Ooo update changes in access database
hi friends, i am unable to commit changes in my access database. my code like this: im mystring As String mystring = "Provider=Microsoft.Jet.OLEDB.4.0;data source=c:\myevents.mdb" Dim myconnect As New OleDbConnection(mystring) Dim mycommand As New OleDbCommand("select * from admin", myconnect) Dim mydata As New OleDbDataAdapter(mycommand) Dim da As New DataSet D ...Show All
smp exposing c header file
i am looking for a c parser that would parse a c header file into xml or a format that will allow me access the strutures defiend in it Does any one know of an api or something that lets you open up a c header file and exposes it's metadata as xml. i was wondering since this is a feature used in code itellisence. I have a need where i need to parse through a c header file which has a whole munch of typedefs i need to be able to find one th ...Show All
RyanF VB Dummy
I have inherited a vacation request form. In the start and stop dates there is a macro. Right now when somebody tabs onto the start or stop date a calendar comes up for the year 2000. You can change it and select any other date you wish but I would like the calendar to pop up with the current date. I am enclosing the macro below. Is there any entry I can insert or deltete to make this happen Thank y ...Show All
ShayLawless Saving gif files
Hi people, For a jpg file, you can save the file with the save method of the image object and you can specifiy a quality. code: currentImage.Save(SaveFileDialog1.FileName, _codec, GetQuality()) First parameter is the name of the file. Second is the ImageCodecInfo, here a jpg. Thrid is the quality as encoderparameters. Now I would like to save a .jpg file as a .gif file and I want to set a number of colors that it wants to use ...Show All
Martin Cowen How to update ID values in multiple tables
Hi, I am in the process of developing an IT Asset Tracking System in VB.NET. I have come across a small problem though. A user is assigned to a Desktop PC and also assigned to other items such as a Printer, Monitor etc. The workstation details along with the user is stored in one table and other items associated with the user are stored in another table. If I then disassociate the user from the Desktop PC by removing the userID, I also ...Show All
ISRA VB2005 ConfigurationManager not declared
In VB2005, how do I read the values in the AppSettings section of my App.Config file In VB2003 I could use ConfigurationSettings.AppSettings, but it’s obsolete. I added Imports System.Configuration in the references tab of the property page, but I can’t use the ConfigurationManager. It says it’s not declared. This doesn't work. I also get the message ConfigurationManager not declared Look at this for th ...Show All
