- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
17 Posted Topics
I'm trying to create my own Database and Tables in SQL Server 2005 using VB.NET 2005. I get an error when I try ExecuteNonQuery, which says that the connection is not initialized. I'm not sure if I'm doing any of this right. Any help would be greatly appreciated! Sheryl [code=vb] … | |
I am using a PictureBox to display images. I have SizeMode set to StretchImage. While this does indeed show the whole image, it is of coure stretched. Is there a way to prepare the image to be displayed so it will fit correctly in the PictureBox? I just want it … | |
Re: Not sure if this is what you need, but maybe it will help. Dim strTable as String = "MyTable" Dim strSQL as String = "SELECT * FROM " & strTable & ";" result: SELECT * FROM MyTable; | |
My form's KeyPreview is set to True. I want to allow my users to use the Enter Key instead of just the Tab key. I have the following code in my form's KeyPress event: [code] Private Sub frmDesigner_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles Me.KeyPress If e.KeyChar = … | |
I am studying VB.NET in a VB 2005 book, but using VB 2008. What is wrong with this code? I am using ASP.NET to write a web page. For each reference to: ResultFahrenheit.Text ResultCelsius.Text ResultKelvin.Text I get errors that say: Name 'ResultFahrenheit' is not declared. Name 'ResultCelsius' is not declared. … | |
Re: Hi there. I hope this will help! ~ Sheryl [code=vb] Dim aRay(9, 3) aRay(0, 0) = "John Salesman" aRay(0, 1) = 2400 aRay(0, 2) = 3500 aRay(0, 3) = 2000 aRay(1, 0) = "Sue Seller" aRay(1, 1) = 1500 aRay(1, 2) = 7000 aRay(1, 3) = 1000 fill in the … | |
I've written a UserControl, and within that control the user is able to change some properties on a form. I can't figure out how to display the changes in the property grid. The only time I've been able to update these properties, is in the UserControl's Load event. This won't … | |
I added a property called 'TableColumns" to my UserControl. It has a button on it, since "TableColumns" is a class that contains a collection called "FieldColumns", and two other properties: "ColumnName" and "ColumnHeader". When I press the button on my control's property, a box comes up where I can add … | |
What I need, is one three-dimensional array that holds: 1. Column name 2. MaxLength 3. DataType My code is close, I just can't remember the syntax for adding data to the array. Please help, Sheryl [code=vb] 'get the column information Dim c As Integer = 0 Dim x As Integer … ![]() | |
I am trying to create a property for my UserControl that will allow me to work with data that the user selects. I have the property working correctly, in that it will drop down a list of data sources in the test project. I am working with the Northwind database … | |
I've created a very simple UserControl, compiled it, then exited VB. Then I loaded my application and added a reference to it, and also added the Imports statement for it. The problem is that the UserControl will not display in my Toolbox, rendering it useless. Is there something else I … | |
I can get my User Control to go into the Toolbox if a form is contained within the User Control project. What good is this other than testing? I want to be able to write a Windows Control Library and have the controls in the Toolbox whenever I need them. … | |
Hello. I am writing an application that displays photos. I need to be able to stop the SlideShow when the user presses the "Stop" button. Right now, what's happening when the Stop button is pressed, is a public variable, bStop, is set to True. It works sort-of, and it also … | |
I created a new Class Library, and want to use the MessageBox.Show function within a procedure in the class. Maybe this can't be done? I tried adding "Imports System.Windows.Forms" to the top of the class module, but it won't allow me to use that, either. Here's a simplified version of … | |
In my VB 6 code, I had many classes and depended on the ability to loop through the objects to get at the data. How is this done in VB.NET? Here's a very simple example of what I'd like to be able to do in VB.NET. In my Accounts class … | |
What is wrong with this code? All I want to do is display photos for a slide show, with about 5 seconds pause between photos. It will only show the last photo. The photo directory and file names are contained in the ComboBox. (I thought I posted this wrong, so … | |
I am writing a simple application in VB.NET to view JPG files. I have a slide show option, and can only get my PictureBox1 to display the last photo. ComboBox1 contains the directory and file information for each file. Here is my code. Thanks for your help! Private Sub cmdSlideShow_Click(ByVal … |
The End.