Forum: VB.NET Dec 4th, 2008 |
| Replies: 2 Views: 911 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 ... |
Forum: VB.NET Nov 17th, 2008 |
| Replies: 2 Views: 3,449 Your solution works! Thank you, Reena!
~ Sheryl |
Forum: VB.NET Nov 16th, 2008 |
| Replies: 1 Views: 703 Hi there. I hope this will help! ~ Sheryl
Dim aRay(9, 3)
aRay(0, 0) = "John Salesman"
aRay(0, 1) = 2400
aRay(0, 2) = 3500
aRay(0, 3) = 2000
aRay(1,... |
Forum: VB.NET Nov 16th, 2008 |
| Replies: 2 Views: 3,449 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:
Private Sub... |
Forum: VB.NET Nov 14th, 2008 |
| Replies: 3 Views: 728 Hi Wayne, and thank you for your response! I still can't get it to work, so I must have something fundamentally wrong with the way my files are setup. I'll keep trying different things.
~ Sheryl |
Forum: VB.NET Nov 13th, 2008 |
| Replies: 3 Views: 728 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... |
Forum: VB.NET Nov 7th, 2008 |
| Replies: 0 Views: 569 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: ... |
Forum: VB.NET Nov 6th, 2008 |
| Replies: 4 Views: 1,966 I think I figured it out. The following code puts each of the three items into the array. This may not be the best way to do it, so I'm open to suggestions.
~ Sheryl
Dim... |
Forum: VB.NET Nov 6th, 2008 |
| Replies: 4 Views: 1,966 As long as I can reference each item separately, that's what I need. Thanks. |
Forum: VB.NET Nov 6th, 2008 |
| Replies: 4 Views: 1,966 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... |
Forum: VB.NET Oct 25th, 2008 |
| Replies: 0 Views: 1,178 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... |
Forum: VB.NET Oct 24th, 2008 |
| Replies: 0 Views: 604 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... |
Forum: VB.NET Oct 23rd, 2008 |
| Replies: 2 Views: 2,701 Thank you so much for submiting your code. I was able to get it to work with a few changes. I kept getting a syntax error message when I tried to create the table, so I changed that code to add... |
Forum: VB.NET Oct 23rd, 2008 |
| Replies: 2 Views: 2,701 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... |
Forum: VB.NET Oct 20th, 2008 |
| Replies: 0 Views: 750 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... |
Forum: VB.NET Oct 15th, 2008 |
| Replies: 3 Views: 4,099 Wow, it really works -- and there were no errors in your code.
Thank you! |
Forum: VB.NET Oct 14th, 2008 |
| Replies: 3 Views: 4,099 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... |
Forum: VB.NET Oct 13th, 2008 |
| Replies: 1 Views: 918 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... |
Forum: VB.NET Oct 12th, 2008 |
| Replies: 3 Views: 1,707 |
Forum: VB.NET Oct 12th, 2008 |
| Replies: 3 Views: 1,707 I'm replying to my own post so I can put my code in properly. Sorry, I'm a newbie. Would sure appreciate some responses to my problem. Thanks!
Public Sub Msg(strMessage as string, strTitle as... |
Forum: VB.NET Oct 12th, 2008 |
| Replies: 3 Views: 1,707 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... |
Forum: VB.NET Sep 28th, 2008 |
| Replies: 4 Views: 4,509 Thank you so much! This is going to help me a lot. ~ Sheryl |
Forum: VB.NET Sep 28th, 2008 |
| Replies: 4 Views: 4,509 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... |
Forum: VB.NET Sep 28th, 2008 |
| Replies: 7 Views: 2,395 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; |
Forum: VB.NET Sep 26th, 2008 |
| Replies: 2 Views: 533 Thank you SO very much! I tried some of the lines of code you added, but didn't have the DoEvents. Thanks again! ~ Sheryl |
Forum: VB.NET Sep 25th, 2008 |
| Replies: 2 Views: 533 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... |
Forum: VB.NET Sep 25th, 2008 |
| Replies: 0 Views: 656 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... |