Archived Months
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007


all groups > vb.net controls > july 2006

Cut And Paste Controls
Posted by Lou at 7/31/2006 12:52:41 PM
I have a command Button (btnSend) with code in the Click Event(btnSend_Click). When I cut the control and then paste it back in the code no longer runs. Seems it creates another sub btnSend1_Click Why? Do I have to cut and paste the code as well> This doesn't work like VB6. -Lou ...more >>

Datagrid row headers context menu
Posted by rnettle at 7/30/2006 12:59:50 AM
I have a datagridview on a form and what I want to do is add a context menu to the datagridview row headers. So that when a user left clicks a row header to highlight a grid row and then right clicks the row header a context menu appears on that row header, your help would be much appreciated. ...more >>

Windows Form Designer Generated Code
Posted by Derek Dowle at 7/28/2006 7:17:02 AM
Visual Studio 2005 Standard Edition I am in the process of migrating to VB.NET from VB6 and have attended the Programming with Microsoft Visual Basic .NET course 2373B. When forms were added to projects during the course the 'Public Class Form1' always included pre-written code 'Windows Fo...more >>

Working with PicureBox
Posted by Christian at 7/28/2006 12:50:02 AM
Hi all, I was working with a picturebox in VB6 to display graph with legend. I'm trying to convert my application in vb.net. My problem is that many properties of vb6 picturebox doesn't exists in vb.net. I want to write text on the picturebox for the legend and the following code doesn...more >>

PasswordChar
Posted by Massimo at 7/26/2006 3:38:11 PM
Is it possible to set the passwordchar property to a column or a cell of a datagridview to view the * characters when user digits? Thanks, Max ...more >>

Serial Control DataRecevied event
Posted by Lou at 7/26/2006 10:01:44 AM
When I try to send back data using the serial control I get a message that my combo control is on a different thread. Example: Private Sub SerialPort1_DataReceived(ByVal sender As Object, ByVal e As System.IO.Ports.SerialDataReceivedEventArgs) Handles SerialPort1.DataReceived Serial...more >>

BindingNavigator1 - Trap before delete
Posted by Jack at 7/25/2006 6:36:54 PM
Is there a way to trap the events (delete, save, etc) of a Binding navigator before it fires the connected function? I want to cancel a delete if there is only one record in the database. Jack ...more >>

Discrepancy in DataGridView column order & databound DataTable
Posted by Mike at 7/25/2006 5:58:50 PM
Dear group, I'm currrently investigating a bug within a piece of our software whereby if a DataGridView (bound directly to a DataTable) is ordered by column headers (containing lookup combo boxes where the value is the foreign key of another table), although the DataGridView is ok, the Data...more >>



Autoscroll Events
Posted by Keith G at 7/25/2006 1:19:02 AM
VS2003 using VB.Net I have a form with Autoscroll enabled and a Panel in the top left hand corner. When the Form is scrolled I would like to keep the Panel visible (as it contains other controls), in other words the Panel's location should always be 0,0 relative to the forms visible rectangl...more >>

ComboBox text Property
Posted by Lou at 7/24/2006 4:25:47 PM
I get an error message about "Cross threaded operation not valid" I have a combo box on a form and I simply add two items and then want to read the value of the selected item. I don't have any additional threads running? Dim sMsg as string sMsg="The new value is : & Combo1.Text -Lou ...more >>

Problem with user control and application/user settings
Posted by GAZ at 7/22/2006 12:00:00 AM
Hello all, We have a bit of a problem with application settings and user control. In short, we have developed a user control that should, as it happenes, get a value stored in application settings of its host application. The app.config of the host application looks like this: <appSett...more >>

PrintPreview control does not print
Posted by paul at 7/22/2006 12:00:00 AM
Hello, I am using a print preview control to display some multi coloured text. I render it fine it all looks great even does multiple pages OK. However when I press the print button on the print preview screen nothing happens! Can anyone help? Thanks Paul...more >>

Simulate HOLDING DOWN shift and alt
Posted by Daniel N at 7/18/2006 10:43:55 PM
Does anyone know how to simulate holding down, (and bringing up), the shift and alt keys. There in no possible way with send keys that I know of. ...more >>

Threading .....
Posted by Simon Verona at 7/17/2006 2:09:21 PM
I think I'm doing this wrong : I have a class with a public shared method such as follows: public shared sub myFunction dim frm as new myFrm dim t as new Threading.Thread(Addressof frm.myShowDialog t.start end sub In the frm - the myShowDialog just does a "...more >>

