Answer Questions
Nicolas Humann Timer
I have a Problem, I have a timer that runs and a event has to be run within this timer. The event is triggered by a button. My question is how do i get the brogram to "ask" if the specific timer is still running The event can be run before or after the timer is ended but it will be maked as early or late. Any help would be cool Thanks Thelostcircuit jrboddie, That worked out perfectly after I did the same thing with the ftime variable. I didn't know you didn't have to have the datetime thing in front of it after it was created. Thankyou Jon Ok really what I'm trying to do is tell if someone did something late. I have a time that gets s ...Show All
TemporaryNick Using a form to add record to sql database
Hi, I'm a VB Newbie and on a steep learning curve. I have downloaded and installed VB Express and started on designing my form with all my fields, (name, address, etc.) I haver also installed SQL Server Express. Using the "How do I" on the help menu ( http://msdn2.microsoft.com/en-us/library/ms172598(d=ide).aspx ), I have managed to add a database to my form, add a table and insert records into the database manually. I have also managed to view the data entered into the database on the form using AddressesDataGridView control. I would like to now use my form to enter values and details onto this database. Does anyone know of any tutorials that will help me do this Thankyou Regards Habib Hi, Using the ...Show All
grolich Help Computed column
hi i need help regarding this problem i always see here in forums how to add or multiply diff columns and show result but my question how to get result in all the cells in 1 column and display result in a textbox . for example i have a table that has a column CodeID, Quantity, And Price i already have a solution in Quantity * price and show it to a textbox but how will i compute all the cells in 1 column like Price only btw im using vb express and sql as database and not using datagried view im using a deatails view. after searching for threads i finnaly found what im looking for Dim result As Object = TheDataSet.Tables(0).Compute( "Sum(FiledName)" , String .Empty) i ...Show All
Mr Dutchie Capture a picturebox
I am trying to capture the contents of a picturebox. The picturebox's location property is 0, 0 Only the upper left corner of the picturebox and part of whatever is in the background, is captured. Dim b As Bitmap Private Sub CapturePictureBox1() Dim myGraphics As Graphics = PictureBox1.CreateGraphics() Dim s As Size = PictureBox1.Size b = New Bitmap(s.Width, s.Height, myGraphics) Dim capturedGraphics As Graphics = Graphics.FromImage(b) capturedGraphics.CopyFromScreen(PictureBox1.Location.X, PictureBox1.Location.Y, 0, 0, s) End Sub Private Sub Button1_Click(ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles Button1.Click CapturePictureBox1() End Sub ...Show All
satya n Windows Forms Designer Fails to Load
I'm having a big problem with Visual Studio Express. The designer won't load. I used to get this message: One or more errors encountered while loading the designer. The errors are listed below. Some errors can be fixed by rebuilding your project, while others may require code changes. No data is available. Hide at Microsoft.Win32.RegistryKey.Win32Error(Int32 errorCode, String str) at Microsoft.Win32.RegistryKey.GetValueNames() at Microsoft.VisualStudio.Shell.Design.WindowPaneProviderService.AppendWindowPanes(RegistryKey parentKey, ArrayList windowPanes) at Microsoft.VisualStudio.Shell.Design.WindowPaneProviderService.GetRegisteredPanes(String extension) at Microsoft.VisualStudio.Shell.Design.W ...Show All
volleynerd Making Webrowser
Hello everyone,i have a few questions about making an WebBrowser in Visual Basic 2005 Express. Question 1 : I'd like to make an progress bar,but wich codes do i need to add to let it work,and let it only be visible when the page is loading. Question 2: Wich Code is Required to open a new window by clicking on : New Window( in the ToolStrip Menu) I just want it to open a new window of my own browser.(see code) And wich one is needed to let ip open an File( See code 2) Private Sub NewWindowToolStripMenuItem_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles NewWindowToolStripMenuItem.Click End Sub Code 2: Private Sub OpenToolStripMenuItem_Click( ByVal sender As System.O ...Show All
Prateek_cds How do I get Len(MyObject)?
After banging my head against the keyboard for a bit I am now ready to ask a potentially "duh" question like this... According to MSDN (VBE): "With user-defined types and Object variables, the Len function returns the size as it will be written to the file by the FilePut function." Sounds simple, but ... ===================== Public Class DataClass Inherits Object 'Obvious, but getting desperate... Private I As Integer Private S As String Private B As Boolean Public Sub New(ByVal newI As Integer, ByVal newS As String, ByVal newB As Boolean) Me.I = newI Me.S = newS Me.B = newB End Sub End Class . . . . Sub WriteTest ( ) Dim d1 As DataClass = New DataClass(583, "Test string&q ...Show All
dr.grumbles Save As animated gif impossible?
I am working on an image editing application and am on the final step, which is the user saves the 3 images they have edited as one animated gif. I have done a lot of web searches trying to find some code that will accomplish this, but have come up empty. Is it possible If so, how is it done Hey Widget.... We could working on this together. The first thing to know about C is that their syntax is backwards. Private Sub ProcessFiles() 'String [] imageFilePaths 'really means Dim imageFilePaths () as string = {"c:\01.png","c:\02.png","c:\03.png"} ' See there are infiltrating VB with squiggles 'This is the largest conversion concept for the whole file. 'String outputFileP ...Show All
Jademobile TFS SP1 Installation Failure
The build component seems to install without error, but the first component fails every time. I can fix our installation afterward by reinstalling the KB that's required before installing SP1, and fixing whatever changes the install made to the Domain accounts uses for the application pools and services. But it would be nice if we could actually get SP1 to install without error. I'm thoroughly disappointed with the low quality of this install fall so far. I've seen alpha software work better. Anyhow, I've got this log file with a ton of information and lots of errors. Rather than posting it here (because it's simply huge), is there someone I can send it to who can help We'd really like to get this installed if possible. I hear thi ...Show All
Jens K. Suessmeyer - MSFT Visual basic printing question
Hi! I am a big noob at Visual Basic programming (started one day ago). Basicly what i need to to is a really small program which prints 12 different textboxes textbox_1 to textbox_12. What i have done is to manage to get a hang off how to print textbox_1 with the following code: Private Sub TextBox1_TextChanged( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged End Sub Private Sub PrintDocument1_PrintPage( ByVal sender As System.Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles PrintDocument1.PrintPage e.Graphics.DrawString(TextBox1.Text, TextBox1.Font, Brushes.Black, New System.Drawing.RectangleF(e.MarginBounds.Top, e.MarginBounds ...Show All
dsallow Chaning build directories
I'd like to be able to change which directory VC++ puts my .exes, debug databases, .obj files, and everything else it creates. Idealy, I'd like to be able to seperate them so that I do have one bloated folder containing many files that aren't needed to run the program. In Code::Blocks I could do this with the "Execution working dir:" and "Objects output dir:" settings. Is there a way to do this Thanks. This could be done by using compiler switches or through the IDE. Take a look at http://msdn2.microsoft.com/en-us/library/yb8e9b8y.aspx . Make sure you specify the full path to the obj. http://msdn2.microsoft.com/en-us/library/fwkeyyhe.aspx is also helpful. Thanks, Ayman ...Show All
Kamii47 Read only property?
i have a bitmap, and i want it to be controlled by the keyboard. my present code is... Private Sub Form1_KeyDown( ByVal sender As Object , ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me .KeyDown Select Case e.KeyCode Case Keys.Left rect.Left -= 25 Case Keys.Up rect.Top -= 25 Case Keys.Right rect.Left += 25 Case Keys.Down rect.Top += 25 End Select End Sub Private Sub Form1_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load Dim TmpCtr As Control For Each TmpCtr In Me .Controls AddHandler TmpCtr.KeyDown, AddressOf Form1_KeyDown Next End Sub After writing this, blue li ...Show All
RibenaUser Cause of this error: "The login already has an account under a different user name"
I am getting the following error after importing a database schema (from both SQL 2000 and SQL 2005): "The login already has an account under a different user name" The error points to the generated SQL script for the user under the security folder. Anybody able to explain to me the meaning and cause of this error Thanks Hi can you provide more information on the user name, is this a standard SQL user that you are trying ot create mairead PM, TS Data Steve, You are right. The login ID of the user was mapped to the "dbo" user in the database. That is what was causing the error. Do you have any suggestion on how to work ar ...Show All
one_pom I have a Question
When I open a link in a new window on my web browser, It opens it up with Internet Explorer. How can I tell it to open up new windows with itself, and not internet explorer Wait... I found it. The Iwsh Runtime. Now what do I do Back to Question 2... I have added that COM componet, and now I don't know where it went. please edit your posts instead of making multiple replies - it helps other members. Just read the link I provided, I've given an example in there on how to create a desktop shortcut using the IWsh runtime component. The desktop shortcut would be made within the application itself, any where you like, however if you are talking about within the installer, then I don't know how you would do this in ClickO ...Show All
Ross Watson How to make a dll project?
How to make a dll project Hello I will move you to the Express Edition Forum. Thanks Damien Hello Are you using the Express Edition Thanks Damien yes File > New > Project > Visual C++ > Win32 Console Application > DLL or if you want MFC File > New > Project > Visual C++ > MFC > MFC DLL I dont see that option, ALl i see is this http://img107.imageshack.us/my.php image=untitledtq6.jpg ...Show All
