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 2005

Filter by week: 1 2 3 4 5

MyTextbox control
Posted by max at 7/31/2005 9:06:24 AM
I have a new textbox control with a couple of added properties. The problem is when the textbox is painted there is an extra black line at the top of the box. In the designer for the control the location is missing, so I added Me.Location = New System.Drawing.Point(0, 0) In Initi...more >>


Underline of hot key character doesn't show at runtime
Posted by ITJRW at 7/30/2005 3:11:21 PM
Hi All, I'm going through Microsoft Visual Basic .NET Step by Step Version 2003 by Halvorson. I have performed a Chapter 4 exercise according to the instructions exactly. Using the & character before the desired hot key character in MainMenu1 mnu????Item Text property. The hot key shows...more >>

AddHandler Removal
Posted by Bill S. at 7/28/2005 11:54:33 AM
Hi, Is it possible to remove an event handler once it's installed with AddHandler? Below is the event I added and it works fine. Later in my code I want to remove it. I tried using this statement: (AddHandler mOwner.CmdFirst.Click, Nothing) to remove it, but this does not work. Help! AddHa...more >>

DataGridBoolColumn Class
Posted by at 7/28/2005 12:00:00 AM
Dear all, I have a question about check box in datagrid. How can set the checkbox is readonly in datagrid.?.. here is the code: Dim tGrn As DataTable Dim Colgrn As DataColumn Dim Grndataset As New DataSet Colgrn = New DataColumn Colgrn.DataType = System.Type.GetType("System.Bool...more >>

Add treeview node "manually" as string with PathSeparator as divider in the string
Posted by Mikael Jansson at 7/27/2005 9:40:29 PM
Hi, Is it possible to add a treenode to a treeview by using a string that has the PathSeparator as divider in the string? hereis a psedocode (maybe stupid format or coding but I hope you understand what I mean) treeview.pathSeparator = "." [treeview add node] = "1.2.6.1.2.2.4.4.2.1" [tre...more >>

Form in a form
Posted by Jerry at 7/27/2005 9:46:56 AM
Thanks George, this works they way I imagined it. However now I have the problem of exchanging variables in the "subforms". Here's what I have: 1 parantform (mdi) childform in the parant which is the main form and several "subforms" as controls on the childform Each subform has inputs...more >>

NewBie help
Posted by trialproduct2004 NO[at]SPAM yahoo.com at 7/26/2005 3:46:04 AM
Hi all I am developing application which is providing compression of files. I want to know is there any method or dll in .net which is allowing me to compress file through code and to uncompress file. Microsoft has provided tool in C++ that is cabinet SDK. Is there any equivanent tool in .net. ...more >>

Generate a .CSV file
Posted by Gaffar at 7/26/2005 12:00:00 AM
Hi In my form (windows from) 've several text boxes,lable controls and drop down boxes and a button. when i click on this button then the entered in all the textboxes and = data=20 presented on label and dropdown boxes must be saved into a textfile and = the textfile must be converted to the...more >>



Slower and Slower
Posted by George Shubin at 7/25/2005 9:21:40 AM
Has anyone experienced significant slowdown in the apps the longer they run? I have a VB.Net app the runs fairly "snappy" for about 10 minutes of constant use, then a significant drop-off begins until it becomes unresponsive. Another head-scratcher is if the app is simply started and left a...more >>

Data grid Column hide
Posted by sureshsmani at 7/23/2005 8:51:45 AM
How can I hide a column in the datagrid. I have to do it in runtime. Suresh. ...more >>

Help, I need a spinner control
Posted by Lou at 7/22/2005 8:25:58 AM
Where can I get or how can I make a spinner control. -Lou ...more >>

Controlling ListView Selection programatically
Posted by Jon Masterson at 7/22/2005 12:00:00 AM
Hi All I am working on converting an application from using a listbox to a list view so that I can have multiple columns showing different parameters. With the listbox I can use listbox.SelectedIndex to set the current selected item - there does not appear to be a simple way to do this iwit h...more >>

How draw 3D buttons by code?
Posted by JohnLid at 7/22/2005 12:00:00 AM
Hi, I want to draw 3D buttons by code nice like this one: http://www.download.com/AquaButton-Control/3000-10253_4-10414398.html?tag=lst-0-1 The code may be anyone of .NET languages. Please help me out. Thanks in advance. John Lid ...more >>

need help with combo box and arrays
Posted by RickH at 7/21/2005 9:56:11 PM
I am trying to populate a combo box from a 2 dim array so that I have a displaymenber and valuemember. Creating the array and populating it is easy, but I can't seem to get the datastructure correct so that the combo box returns the slectedvalue rather than the display value. Any sample code...more >>

User-based Form design
Posted by Mark Longerbeam at 7/21/2005 1:56:41 PM
I have a database application where I need to give the user the ability to add fields. So I need to put up a form with controls representing fields of the database that exist, then allow the user to select a control type and then place and position the new control (field) on the form. I'm hip ...more >>

Left and Right Arrow keys don't move cursor in focused TextBox
Posted by nate axtell at 7/21/2005 7:56:08 AM
VB .NET 2003: I have TextBox controls on the pages of a TabControl, then when running the application I try to move the cursor when a TextBox has focus. The Right and Left arrow keys don't move my cursor through the text. Only the Up and Down arrows work for moving the cursor left and right. ...more >>

how to split a row of data into two rows
Posted by Dino Buljubasic at 7/20/2005 12:00:00 AM
hi, I would like to display data fetched from database in a row that has two lines in it like for example following two rows are displayed ( the lines are just to distinguish row 1 from row 2: ---------------------------------------------------------- ID1 NAME1 ...more >>

Volume Control
Posted by Jorge L. Carbwood at 7/19/2005 6:12:47 PM
I'm very new in the programming world. I have create a VB.Net app., but I can't see how to add a master volume control for my interface. I seen some examples but no luck so far. All I want is my code to control de volume and maybe a Mute button. All help will be gladly accepted. Jorge ...more >>

ListView
Posted by Lou at 7/19/2005 5:56:18 PM
How do I get the first selected item of a listview here is what I've tried but it crashes on the item= part. i do have items in the list view and i do have 1 item selected Dim item As ListViewItem item = lvMyStuff.SelectedItems(0) Debug.WriteLine(item.SubItems(2).Text) -Lou ...more >>

Container Control
Posted by Lou at 7/19/2005 8:47:12 AM
How do i add a control to the container control? -Lou ...more >>

Forms in forms
Posted by Jerry at 7/19/2005 12:00:00 AM
Hi Ken, Herfried, Eric and the rest who can help, thanks for your replies. They all worked, more or less. Using the parent panel was ok, but when the form has the focus the main form loses focus and the bar turns grey. works but looks wierd. The MDI from Eric seems best. This brought me to...more >>

AVI animation on VB.NET form howto?
Posted by Mikael Jansson at 7/18/2005 10:57:05 PM
Hi, I tried to find how to show an AVI animation sequence like a "filecopy" animation but did not find how to do that in VB. Is there a control in VB.NET or any other way of doing it?? I be very happy for a code example if possible.....feeling a little lost for the moment ;-) br / Mi...more >>

problem with Treeview diplicating nodes
Posted by ThunderMusic at 7/18/2005 7:26:26 PM
Hi, while I'm searching into a treeview to find a specific node, I find the code duplicating treeview nodes I just can't figure out what's causing this behavior, maybe some of you already encountered this problem. Can someone help please? Here is the code of the functions causing this pro...more >>

Manual Scroll
Posted by Rlrcstr at 7/18/2005 6:37:39 PM
In a scrollable control, what if I don't want to autoscroll? Can you controll it manually? Are there scroll events that you can respond to? Thanks. Jerry ...more >>

RichEdit TextBox
Posted by Bill S. at 7/18/2005 12:00:00 AM
Hi, Can anybody tell me if it's possible to implement spell checking for a RichEdit TextBox somehow? I've tried implementing a Word object and passing the text to its spell checker, but in the end, Word becomes visible and ruins the whole effect. ...more >>

Scrollable Control
Posted by Rlrcstr at 7/17/2005 11:02:54 PM
Is there a way to force a scrollable to control to display the scroll bars even when there are no controls out of view? Jerry ...more >>

UserControl
Posted by Lou at 7/17/2005 5:28:43 PM
I have a test project. I added a new Blank user control(UserControl1.vb), then added 2 Buttons. Now from my Form1.vb I want to dynamically add this control and show it on my form. How is this done, I tried many things but can't get the UserControl to appear? Dim UC As new UserControl1 ...more >>

Why is it done this way?
Posted by Rlrcstr at 7/17/2005 12:17:32 PM
I'm looking through the code in a sample from MSDN - A databound = treeview... While defining the DataSource property Duncan (the author) uses this = code in the property's Set routine: If TypeOF Value Is IListSource Then Dim myListSource as IListSource myListSource =3D CType(Value, IL...more >>

Color Convert
Posted by Lou at 7/16/2005 8:10:53 PM
How do I convert a System.Color to an OLE_COLOR I am using the FontDialog box with ShowColor=True When I get that color I am trying to set a property in an ActiveX control that takes in an OLE_COLOR value. I get an exception whe I try to do it directly Ex: MyActiveXObject.FontColor=FontDialo...more >>

Disable Item in Listbox
Posted by David Miller at 7/16/2005 7:13:27 PM
Does anyone know if you can disable an individual item in the listbox. Thanks, David ...more >>

DataGrid Row Size
Posted by Rlrcstr at 7/16/2005 6:21:14 PM
I see info all over the place about auto-resize columns for the winforms datagrid. What about for rows? I would like the current row to expand vertically enough to show all the text in a very long text field. Has anyone done anything like this? My best guess at this point is to use a grp...more >>

how to change color of the bars in progressbar
Posted by Sinclair at 7/16/2005 11:12:02 AM
Hi, I have two questions about progressbar control in VB .NET 1. How to change default system color of the bars in progressbar 2. How to change style of the bars (I want progressbar to be smooth not in squares)? regards from Sinclair...more >>

Scrollable
Posted by Lou at 7/15/2005 8:59:38 PM
I have a main group box that conatiins other sub group boxes. I want to be able to scroll the group boxes that are contained within the main group box??? -Louie ...more >>

It's possible to "Serialize" a Form?
Posted by Massimo at 7/15/2005 2:14:04 PM
HI, it's possible to save a windows form as XML? Thanks and regards Massimo...more >>

Reflecting on Friend Properties...
Posted by MstrControl at 7/15/2005 12:47:47 PM
Greetings All... I'm creating a BaseClass that will connect to a database and retrieve the all the properties values from it. So far so good. All the inherited classes retrieve it values from the database... IF the properties are PUBLIC. I'm using Reflection GetProperties and GetMemebers ...more >>

Help to requery datagrid/dataset
Posted by Morten Snedker at 7/15/2005 12:00:00 AM
I have this code, LoadData_2, that is triggered when the content of a textbox changes (passed to the procedure as SearchString). I want the datagrid to reflect the changes, but can't get it to work - I'm doing it wrong, but don't know where. If I use LoadData, instead of LoadData_2, it refle...more >>

Graphics
Posted by Lespaul36 at 7/14/2005 9:57:09 PM
I was wondering if there is a way to draw a graphic, save it to an arraylist, and then use the already drawn graphic when needed in a listview? ...more >>

Alpha Fix
Posted by Lespaul36 at 7/14/2005 8:26:07 PM
I have a user control that I need to use alpha icons for with a listview..the alpha channel is lost of course and I know that in an application I can set the styles and use a minifest, but how can I set it up for a user control? ...more >>

How to prevent column resize in winform datagrid control?
Posted by PNayak at 7/14/2005 3:32:01 AM
I wist to prevent user from resizing column in winform datagrid control. Any ides / technique / clues? -- Thanks and Regards Kool Dude...more >>

TrackBar-Slider control
Posted by Lou at 7/13/2005 9:23:13 PM
How do i get a smooth trackbar(Slider) control, one without the hash marks and incremental changes. i need a smooth slider control that will have very small increment callbacks. -Lou ...more >>

Getting Values from a User Control
Posted by graham bates at 7/13/2005 2:15:44 PM
Hi There, In desperation I was wondering whether anyone could cast their eye over a small problem I having. I am attempting to create a user control which basically consists of a DropDown list. Now, I wish to both retrieve values from this drop down list, and also to change the values that f...more >>

ListViewItem Size
Posted by Lespaul36 at 7/12/2005 6:05:03 PM
I am working on a custom listview sort of like the one from Microsofts fotovision. I can do the drawing of the items, but the item bounds are to small..how do I correct this? TIA ...more >>

TabControl - VB.2005 - Which event to use
Posted by Sergio Terenas at 7/11/2005 10:35:52 PM
I forgot which event I should use if I want to trap when a user moves = from TabPage1 to TabPage2. I know this is real easy but I forgot which one to use. Thanks, ST...more >>

Three Generations of Data
Posted by Rlrcstr at 7/11/2005 6:08:48 PM
Windows Forms. DataSet with several tables and relationships. Table 1 has its children in table 2. Table 2 has its children in table three. Three textboxes show info from Table 1. DataGrid 1 show the child records from Table 2 properly. DataGrid 2 is showing all records in Table 3. How do...more >>

Data Bound Custom Control
Posted by Rlrcstr at 7/11/2005 4:05:48 PM
Can someone point me to an example of creating data bound custom controls? I want to create my own customized listbox that I can bind to a custom collection of objects. Thanks. Jerry ...more >>

DataGrid columnwidth
Posted by max at 7/11/2005 6:31:07 AM
I am trying to set the witdth of the datagrid's 1st column so that the second column butts up next to the edge. But this doesn't work. Any ideas?? Dim colJD As New DataColumn Dim colAmt As New DataColumn 'Define Column Job Description colJD.D...more >>

Anyone know how to change color for a 3D button like this button control does?
Posted by TonyVal - MSDN News at 7/11/2005 12:00:00 AM
Hi All, Anyone know how to change color for a 3D button like this button control does? http://www.econtechvn.com/en/aquabutton_detail.htm I see it is really cool. But, don't know how to do that. Thanks, TonyVal ...more >>

RTF
Posted by S Shulman at 7/10/2005 3:10:31 PM
Hi, Is there any method to edit the text within the RTF control e.g. allow the user to select a text and then select from another control the size of the text Thank you Shmuel Shulman SBS Technologies LTD ...more >>

VB.NET keeps losing / mangling controls
Posted by Daniel Wilson at 7/8/2005 8:09:40 AM
Our team has been having trouble with VB.Net dropping the TrueDBGrids off of the forms. It will be fine for weeks, then the problem will strike again. You go to compile and the grids are gone. I thought it was a problem w/ CompentOne's control until yesterday when tab pages got lost too. Is ...more >>

Help regarding listview in vb.net
Posted by trialproduct2004 NO[at]SPAM yahoo.com at 7/8/2005 2:47:46 AM
Hi all i am having problem in listview which i am using in vb.net applicication. I am getting following two errors. There are not freqent errors but if i run my app for nearly 30 min then these errors are coming. So i am not gettng exact scenarion for these errors. At a time of calling meth...more >>


DevelopmentNow Blog