Groups | Blog | Home


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 > march 2004

Filter by week: 1 2 3 4 5

Why are Microsoft Tab Controls so nasty to work with?
Posted by tim_frawley NO[at]SPAM fishgame.state.ak.us at 3/31/2004 3:26:54 PM
VB.NET 2003 Standard MS Tab Control If you add a tab control and a couple of tab pages then click on the second tab you cannot cut, copy or paste; you cannot align your objects and sometimes the mouse gets caught within the design area of the tab control which is intensly frustrating. What a...more >>


DataGrid: setting top row index
Posted by MacDuff at 3/31/2004 1:40:17 PM
HowTo: programmatically set the row associated with the CurrentRowiIndex to be physically displayed at top row of grid. I have a bound grid (3 columns of distinct data, no primary key). There are 400+ data rows in the populated grid. I can search the grid control, locate a text match, and s...more >>

Combo box "SelectedIndexChanged" Question
Posted by burak.gunay NO[at]SPAM xpandcorp.com at 3/31/2004 10:47:58 AM
Hello, I am filling a combo box as follows ' add first row Dim dr1 As DataRow = ds1.Tables(0).NewRow dr1(0) = "-- Select Table --" ds1.Tables(0).Rows.InsertAt(dr1, 0) ' fill lstFrgnTables combo box lstFrgnTables.DataSource = ds1.Tables(0) lstFrgnTables.DisplayMember = "T...more >>

Problem with FolderBrowserDialog Control
Posted by burak.gunay NO[at]SPAM xpandcorp.com at 3/31/2004 7:15:14 AM
Hello, I am trying to use the FolderBrowserDialog on a windows form to show the folders on a PC. When I drag and drop this control, nothing shows up on the form. How can I use this control? Thank you, Burak...more >>

Frame Within a form
Posted by Sameh Ahmed at 3/31/2004 4:40:03 AM
Hello there Need to add a frame to a form, this frame should contain several lines containing checkboxes and labels. is there a way to scroll the content of that frame up and down? so I don't have to reserve a space for all check boxes on the form Thanks in advance. Sameh ...more >>

edit web datagrid
Posted by mongphong28 NO[at]SPAM yahoo.com.au at 3/30/2004 10:22:58 PM
Hi, I have a web datagrid bound to a dataset. I've added an edit column and added the necessary event code to set the itemeditindex and then bind the grid. When I click the edit link all I'm left with is the header. I suspect I have to add the controls for each column to the datagrid, if t...more >>

Validating Input into DataGrid Problem
Posted by damianm NO[at]SPAM webaware.com.au at 3/30/2004 5:49:41 PM
Hi ! I am having problems with the code below. I am trying to set up an event handler to enable me to validate the input in certain columns in my datagrid. I get the error: "System.NullReferenceExceptionObject. Reference not set to an instance of an object" Below is my code: Dim ts As...more >>

DataGrid Help
Posted by ItsMe at 3/30/2004 1:57:44 PM
Hi Guyz, I'm loading values on the DataGrid using mRefreshDataGrid function by passing SQL String and Grid Name. Have a look at the function below. And it works perfect fine. But when it comes to the DateTime fields (Only Time is stored), it shows invalid date "30/12/1899" instead of Time. ...more >>



Font.Size
Posted by Ronald Dodge at 3/30/2004 10:42:56 AM
How can I adjust the the font size of an object on the form during run time as the form gets adjusted? I use the Anchor property on the object, but noticed the font DOES NOT adjust with the object as the form gets readjusted. I attempt to setup a resize code, but when I put in the code to ad...more >>

Textbox and focus ?
Posted by Ben at 3/30/2004 10:38:17 AM
Hello, Textbox1.focus set the focus to textbox1. But now, when I write Textbox1.focus doesn't have the focus... It's the same with button... Do you have an explanation ? Ben ...more >>

How to tell if a control is dot net compatible
Posted by M at 3/30/2004 9:03:54 AM
Hello, Thank you for taking the time to read this. I'm a newby when it comes to vb.net but I do have years of c++ so its not all new. I created a vb.net web application, it has a form which I put buttons on and yada yada yada it works. Now I go and place a control that does some wafer plotting...more >>

