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

Filter by week: 1 2 3 4 5

Problem deleting image property
Posted by Richard L Rosenheim at 11/30/2004 6:09:42 PM
I created an user control which contains an image property. Utilizing the property page, I can select an image file, and the control will display it. But, I'm unable to clear the value from the property page. That is, when I select the entry in the property page, and hit the delete key, the pro...more >>

How to Print to Printer via the PrintPreviewControl
Posted by micha NO[at]SPAM nospam.com at 11/30/2004 5:11:10 PM
Hello I use the "PrintPreviewControl" The PreView works fine but now I want to have a Button the Prints the whole thing to the Printer. I have tried this: Me.PrintPreview.print() This Prints only the first Page..... How to do that ? Thanx Micha ...more >>

Preselect a printer?
Posted by yosh NO[at]SPAM liquidzone.net at 11/30/2004 1:14:01 PM
How can i preselect a printer with settings and show the printer name in a textbox and then use that printer in a function that deals with a number of images that are going to be printed with the exact same printer and settings ? Thanks!...more >>

OleDbDataAdapter
Posted by Neil Holmes at 11/30/2004 12:04:53 PM
Can anyone help? I am trying to work through a Visual Basic.Net step-by-step book & I have hit a problem. The book references a tool from the toolbox called OleDbDataAdapter. I am using Visual Basic 2005 Express & this control does not appear. Help? Neil Holmes. ...more >>

Programmatically Change the column width of columns in Data Grid
Posted by Lou Civitella at 11/29/2004 3:38:36 PM
How can I programmatically change the column width of columns in a data grid? Here is the code I use to fill the data grid: Dim sqlError As SqlError cn = New SqlConnection(strConnectionString) Try cn.Open() Dim cmd As SqlCommand = cn.CreateCommand cmd.Com...more >>

Invisible @ Runtime Controls
Posted by Venkat at 11/29/2004 8:58:43 AM
Hi there, Does anyone know how to develop a custom control in .NET that works like an INVISIBLE @ RUNTIME Control? At present I have created my custom control without any interface. It also has all the necessary properties and methods to control it. This control is invisible and doe...more >>

How to know if a certain control or window is visible on screen and not covered by other window(s)? please help.
Posted by Jose Michael Meo R. Barrido at 11/27/2004 9:37:18 PM

OpenFileDialog.DereferenceLinks property does not work?
Posted by Yuri O at 11/27/2004 8:41:18 PM
Probably i do something wrong but it's not working with my app at all. Could anyone point me to the possible reason. Thanks Yuri ...more >>



MSChart control in VB.NET
Posted by Turtle MacDermott at 11/27/2004 7:56:27 PM
I have a VB.NET (Windows) application which produces an array of values. I'd like to display these in a chart. I've managed to get MSChart to display them (using an xy type graph), but it insists on resizing my y axis - usually to something a lot smaller than I like. Has anybody experienced ...more >>

