all groups > vb.net controls > june 2004
Filter by week: 1 2 3 4 5
How to create Custom Shape Controls
Posted by Anup Rav at 6/30/2004 4:15:16 PM
Hi,
I am looking for a solution for creating custom shape controls (like rounded
edge buttons, drop down, list view controls etc..) and windows forms. First
of all is it possible to do it in vb.net or not? if yes then what is the
way? I have seen the msdn article "Shaped Windows Forms and Cont... more >>
Determining the current DataGridColumnStyle
Posted by Dave Taylor at 6/29/2004 3:27:55 PM
I have a DataGridColumnStyle-derived class that implements a ComboBox. I've
also derived a DataGrid class and overrode the ProcessKeyPreview method to
return False when the tab key is pressed (avoiding the issue caused by
pressing the tab key and having it fly by the custom column style). I woul... more >>
Combobox listindex problem
Posted by BS at 6/29/2004 11:16:07 AM
Hello guys,
I'm having a problem figuring out what my problem is
In a class, I load some values into a combo that is place in a form with the
following code :
Public Sub Load_QC_Combo_AlertType(ByVal cboAlert As
XXX_ComboBox.XXX_AutoCompletionCombo)
cboAlert.Items.Clear()
Wi... more >>
Mapped table name in a DataGridColumnStyle
Posted by Dave Taylor at 6/29/2004 9:04:56 AM
I'm deriving a class from DataGridColumnStyle that will display a ComboBox
of units (meters, feet, deg C, deg F) etc. for the user to select. I need
to determine what units to fill the ComboBox with based on the mapping name
and table. My database is setup so that value/unit pairs are stored as... more >>
Listbox color questian
Posted by HÃ¥kan Svensson at 6/28/2004 2:29:25 PM
Hi!
How do I change color of an item in my listbox?
I'm a newbe in programing so please give me some code sample
Thx in advance
/Håkan
... more >>
Need to .SelectAll()
Posted by Marc Miller at 6/28/2004 11:24:13 AM
Hi,
Being new to VB.NET Windows Forms, I need a little help with the =
following. I need to do a SelectAll on the first textbox
that I have changed to forecolor to red. However, I get an error:
"selectall" is not a member of "Systems.Windows.Forms.Control"
Is there a workaround?
Di... more >>
Setting a default property for user control
Posted by Marty McFly at 6/28/2004 11:00:04 AM
Hello,
I have a control class that inherits from System.Web.UI.WebControls.Button.
When I drag this control from the "My User Controls" tab in the toolbox onto
the form, I want it to reflect the following default properties: Height =
32px, Width = 144px.
I declare the Width property in my ... more >>
Extending Textbox colors
Posted by fdmaxey NO[at]SPAM yahoo.com at 6/28/2004 8:01:56 AM
I recently tried to create an extended Textbox control for VB.Net. I
was trying to create a control where I had more control over the
colors in disabled and read-only mode.
I went to some examples on different websites. Changing the color
(text and background) is fairly easy. I just inherit... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
TreeView double-click
Posted by Dave Taylor at 6/25/2004 9:43:21 AM
Is there a way to prevent a TreeView from Expanding/Collapsing nodes when
the user double-clicks the node? I like to use the double-click event to
edit the object the node represents and its annoying to have it
expand/collapse when the user double-clicks. (The user should still be able
to use t... more >>
ANN: Intersoft Lab Starts Sales of Contour Products Version 2.0
Posted by info NO[at]SPAM contourcomponents.com at 6/24/2004 4:47:17 AM
June 23, 2004
Dear developers,
Intersoft Lab announces the immediate commercial availability of the new
product versions:
- ContourCube 2.0 ActiveX
- Contour CubeMaker 2.0
In this announce, you'll find top features added to the new versions of
Contour components and tools, as well as of t... more >>
No mousedown event after hide
Posted by Giuliano at 6/23/2004 2:27:36 PM
Hello everybody,
I have one problem like the following:
I made a class control derived from UserControl.
When a user right click on that object, I open a new form. When the form
loose the control (Deactivate) I call Hide (I want to have something like a
context menu with textboxes and compo... more >>
ComboBox bug???
Posted by Anthony at 6/23/2004 12:27:19 PM
Hello All,
I have a combo-box that contains three items added at design time. When I
try to set the SelectedText property at run-time based on a value from a
SqlDataReader, the SelectedText is not set, but if I step through the code,
the SelectedText gets set. Any help will be greatly apprec... more >>
Best way to enter a date
Posted by Tim at 6/22/2004 5:21:10 PM
What is the best way to enter a date in a winform? Sometimes this field may
be blank or null as the user may not want to enter a date. They may also
want to remove the date when updating an existing record. I want it to be
easy for the user to enter and I would like to make sure it is a valid dat... more >>
Update From Label No Good
Posted by Justin Emlay at 6/22/2004 4:35:22 PM
Private Sub lblUpdateEmployees_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles lblUpdateEmployees.Click
OleDbDataAdapter1.Update(DsEmployee1)
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
OleDbDat... more >>
Controling the width of a column in a datagrid
Posted by bob NO[at]SPAM metaprosystems.com at 6/22/2004 2:04:40 PM
I am creating a datatable and then binding it to a datagrid. I want to
control the width of the columns, in particular increase the width of
the 2nd column. I looked at the examples on the web but I could find
one that I could get to work.
Please tell me how to modify my current code most easi... more >>
3rd Party Download Manager (HTTP) ?
Posted by amit NO[at]SPAM desiboy.com at 6/22/2004 4:11:13 AM
Can anyone suggest a 3rd party control to manage a "digital download"
over HTTP. Basically I'm looking to deliver files over HTTP with a
progress bar & auto resume (securely).
Something like Microsoft's service pack download process. The control
downloads the files ... and then launches the ... more >>
Can not update invisible controls
Posted by hao at 6/21/2004 2:44:04 PM
Hi, all
I got some question these days. Some hidden controls can not be
updated or changed in my form. If I set the visible=True, everything
is fine. Another problem is in a Tab Control, the data binding values
of controls in invisible tabpages can not be changed too.
For example, if I wa... more >>
Can't get form to start up in right position
Posted by Mark P at 6/21/2004 1:25:50 PM
Hi,
I'm trying to get my form to start up at the top left
corner of the screen. I set the Location to 0,0 and
I have StartPosition set to Manual. Is there another
factor that I am missing?
Thanks,
Mark
... more >>
Having a goofy Monday - Treeview Help
Posted by Shane Brodie at 6/21/2004 11:20:55 AM
Here is a snippet of VB.Net code which should populate a Listview with at
least a row of column headers. I get a blank ListView and no errors. Am I
missing something simple?
Dim reader As OleDbDataReader
Dim cmd As OleDbCommand
Dim firstPass As Boolean = True
cmd = New OleDbCommand("... more >>
updown control
Posted by Jessie Niu at 6/18/2004 5:23:32 PM
Hi,
Is there any control in dotnet that is similar to the Updown control in
VB6, so you can
have the event down click and up click with that?
Thanks
Jessie
... more >>
Listbox question
Posted by Tim at 6/17/2004 11:21:19 PM
I am trying to create an incremental search on a list by using a textbox and
a list box. I have it working except when I set the selected item, it moves
it to the bottom of the listbox. I would like it to move to the top. I am
using:
ListBox1.SetSelected(iIndex, True)
--
Tim
... more >>
Control designer for custom user control property
Posted by Rhy Mednick at 6/17/2004 12:32:20 PM
I have a control that I've created and it exposes several formatting
properties through a "Format" member. I've created a control designer that
gets activated in Visual Studio through a designer verb. The designer gets
activated and is able to read and write to the special Format property of... more >>
Control Won't Open in Designer
Posted by BluDog at 6/17/2004 9:26:47 AM
Hi
I have a Custom User Control that appears in the solution explorer
with the standard class/module icon rather than the control icon. When
i open it, only the code is available, the control will not load in
design mode.
The control works fine at runtime and i have no problems with other
... more >>
DropDownList on DataGrid
Posted by Jose Mutisse via .NET 247 at 6/17/2004 6:21:33 AM
Hi, Help me please.
How can i poputale a DropDownList in DataGrid or MSFlexGrid?
--------------------------------
From: Jose Mutisse
-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)
<Id>zYL4YZ88J06DRkWlHtDJMw==</Id>... more >>
Convert VB 6 ActiveX Controls
Posted by Mike Kanski at 6/16/2004 10:14:54 AM
Can anybody send me a link to a good resource on the web that will explain
how to convert VB 6.0 ActiveX controls to .NET ActiveX Controls?
And most important. Can .Net activeX controls be installed on the client
using the same technique as with VB 6 controls i.e.<object
codebase="controls/con... more >>
The datagrid problem
Posted by 234 at 6/15/2004 12:21:14 PM
dg1.TableStyles(0).GridColumnStyles.Item("Product ID").Width = 100
This is my statement for changing the width of column.
However, i can't find any property to format the number.
Such as ###.00 ===> 99.00
How can i do that??
Please let me know about your ideas or provide some helpful lin... more >>
Transparent Menu
Posted by Dino Buljubasic at 6/14/2004 7:24:47 PM
How can I make menu items transparent?
Thank you,
Dino... more >>
SQLCE Problem on Create Table
Posted by Enver A at 6/14/2004 4:48:49 PM
Hey ppl,
I am having trouble in building a smart device application. I cant create a
table on SQLCE server using this line. Anyone can tell me what the problem
is?
I am able to create another 3 Tables same way but this SQL line is always
gives me problems.
command4.CommandText = "CREATE T... more >>
Using .NET Usercontrol on VB6 form
Posted by Mike Wright via .NET 247 at 6/14/2004 8:31:52 AM
Hi all,
I have created a User Control in VB=2ENET and want to use it in a=
VB6 project=2E The form_load method in VB6 contains the following=
code:
Set UC =3D Form1=2EControls=2EAdd("ClassLibrary=2Euc1", "UC1")
UC=2ELeft =3D 2000
UC=2ETop =3D 1500
UC=2EVisible =3D True
and this code... more >>
a Method's or Property's Tooltip
Posted by Amer Kheir via .NET 247 at 6/14/2004 5:21:51 AM
Salaam All,
I have created a Custom Control using Vb.net, and this control Contains some Methods and Properties. what I want is to add a tooltip for the method or property.
Can anyone Help me with this.
thanks.
--------------------------------
From: Amer Kheir
-----------------------
... more >>
Image Property (ImageEditor)
Posted by Amer Kheir via .NET 247 at 6/14/2004 5:15:45 AM
Salaam All,
I have created a Custom Control using Vb.net, and this control Contains an Image Property. this is the code that I wrote to handle this property:
private m_imgLogo as Image
.
.
public Property Logo() as Image
Get
return m_imgLogo... more >>
Cause postback by hitting enter key
Posted by campadmin at 6/13/2004 6:54:46 PM
I have a simple asp.net web form with a text box and button control. How
do I cause the page to postback when the enter key is pressed, similar to
the button's click event? I've read where javascript is the only way to
accomplish this. Thanks!
... more >>
ListView search
Posted by George at 6/13/2004 1:19:39 AM
Hello,
I want to update an item in a listview, to perform this I search the items
collection to
find the item with the corresponding text. Is there a more efficient way to
perform this? In a listview with 2000+ items I experience quite a
bottleneck... thanks.
... more >>
Freeze frame headings for Webforms DataGrid
Posted by David D. at 6/11/2004 12:43:28 PM
A problem with the Webforms DataGrid is that, natively, there appears to be
no built-in option for freezing column and row headings. Unlike the
client-server control, the Webform DataGrid column headings scroll off the
page, so it is difficult for the user to tell what column he or she is
look... more >>
Error Using SelectedIndicesof Listbox with custom objects
Posted by Alex Stevens at 6/11/2004 10:11:31 AM
I'd already posted this in microsoft.public.dotnet.framework.windowsforms
and microsoft.public.dotnet.framework.windowsforms.controls to no avail so
apologies for the cross-posting.
Hi,
I'm writing a usercontrol which displays the typical two listboxes and the
ability to move items from one... more >>
How do I access events from dynamically created controls on WinForms app?
Posted by acool at 6/11/2004 9:48:49 AM
I created this cool Usercontrol but now I am at a loss for how to access the
events for the dynamic controls I created on the fly?
... more >>
data grid automatic cell resizing
Posted by Paul M at 6/11/2004 9:37:11 AM
hi there,
i hope this is possible, but what i have is a datagrid on my windowsform,
that populates with random SQL queries.. how can i resize the cell widths to
show the maximum data in the field, instead of each one being a fixed width?
thanks,
P.
... more >>
Why can't I debug or make changes to user controls??
Posted by acool at 6/10/2004 3:49:22 PM
I have a simple winforms app with several user controls. I have made some
changes to a datagrid and not seen those changes propogated to the
usercontrol placed on the form (i dont know why). When I place a breakpoint
on the UC it never gets fired. even though when I place a msgbox within the
eve... more >>
CollectionChanged event
Posted by Dave Taylor at 6/10/2004 1:10:56 PM
I have a UserControl with a TextBox (txEntry) and ComboBox (cbxUnits), used
to enter a real value and select appropriate units.
I have a handler for the txEntry.DataBindings.CollectionChanged event that
automatically binds cbxUnits based on the fieldname being bound to the
txEntry (each real v... more >>
Datagrid edit events
Posted by Oscar Di Criscenzo at 6/9/2004 3:26:25 PM
How to control the user input when the datagrid (winform) is in edit mode.
Is any events available ???????
Thanks !
Oscar.
... more >>
Wierd Codes in My TextBoxes
Posted by cemich NO[at]SPAM chesapeakebay.net at 6/9/2004 8:39:47 AM
I've written a VB 6.0 program that uses Access as a back-end. Things
work pretty well, but I often retrieve data into large text fields
that contains formatting codes like this, for example:
{\rtf1\ansi\deff0{\fonttbl{\f0\fnil\fcharset0 MS Sans Serif;}}
Somehow these codes get written into ... more >>
Activating PrintPreviewControl using a hidden form
Posted by GMan at 6/8/2004 7:40:01 AM
I have a hidden form I created using <new>. Within the form I have a
PrintPreviewControl. I want to start the printing on the
PrintPreviewControl while the form is hidden. I unable to find a way to do
this other than call ShowDialog on the hidden form. Does anybody know of a
way?
I have a... more >>
Find a String in VB.NET
Posted by Federico G. Babelis at 6/7/2004 9:39:57 PM
Hi,
I need to extract a string from another string separated by "," like a .csv
file.
for example I have this string:
String1 = 000,federico,00,439827HGH,1233,FGB,0000,00,000
and from that string i need to extract string "federico" and string "FGB"
and separate then into another 2 string... more >>
Accessing controls that are attached to a tray control
Posted by Robert Kemp at 6/7/2004 7:00:42 PM
I am new to Visual Basic .NET, so some of the terminology that I use here
may not be accurate, but I am confident that someone out there will be able
to fill in the gaps.
I am creating a non-visible/tray control that monitors other custom controls
for changes (among other things). One of the ... more >>
User control keydown?
Posted by schneider at 6/7/2004 4:13:34 PM
I can't seem to get my usercontrol to fire the key events.
None of them fire, keydown, keypress,..
Am i missing something?
They wont fire internaly or externaly of the Usercontrol.
Starting to piss me off...
Was simple in VB6...
P.S. there are only a few lables in to control.
T... more >>
Web Custom Control - Datagrid Event Handling Problem
Posted by alkamista NO[at]SPAM lycos.com at 6/7/2004 12:37:10 PM
I am having a problem with a dynamically-generated Datagrid. It is
important to point out that this problem does not exist with a
design-time created Datagrid, but only with a dynamically generated
Datagrid in a Web Custom Control (WCC) :
The datagrid has LinkButton Column which has a select ... more >>
Question about ListBoxes
Posted by Ricky A. at 6/5/2004 9:04:34 PM
Below is the definition and class used to create a listbox with two columns.
A DisplayMemeber and a ValueMember are assigned. When a user selects a
choice is the listBox, I would like to be able to display the item selected,
the value of the DisplayMember. I know I can get to the ValueMemeber of ... more >>
How does Usercontrol make reference to it's container form and other Usercontrols?
Posted by acool at 6/4/2004 10:50:40 AM
Can anyone give me an example of how a 2 Usercontrols sitting on a single
container Winform can make reference to each others properties and methods
and those of the parent form that they are contained within?
... more >>
2 Questions for Ken Tucker
Posted by divpip NO[at]SPAM hotmail.com at 6/4/2004 4:39:47 AM
Ive posted many messages before on these subjects but the strings seem
to have been ignored so - sry im getting personal- u seem to know your
stuff so im asking directly now
1-
I have entended pictureboxes (with interpolation mode coding included
within the project) and the interpolation mode... more >>
WebBrowser
Posted by Nicolas at 6/3/2004 4:50:52 PM
I have a form with a WebBrowser, how can i put a progress bar at the bottom
of the webbrowser to show the progress of the load web-page event???
Thanks!!!
... more >>
|