Mouse Wheel Event
Posted by Steve at 3/29/2004 4:19:02 PM
Looking for a way to handle a mouse wheel event. What i am trying to accomplish is to move records forwards or backwards in a dataset, based up whether the mouse wheel is moved up or back. I.E. move to next record for up events, and to previous record for back event. Any one have any suggesti...more >>

Simulate Click-Event in ComboBox
Posted by DraguVaso at 3/29/2004 3:58:12 PM
Hi, I'm having a DataGrid with a Combobox bound to it. When I enter a DataGridCell the comboBox is shown. BUT, to typ something in it or scroll through the ComoBox-Items I have to click a second time in it. Now my queqtion is: how can I kind of 'simulate' the Click in that ComboBox, so that...more >>

communicating with page in web browser control in VB.net project
Posted by Tom Wells at 3/29/2004 11:01:45 AM
Is there a way to set or extract the values of form fields within an HTML or ASP page that is displayed inside a web browser control embedded in a .NET windows application? For example: When a button is clicked in the application I use the Navigate2 method to have the browser control display an...more >>

ToolBar DragOver
Posted by fred at 3/29/2004 3:41:14 AM
I want to be able to raise the ToolBar.ButtonClick event when I drag an object onto a ToolbarButton. I am using the DragOver event of the Toolbar which is working fine but the problem is finding out which button I am hovering over and then to raise the click event. I am trying to get the bu...more >>

Search Drop down box
Posted by MSN at 3/28/2004 11:44:23 PM
I'm need to find an item in a dropdown box and make it the selected item. Example Drop Down Box Of US States I pull the state from a database and it ="New York" How can I find "New York" in the list and make it the selected Item. I could for next and find it but i see Indexof, Findbytext so I ...more >>

Run Programs
Posted by Bill English at 3/27/2004 6:31:27 PM
How do I run a launch a program from my program? Example my program is just a menu in the tray used for quickly launching my programs....more >>

Parent/Child control communication
Posted by nobody at 3/27/2004 1:00:36 PM
Is there anything wrong with doing this scenario: You have a Parent control (maybe a form) that has a m_MyChild member variable. The form creates an instance of a child control and assigns it to it's m_MyChild variable and sets m_Child.MyParent = Me (or this in c#). In the child's MyParent pr...more >>

Keypress Event
Posted by anuragsaxenajpr NO[at]SPAM hotmail.com at 3/27/2004 11:36:45 AM
I am using VB.NET How can I use Keypress event in VB.NET,means what are the parameters and what is event name and what should I write in after handles keyword...more >>

ComboBox Broder style
Posted by VJ at 3/27/2004 9:17:11 AM
I would like to remove the Broder of combo box and make it visible only if any item is selected in the list. How do I get this done... Thanks VJ ...more >>

Help me PLEASE.
Posted by Bill English at 3/27/2004 9:08:09 AM
I'm 14 and just started programming last week, so this is probably an easy question. How do I resolve this error: An unhandled exception of type 'System.NullReferenceException' occurred in Software Inventory (My Version).exe Additional information: Object reference not set to an ins...more >>

DataGrid_KeyUp event not fired??
Posted by DraguVaso at 3/26/2004 5:20:51 PM
Hi, I'm having a DataGrid in which I want to control the behaviour of my Arrow-Keys. Unfortunately I'm not able to catch these events. I thought the KeyUp/Keydown/KeyPress-events, but these are only fired when the DataGrid isn't editable. Does anybody knows how I can catch the Arrow-Keys wh...more >>

ComboBox: show DropDownList on DownArrow-Key + scrool through List
Posted by DraguVaso at 3/26/2004 3:30:03 PM
Hi, Normal behaviour when uwing the Up and Donw Arrow-keys in a ComboBox:: - when the DropDownList is visible: scrolling visibly through the List (8 ListItems visible) - when theDropdownList isn't visible: scrolling through the List, but without showing the whole List (only one ListItem visib...more >>

How can i call IE to open a URL in VB.net
Posted by Norton at 3/26/2004 9:44:54 AM
Thx in advance! ...more >>

How to select a tree view node programatically
Posted by Dino Buljubasic at 3/25/2004 11:37:02 PM
I'd like to select specific node of my tree view when I load it so that all items inside the node get displayed. My question is how do I select that node programatically? Thanks, Dino...more >>