user triggered SelectedIndexChanged vs. code triggered ?
Posted by Rob R. Ainscough at 7/17/2006 8:04:51 AM
I was look at e (System.EventArgs) for hints on determing the source of the SelectedIndexChanged on my combobox, unfortunately e is nothing (empty). Is there a way to determine the triggering source? Thanks, Rob. ...more >>

How to animate in VB.Net ?
Posted by David at 7/17/2006 12:00:00 AM
Hi, I am wanting to write a demo simulation program to show how our water tank controllers work. I have tried using a progress bar, changing the height of a panel and making bitmaps visible and invisible but cannot find a suitable method of animating a water tank filling and draining. Also ...more >>

Events and dynamically created user controls
Posted by Geraint Williams at 7/16/2006 12:00:00 AM
Hi Please can someone tell me how to handle an event raised by a dynamically created user control? What I am doing is: I have a main form with a menu - depending on which item the user selects a user control is dynamically created and loaded into a panel on the form. This works fine....more >>

Button behaviour
Posted by Tym at 7/15/2006 10:33:03 PM
I'm new to VB2005 - been in vb6 for a while. The button command is throwing me a bit... when it's in the designer, it has nice rounded corners and can have a lovely graduated background to it - when I run it - square and grey - what's happening?? -- Tym ~There's no place like 127.0.0.1~...more >>

Limit to range of colors displayed by Label control?
Posted by Evan Stone at 7/13/2006 10:37:21 AM
Hi, I was just curious to know if there was a limit to the range of colors a label control can display. For instance if I set a label control's ForeColor to 28, 23, 15 it renders black (on my system, at least - but I'm running an nVIDIA GeForce 440 MX 64MB card running in 32-bit color, whic...more >>

ToolBar Click event
Posted by Marcos M Ribeiro at 7/12/2006 3:43:28 PM
On a regular button I can use the PerformClick method How to perform the same effect on a Tollbar Button? Thanks Marcos PS: Pls send a copy to kiko@barretos.com.br ...more >>

Question about Sender.Object in the Click event...
Posted by Jerry H. at 7/11/2006 7:41:19 AM
I have to admit some ignorance here, and hope for some clarity: Why is it that, for various UI type objects that have a CLICK event (button, radio button, combobox, listbox, etc), the "Sender" variable that is returned is not wholy aware of the calling object's Name property? Isn't the Name pro...more >>

VB 2005: Continuous Form, like Access?
Posted by Martin Schneider at 7/10/2006 6:21:07 PM
Hi! In Access I can have a "Continuous Form", i.e. a Form which is repeatedly displayed (with a scrollbar) for each record in a database. How do I achieve something like this in VB 2005 Express? Thanks! Martin...more >>

how to change labelvalue when deleting row in gridview?
Posted by Cas at 7/10/2006 4:26:07 PM
Hello, My gridview has the option ShowDeleteButton="True". There is also a label which renders the amounts of records. What i'm trying tot do is: when i delete a row, the amount of records must be adapted in function of the value of a field. If the value of the field="black" then it must b...more >>

Inheriting From Existing VB Control Doesn't Work
Posted by Seigfried at 7/7/2006 11:55:57 AM
I'm trying to create my own usercontrol by inheriting from an existing control. I'm getting an error that doesn't seem to be described in any of the MSDN references I can find. I'm following instructions that can be found at MSDN: http://msdn2.microsoft.com/en-us/library/7h62478z.aspx and...more >>

OLE Control from v6.0
Posted by NetGoofy at 7/6/2006 1:13:02 PM
In VB6, I could insert a OLE Control onto a form, then embed or attach a avi or video clip in that OLE Control. How does this function in VB 05 EE. Basically what I want to do is be able to put a small video file on a form, and have an end user click the play button to activate or play the v...more >>

Application Settings & Public Variables & User Controls
Posted by GAZ at 7/6/2006 12:00:00 AM
Hello all, I was wondering is there a way for a user created control to 'pick' the value of a public variable during run-time. For example. We have built a control that has to connect to a SQL database and collect some information. In order to do that we pass the sql connection string to a ...more >>

Raising an event of a control inside Templatefield within GridView
Posted by Nam at 7/4/2006 5:47:02 AM
I have a DropDownList control in a TemplateField inside my GridView How do I access this control’s SelectedIndexChanged event in codeBehind page? I don’t see the ID “DropDownList1” of this control in the list of objects in odeBehind page. GridView1 and DropDownList1 are bound to ...more >>

can a control call parent container method ?
Posted by Support at 7/3/2006 12:42:17 PM
Hello: I have a form in which there is a control. My objective is to pass to the control, via a public property, a method. For example: Alert("message") A timer on the control would read the name of the parent property, in this case, Alert("message") and execute this code. 1) can it be don...more >>


DevelopmentNow Blog