Custom Rounded Rectangle Usercontrol does not redraw controls on it. Please help.
Posted by Jose Michael Meo R. Barrido at 11/27/2004 6:05:14 PM
I made a custom runded rectangle usercontrol. I used a function i found on the internet. the function works fine(see "GetRoundRect" below). I use the fullowing code to make my usercontrol rounded.... ***************************************************** Protected Overrides Sub OnPaint(ByV...more >>

Wait 3 seconds before run next line
Posted by Jose Rojas at 11/27/2004 5:41:00 PM
We are trying to send files to our list of clients at work, I been able to produce the code that sends e-mail, but I only can do it for 2 before it gave me an error, how can I do it that the system wait for 3 seconds before I execute the next line? Thanks in advance for your help. ...more >>

Talking to USB
Posted by phoney.email NO[at]SPAM yahoo.com at 11/26/2004 3:54:29 PM
Environment: VB6 under W98 I have a USB hardware device I wish to program directly. The original software installed a low level driver and the hardware is both registered and operational. Now then, I'd like to have access to this device directly. In other words, I'd like to enumerate all ...more >>

How to programmatically show the dropdown of a combobox in vb.net?
Posted by Jose Michael Meo R. Barrido at 11/25/2004 8:31:48 PM
How to programmatically show the dropdown of a combobox in vb.net? please help. ...more >>

How to change size of tab stops in a TextBox control
Posted by Chris Devol at 11/25/2004 1:12:07 PM
Can this be done in VB.NET? I need tabs of 12 spaces. -- http://www.soundclick.com/chrisdevol ...more >>

listview text question
Posted by Sameh Ahmed at 11/25/2004 12:56:58 PM
hello there I want to out some text in the listview when there is no items in it, and there is no text property to use. for example, "There are no objects available" when the Listview is empty. any ideas? Thanks in advance Regards Sameh ...more >>

Can anybody tell me which control i should use?
Posted by norton at 11/25/2004 10:11:11 AM
Hi All, I am writing a simple win application which will run from day to day, the application will always check the email and, once it got the email, some business logic will perform and the process log / result will display to the win form application. Currently i am using a list box and usin...more >>

event handlers
Posted by shunya NO[at]SPAM vsnl.com at 11/25/2004 7:13:21 AM
How does one know whether a event has a hnadler associated with it. Also is it possibel to get them? count them ? know the order in which they will be entertained. ..etc etc Mahesh NAik...more >>

populating dropdownlist from db
Posted by paul at 11/23/2004 9:16:33 PM
I've been fighting with this for a solid day now. I want to populate a dropdownlist with items from a table in design mode. seems like a simple thing, but I can't make it happen. Could someone please aim me at some good documentation on this? Sorry, I'm a dot.newbie but not a new programm...more >>

RadioButton
Posted by Stephen at 11/23/2004 12:36:11 PM
Greetings Folks I have a series of radiobuttons( 1-19) that I want to reset to checked = false without creating a command line for each individual button. I was thinking of a for/next loop to increment the buttons but cant figure out how make it work. Any Idea's? Thanks steve ...more >>

Adding data to Datagrid WITHOUT using dataset
Posted by SQLScott at 11/23/2004 7:41:05 AM
I know that in practical usage that the best way to get data into a datagrid in VB.Net is by setting the datasource of the datagrid to a dataset. However, is at all possible to add data to a cell freely? Meaning: me.datagrid.currentcell(row, col) = "scott" or something of the sort? ...more >>

How can i use the designer view from a inherit Control?
Posted by vokuit00 NO[at]SPAM service-profis.de at 11/23/2004 5:42:38 AM
Hello, today i inherit a new class from ListView-Class. In this new class i implement a ScrollBar-Event functionality with overriding the WndProc-Method. The functionality works fine, but is there a possibility to use a inheritation of a control of .NET without loosing the possibility of u...more >>

page.isvalid counterpart on winforms?
Posted by ronnel.santiago at 11/22/2004 4:43:31 PM
hi guys, when validating asp.net page i use page.isvalid to know wherther or not my validation are all met, whats the counterpart of this keyword on a winforms? (im using errorprovider to do my validations) TIA, ronnel.santiago (if i have 8 hours to chop down a tree, i'd spend 6 sharpeni...more >>

Now.ToLongTimeString.ToString
Posted by greg_chu NO[at]SPAM wendys.com at 11/22/2004 1:28:47 PM
When I used the above I got "4:08:16 PM" But I want "16:08:16" Any one knows how to do that? Thanks! Greg...more >>

How can I select a record on a Datagrid by hitting the enter key?
Posted by disaia NO[at]SPAM earthlink.net at 11/22/2004 11:21:35 AM
It would be much easier for users to select a record on a datagrid if they could simply hit the enter key instead of going for the mouse and clicking the OK button. I can't get this working. Am I missing something. My datagrid is called grdCustomers First I load it with records, then in m...more >>

send windows message from Application to VB6 ActiveX UserControls that are a IE webPage .
Posted by Filip Wtterwulghe at 11/22/2004 10:43:54 AM
Hello, We have a number of VB6 ActiveX applicationmodule(s) that are loaded into a IE6 WebBrowserControl . This WebControl is imbededded into Application X . Now We want to send a message from Application X to all the ActiveX applicationmodules that are in IEWebbrowser . ...more >>

Why does button text disappear when I change the button size on toolbar button?
Posted by Larry Woods at 11/21/2004 7:48:54 AM
I change the size of a button on a toolbar and the button text disappears! The button is still there and can be clicked. Also, e.button.text in the click procedure still shows that the text is defined. It just doesn't display. Why? TIA, Larry Woods ...more >>

Event question
Posted by Richard L Rosenheim at 11/21/2004 3:53:32 AM
This is probably not my best phrased question, but here it goes... I have an user control I'm writing that allows the programmer to drop additional controls on the control. I have some code in the user control's DragDrop event. When a control is dropped on my user control, the DragDrop event...more >>

Populate a ListBox with Subdirectories
Posted by Ben Scaithe at 11/20/2004 5:24:46 PM
I'm new to VB.Net, and I'm trying to put a list of all of the folders (no files) in F:\REPORTS\ inside a listbox on a form. The idea is to have the user select a folder from the list, then hit a button to print all of the items within that folder. I'm not having much luck on my own on this, so ...more >>

How do you reference row values in a hierarchial datagrid table
Posted by Larry Woods at 11/20/2004 9:23:17 AM
I have a parent-child datagrid. I want to select a row in the dropdown child "subgrid." How is the "subgrid" referenced? TIA, Larry Woods ...more >>

Dropdownlist in ASP.Net
Posted by Kerry King at 11/19/2004 10:37:35 AM
I have added a DropDownList on a ASPX form. cboUserID.DataSource = Global.SessionData.Tables("Users") cboUserID.DataMember = "Users" cboUserID.DataTextField = "User_ID" cboUserID.DataValueField = "ID" cboUserID.DataBind() cboUserID.SelectedIndex = 0 -----------------------------...more >>

OCR
Posted by yoshitha at 11/19/2004 9:33:45 AM
Hi , I've to ocr a document(image file) through vb.net .Can anyone tell me how to ocr a document ,which control i've to use and also which Dlls or com componenets i've to use in my application Thanx in advance Yoshtiha ...more >>

Disable events
Posted by dave mann at 11/18/2004 2:01:16 PM
Hi, Does anyone know if there is there an easy way of programmatically disabling an event? I want to enable drag-and-drop on a listbox using the listbox_MouseDown event but also under certain circumstances allow a listbox_DoubleClick event. The Mouse_Down event will supercede the DoubleClick e...more >>

Problem in developing newsreader in vb.net
Posted by .net at 11/17/2004 7:15:18 PM
Hello, I am developing a Newsreader in vb.net and i am getting a problem in posting article to newserver for a particular set of newsgroups. i developin g this newsreader using nntp commands.I need vb.net code for posting a article . I getting a problem in defining a article format...more >>

Windows forms datagrid doubleclick
Posted by bill at 11/17/2004 3:25:29 PM
Users need to doubleclick a populated windows forms datagrid to select the row and initiate an action. This works OK if they doubleclick the row header or even the line between two cells, but the datagrid doubleclick event doesn't seem to fire when the user doubleclicks on a cell. How can I...more >>

Any drawbacks to third-party controls?
Posted by dbuchanan52 NO[at]SPAM hotmail.com at 11/17/2004 10:47:49 AM
What should I consider before incorporating third-party components in my applications? I'm sure users and promoters can give many advantages, but has anyone encountered drawbacks?...more >>

DataGrid Help Needed
Posted by vikas_cool242002 NO[at]SPAM yahoo.com at 11/17/2004 12:14:52 AM
Hi all, I have two column in database table and I want to show it as a one column in datagrid. i.e. datagrid column = table column 1 + table column 2. How it is possible? Thanks and Regards, Vikas Rijhwani...more >>

Controlling display location of common dialogs
Posted by Bill Cernansky at 11/15/2004 5:44:45 PM
I've been searching for days for an answer this question, including usenet, the web, and through various books in my Safari subscription. I'm desperate now, because all that searching turned up jack squat and the deadline's approaching. I need to be able to control the location of OpenFileDial...more >>

Looking for DatePicker for Pocket PC 2003
Posted by TonyScarpelli at 11/15/2004 7:44:02 AM
I am using Visual Studio .NET 2003, and programming in VB. I was able to create a date picker for one of my PPC 2000 applications using eMbedded VB3, but when I look through the controls for the 2003 VB application there seems to be no Calendar or Date Picker. Does anyone know if there is ...more >>

combo event for selecting item AND entering text???
Posted by pgonzo NO[at]SPAM improvementpath.com at 11/13/2004 7:18:28 AM
Is there a combo box event that will fire after selecting an item from the dropdown list AND after entering text in the editable portion?...more >>

Web Browser Disable Right Click
Posted by Alex Clark at 11/12/2004 5:31:31 PM
Hi All, I'm sure this must have been asked a million times due to it's usefulness, but are there any sensible solutions for disabling right click (and other services such as Ctrl+P, Browser hotkeys etc) on a Web-Browser control in VB.NET? Despite Googling for ideas on and off for a week ...more >>

Highlight all strings in a textbox?
Posted by John Rugo at 11/12/2004 11:50:24 AM
Hi All, Does anyone have a quick procedure to iterate through a textbox, or Richtextbox, and highlight a specific character string? For instance: If I am looking for all the strings in a text box that are like "Home". The text box data looks something like: "Home is a nice place. I lik...more >>

ListView - at least select one
Posted by jeff at 11/11/2004 4:38:21 PM
hi, now using vs.net 2002 and using listview when user click on the blank area in the listview, all previously selected item will be unselected. how can i avoid that happending, as the user must choose one item before he click submit button. besides, when the listview is disabled, the...more >>

Print labels - Best option between using access reports or HTML templates
Posted by luis.sg NO[at]SPAM gmail.com at 11/11/2004 5:07:55 AM
Hi all, I'm trying to generate labels to print in several different formats, all of them with their own height,width and page margins. We've got this done in MS Access 2000, using a designed report that fits with each label type, and reads a table dinamically generated. But the problem is p...more >>

Help: Is it possible that remove event handlers dynamic?
Posted by Henry Jia at 11/10/2004 5:16:18 PM
Hello all, help is needed. We're make some user controls and met the memory leak problem and the reason already found. It's the fault of attached event handles not been removed. Here's the background: The VB.Net was used and the event handler of control was added by default action (such a...more >>

how do I set workareas using System.Windows.Forms.ListView
Posted by Kurt Krueckeberg at 11/10/2004 12:29:54 PM
Using the raw Win32 API one can establish workareas in a ListView control with the LVM_SETWORKAREAS message How do I do the same thing using the .NET System.Windows.Forms.ListView class? ...more >>

Resize in Design Mode
Posted by Claudio Di Flumeri at 11/10/2004 9:31:35 AM
How can I detect t he resize of a control during design mode? I have a custom control with a custom painting and, when resized in design mode, the original painting comes up and it looks pretty bad. I need to call the Invalidate Sub but i don't know where to put it ...more >>

Making a Custom DataGridColumnStyle, problems with Paint/Edit fncs.
Posted by nate axtell at 11/10/2004 9:16:56 AM
This is a multi-part message in MIME format. ------=_NextPart_000_000A_01C4C706.06757A30 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable In VB .Net I made a custom CheckBox column style (for the Datagrid = control) that maps to two DataTable colu...more >>

Controls help
Posted by Rajani at 11/9/2004 9:02:02 PM
I installed VS.NET Enterprise Architect and MSDN 2003. While installing MSDN, it asked to choose Integrate or not. I choose Integrate. Whenever i click F1 on any control(Textbox) displaying the help in the environment with another tab. Its verry annoying to me to learn and practice. How ca...more >>

Binding DropDownLists
Posted by Warren Sirota at 11/9/2004 5:45:51 PM
I am new to dotNet, though quite familiar with VB6, so please forgive the simple question. I'm looking for the right structure to create a DropDownList of State abbreviations in a Web Form, and there's something that I'm just not getting that I'm sure is simple. Say there's a States table and ...more >>

Duplicate a Form in Solution Explorer
Posted by Alpha at 11/9/2004 5:24:24 PM
Hello, How can I duplicate an existing windows form so that I don't need to build another new form from zero. In the Solution Explorer, I was fail to do so by using the following steps: 1. "Copy" an existing window form on Solution Explorer 2. Highlight the project 3. Right click and "Pa...more >>


DevelopmentNow Blog