Combo Box Problem...
Posted by Vanessa at 3/25/2004 7:05:12 PM
Hi, I have noticed a problem with combo box in dot net. when the combo box is in focus, the text is being highlighted-> correct, but when I move the focus to another control by pressing the 'enter' key, the combo box is still being highlighted. Does anyone know why is this so and how to sol...more >>

TableStyles without GridColumnStyles ??
Posted by DraguVaso at 3/25/2004 2:22:16 PM
Hi, I'm having an error that I didn't really expected: I have a DataGrid, to which I added a (empty) TableStyle like this: dbgMulti.TableStyles.Clear() Dim tbsTableStyle As New DataGridTableStyle dbgMulti.TableStyles.Add(tbsTableStyle) When I Want to use afterwuths the GridColumnStyl...more >>

Get object names for menuitems
Posted by jriner NO[at]SPAM cox.net at 3/25/2004 1:10:22 PM
Here's a fairly simple question, All help is much appreciated. How do I get the list of names for the menuitems(mainmenu and sub-menu) items to reference their individual object properties. For example: Manmenu1 has: File Food help Breakfast about ...more >>

Help me.how to use "setparent"???
Posted by lemonvital at 3/25/2004 1:06:28 PM
I have two form,frm1 and frm2. I use setparent function. frm1: Dim frm2 As frm2 Public Declare Function SetParent Lib "user32" Alias "SetParent" (ByVal hWndChild As IntPtr, ByVal hWndNewParent As IntPtr) As Integer Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As...more >>

