Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Commented Post
0 Endorsements
~28.2K People Reached
Favorite Forums
Favorite Tags
Member Avatar for Sheryl99

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] …

Member Avatar for boxes
0
13K
Member Avatar for Sheryl99

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 …

Member Avatar for aamirnikkiaadil
0
5K
Member Avatar for isaackhazi

Im currently working on a project to build an application for Windows Mobile 6. Im just stuck with this stupid issue: I have a SQL query string: Dim connectionString2 As String = "Data source = " + path + "\HC.sdf" Dim cmdText2 = "SELECT * FROM BigC_Rangsit_0_" I want to …

Member Avatar for longstrd
0
935
Member Avatar for Sheryl99

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 = …

Member Avatar for hlove4u
0
827
Member Avatar for Sheryl99

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. …

Member Avatar for 4advanced
0
149
Member Avatar for Grimmic

I need to make an array using the following info. Salesperson January February March 1 2400 3500 2000 2 1500 7000 1000 3 600 450 2100 4 790 240 500 5 1000 1000 1000 6 6300 7000 8000 7 1300 450 700 8 2700 5500 6000 9 4700 4800 4900 …

Member Avatar for Sheryl99
0
128
Member Avatar for Sheryl99

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 …

Member Avatar for waynespangler
0
149
Member Avatar for Sheryl99

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 …

0
66
Member Avatar for Sheryl99

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 …

Member Avatar for iamthwee
0
144
Member Avatar for Sheryl99

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 …

0
69
Member Avatar for Sheryl99

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 …

0
67
Member Avatar for Sheryl99

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. …

0
73
Member Avatar for Sheryl99

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 …

Member Avatar for selvaganapathy
0
170
Member Avatar for Sheryl99

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 …

Member Avatar for Sheryl99
0
3K
Member Avatar for Sheryl99

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 …

Member Avatar for Teme64
0
4K
Member Avatar for Sheryl99

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 …

Member Avatar for Sheryl99
0
85
Member Avatar for Sheryl99

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 …

0
78