Row Count in DataGrid
Posted by DraguVaso at 3/25/2004 11:37:18 AM
Hi, I want to know the number of Rows (Row Count) of a DataGrid, but without knowing the DataSource. So I have to find it directly form the DataGrid, because I can't know in advance if the DataSource will be a DataSet or a DataView etc, so I can't use fucntiosn liek this: myDataSet.Tables(0...more >>

tab controls question
Posted by Paul M at 3/25/2004 9:58:50 AM
hi, i have a form that has a tab control with 2 tabpages...first tabpage is like a design view, and second is a results page. When i click a run button on the my form, i execute whatever is needed and want to programatically activate the 2nd tab, with the following code: tabMain.TabPages.It...more >>

Textbox editing
Posted by Sylvain Audet at 3/25/2004 9:20:19 AM
Why can't I use CTRL-BACKSPACE in a textbox control? It is writing up the character to the control instead of interpreting the key sequence (it should be deleting the word next to the cursor). I am using VS.NET 2003. Thanks for your help, -- Sylvain Audet - MCP+SB Visitez les astuces .N...more >>

Control.Validating
Posted by fred at 3/25/2004 1:15:18 AM
I have a form with a number of textboxes for data entry and an OK and Cancel buttons. I am using the Validating event on a number of the textboxes so that I can validate the data before they can leave the textbox. It works fine except that I don't want the validation to prevent the user from can...more >>

always show Details in Master-Detail DataGrid
Posted by DraguVaso at 3/24/2004 12:12:07 PM
Hi, I have a DataGrid in which I have a Master-Detail relationship. By default, to see the Details, you have to click on the "+" on the right and than you can see the details for one Master-record. I want to be able to see in my DataGrid always all the Master-records and all the Detail-reco...more >>

Persist Sub-Control Properties Within My Custom Control using Browseable(True)??
Posted by Alex Stevens at 3/24/2004 10:21:23 AM
Apologies if anybody seeing this as a cross post, but I only just discovered these groups today. Hi All, I have a customer control I have written and I have made one of the labels controls within the custom control available as a property as such: <Browsable(True)> Public Property Availab...more >>

OnChange
Posted by Richard Harris at 3/23/2004 1:32:13 PM
Hi, In MS Access you used to be able to use the OnChange command in VBA to modify something if the selected item in a combo box had changed. Does anybody know how you can do this with a combo box in VB.NET ? Many thanks Richard ...more >>

VB 6.0 Masked Edit Control in VB.Net project
Posted by Shane Brodie at 3/23/2004 10:34:26 AM
Trying to populate a series of VB 6.0 MaskedEdit controls with data from a SQL Server database. I have tried everything to get this to work, but the controls remain blank. Am I missing something? Private Const PhoneMask = "(###) ###-####" Private Sub ClearMasks() mskCustPhone.Mask = ...more >>

combo box - DropDownList
Posted by SJK at 3/22/2004 8:22:52 AM
When adding items to a combo box (DropDownList), how can I display some of the items in BOLD, or in different colors?...more >>

Question - How to execute an external program from VB.NET.
Posted by CMI at 3/22/2004 7:25:55 AM
Hello, I have a need to launch a separate VB.NET application (external executable) from within another using a command button. Is it possible to "tie" a command button within application A to execute application B? Thx! ...more >>

Control_Paint produces garbage
Posted by Thommy Mewes at 3/20/2004 3:35:07 PM
Hi, i'm trying to paint a small border with a custom color around a panel with the following code: Private Sub objPreviewPane_Paint(ByVal sender As Object, _ ByVal e As System.Windows.Forms.PaintEventArgs) Handles objPreviewPane.Paint With e.Graphics .Clear(System.Dr...more >>

Flat Combo Box
Posted by Dino Buljubasic at 3/19/2004 4:25:29 PM
How can I make controls like ComboBox, DateTimePicker appear flat with border around like a TextBox when its BorderStyle property is set to Flat? Thanks...more >>

Setting controls at runtime
Posted by sdh NO[at]SPAM caselle.com at 3/19/2004 10:48:43 AM
In VB6, to set a control during runtime using the control name as a string value: dim sTemp as string dim ctl as control sTemp="textbox1" set ctl=me(sTemp) ctl.enabled=false How can you do the equivalent of the "set ctl=me(sTemp)" in VB.Net 2003. I have found a workaround, such as ite...more >>

Able to use IE browser within a VB6 or VB.Net project? (Not AxBrowse control)
Posted by Seeker at 3/18/2004 10:33:44 PM
Are there any DLLs, etc. that I can use to embed an IE6 web browser into a VB6 or VB.Net project (not including the AxBrowse) control? Project will be deployed on Win XP machines, so I can count on those DLL's, etc. already being present and registered on the target PCs. Thanks! ...more >>

Is there any control can similar to MSN Messenger's Popup windows?
Posted by Norton at 3/18/2004 9:16:05 AM
I am now using a timer control to change the position of the form But seems using too much resource and some labels becomes "black" (not yet painted) it there any other method to do the similar function? thx a lot . ...more >>

How to hide specific row in ListBox control?
Posted by Evgeny Zoldin at 3/17/2004 3:42:09 PM
Hi ALL. How to hide (not remove) specified row in ListBox control? Thanks Evgeny ...more >>

How can i browse picture as thumbnailImage
Posted by lemonvital at 3/17/2004 2:08:37 PM
Hi I have trouble with me. There are many pictures in Database,i want a function to browse them as thumbnailimage.The function just like acdsee.how can i do that? please help me. Thank you in advance. ...more >>

Timer control and Progress Bar: WHAT'S GOIN ON?
Posted by AKA at 3/17/2004 1:37:48 PM
I have been riddling my brain on what seems to be the simplest problem i have ever worked on. All I want to do is click a button on a WInForm and have the progress bar increment ever second until the process that I initiated with the button is finished. I have been using the Tick event and custo...more >>

Context Menu Position
Posted by Salazaar at 3/16/2004 9:22:00 PM
Hi, Is there a way to make a ContextMenu always appear at a particular position only, irrespective of where on the control the mouse is clicked.By default, it appears slightly to the right of the mouse pointer when the appropriate control is clicked. Specifically, I want my contextmenu to a...more >>

combo box
Posted by Salazaar at 3/16/2004 9:16:50 PM
Hi, The help in .net sdk says that any object can be added to the ComboBox control. I am trying to add buttons to the Items collection of the ComboBox. But, the Combo only displays the toString() message of the control in the dropdown. Is there a way I can add buttons(more than 1) to the Co...more >>

list view question
Posted by Sameh Ahmed at 3/15/2004 8:54:00 PM
Hello there I have a listview with 3 header columns, I can populate the first and second one with the following code, but cannot figure out how to populate the third and the following header columns? listview.Items.Add(empname) listview.Items(i).SubItems.Add(empid) thanks in advance Sameh ...more >>


DevelopmentNow Blog