all groups > vb.net controls > may 2004
Filter by week: 1 2 3 4 5
Problem determining when user has clicked outside my UserControl
Posted by Rhy Mednick at 5/31/2004 9:22:40 PM
I'm creating a custom control (inherited from UserControl) that is displayed
by other controls on the form. I would like for the control to disappear
when the user clicks outside my control the same way a menu does. To do
this my control needs to get notified when the user tried to click off... more >>
HScrollBar Problems
Posted by Eric Dreksler at 5/31/2004 7:19:11 PM
Hi,
I have two or three controls where I set the AutoScroll = True, and the
vertical scroll bar works fine, however the horizontal scroll bar never
appears, no matter how far to the right the control should scroll.
Is this a bug, or am I not doing something wrong?
Thanks In Advance,
Eric... more >>
Combobox issue.
Posted by Support at 5/31/2004 5:51:48 PM
Hi All,
I am working in VB.NET.
I have a data bound control (combobox) which I want to fill with a certain
field of my table from database ( SQL as backend).
The issue is, I want these values to fill the combo at the index specified
by me, ie, not the usual 0,1,2.... by default. Also, not datas... more >>
Finding dynamic control
Posted by felad NO[at]SPAM walla.co.il at 5/31/2004 3:20:00 AM
Hi
I have form that it's controls are being built dynamically based on a
database ( VB.net )
I have created the controls dynamically and associate an event for it
( Based on http://support.microsoft.com/default.aspx?scid=kb;en-us;Q311321
)
1. Is there a better way for creating dynamic contro... more >>
ComboBox data binding woes
Posted by Dany P. Wu at 5/29/2004 5:25:33 PM
Hi everyone,
As usual, weekend is tinkering time for students and I'm playing with
combobox databinding for the first time. Previously I have always iterated
through the records and added each item in the rows manually. Just thought
it would be nice to do it properly for a change.
Here's the ... more >>
uitypeeditor
Posted by Alessandro Mostarda at 5/29/2004 2:02:53 PM
I have a class with a enum property and i want to create a form to edit this
property. any ideas?
I'm programming in visual basic.net
... more >>
Me.Controls.Add() affecting control visibility?
Posted by Bryan Callahan at 5/28/2004 9:54:32 PM
Could someone please tell me why the Controls.Add()
method sets the visibility of the control to False? Also,
how can I work around this? I would _really_ appreciate
some help on this. (The below code is: vb.net) My e-mail
is bryancallahan@charter.net thanks in advance everyone!!
Public C... more >>
RichTextBox
Posted by VJ at 5/28/2004 4:10:38 PM
I read about the SelectionBullet property for the RichTextBox control. Can I
change the bullets to be numbers? or will it be just regular dotted bullets
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
how to remove properties from a control
Posted by Support at 5/27/2004 12:03:42 PM
Hello:
In vb.net ....
I build a control that contains a listview
However, when I use it in another application, the listview's properties are
exposed
and I want to remove some of the properties and add some others.
How do I do that.
Thanks
Terry
... more >>
Any method to craete a check box in datagrid's header row?
Posted by Norton at 5/27/2004 9:43:06 AM
Thx in advance
... more >>
Recommendations for file viewer control/toolkit
Posted by Jim Reisz at 5/25/2004 6:53:28 PM
I need a recommendation for a document viewer control/toolkit/sdk. My
application needs to view several different file types that don't have the
source application installed for the file type. I have scoured the net and
only found "Outside In" from Stellant that supports all the documents I
wo... more >>
Custom drawing the TabControl.
Posted by Eric Dreksler at 5/25/2004 6:45:33 PM
Hi all,
A few days ago I posted about custom drawing the tab headers and got a good
response. However, I've been trying ever since to find info on customizing
the rest of the tabcontrol (i.e. the area behind the tabpage headers, the
area around the tabpage bodies, and the areas around the text ... more >>
VScrollBar Examples?
Posted by John Rugo at 5/25/2004 8:07:47 AM
Hi All,
I am trying to figure out how to use a VScrollBar within a Panel and a
series of buttons.
I have about 25 buttons within a Panel.
I want to be able to scroll through the panel if the form is to small to see
all the buttons.
I tried putting a VScrollBar within the Panel, and even outs... more >>
Please help with vb6
Posted by Sandman at 5/24/2004 9:32:17 PM
i would like to make a OCX
UserControl1
with a image1 and label1 in it
would like the label and image to be the same width
and the label to be under the image
will someone please help me ?... more >>
DataGrid Behavior in VS.net 2003
Posted by Atley at 5/24/2004 9:29:55 PM
How do I set my DataGrid to not allow new row additions in Visual Studio
..net 2003?
I just want the users to be able to edit records already placed in the
database previously, not to allow them to add new records.
... more >>
clearing forms
Posted by Simon Whale at 5/24/2004 4:46:30 PM
Hi All,
can anybody help me, i have a form with about 10 or so textboxes that a user
will fill in. i want to be able to clear the textboxes from a button
control, in VB6 i would use the following
Private Sub Command1_Click()
Dim obj As Object
For Each obj In Form1
If Ty... more >>
how to transform data when loading datagrid
Posted by bobx at 5/22/2004 4:47:48 PM
In the dataset that is bound to the datagrid, there is a column of bit type.
How to I display the contents as Yes/No or Y/N, and not as a checkbox? How
to I transform data in general?
... more >>
Add a CheckAll Checkbox in Datagrid's header
Posted by norton at 5/21/2004 6:51:42 PM
its easy to do in asp.net with javascript
but i donno how to add a checkall checkbox in a vb's datagrid
thx in advance
norton
... more >>
ListView quetions
Posted by Sameh Ahmed at 5/19/2004 4:26:07 AM
Hello there
I have a couple of questions I need to answer regarding ListViews, here we
go
is there a way to add check boxes to only one item instead of all items?
is there a way to label edit any subitem instead of the item itself only?
is there a way to add combo boxes to the listview, IE. the... more >>
Tabcontrol SelectedIndexChanged
Posted by Adam Pedder at 5/18/2004 5:00:18 PM
I've got a tabcontrol with a Sub that handles SelectedIndexChanged. The Sub
validates some textboxes, to make sure they are filled in before the user
can change tabs. My problem is that when I open the form the Sub triggers.
Could someone point me in the way of a method of stopping the event ha... more >>
Dropdown forecolor
Posted by Tony at 5/17/2004 11:21:25 PM
XP pro/web forms/vs 2002
I'm trying to change the text color in a drop down list depending on a value
in database as follows.
MakeDrpString = tbl.Rows(GetRecords).Item("BaseURL")
If IsDBNull(tbl.Rows(GetRecords).Item("RecordComplete")) Then
DropList.ForeColor = System.Drawing.... more >>
Painting the tab selector
Posted by Eric Dreksler at 5/16/2004 10:01:30 AM
Hi,
I've been trying to find the object / control that will allow me to custom
paint the tab selectors for a series of tab pages. Can anyone point me to
the name / location? I can't figure out if it's a part of the TabPage or
TabControl object.
Thanks In Advance,
Eric Dreksler
... more >>
Trigger Button1_ServerClick event from a popup form...
Posted by rmorvay at 5/15/2004 7:18:48 PM
I allow users to click a datagrid row and it spawns another browser page to
allow edits to the data in that row. Once they update the data, it is
committed to the database and the form is closed. Once the edit page is
closed, I need to trigger the search button click event in order to refresh
... more >>
Datagrid not always getting the click event.
Posted by Andrew Baker at 5/15/2004 1:20:15 AM
I have the following code that works sometimes. I have no Idea why it works
occasionally and not others. It is meant to select (Highlight) the entire
row when it is clicked.
A breakpoint does not stop most of the time the grid is clicked.
I am new to VB dotnet but am experienced in C++ and... more >>
validations in .NET
Posted by Newbie at 5/14/2004 4:52:21 PM
Hi all,
I am using a date time picker control in my .net application.
Now I want to validate the values entered here. I want to calculate the
difference of start time and end time, but start time should not be more
than end time, or else it should display invalid entry.
Also, while calculating ... more >>
Drag and Drop?
Posted by divpip NO[at]SPAM hotmail.com at 5/14/2004 9:15:34 AM
If I have a PictureBox1 and i want to be able to click, hold and drag
this image onto a target during runtime - how do i program this?... more >>
Passing message from user control to form
Posted by William Gower at 5/13/2004 9:23:29 AM
I have a user control which is a toolbar. The user control is then placed
on a form. When the user clicks on a button on the toolbar (user control),
how do I tell the form that the toolbar is on that the button was pressed.
There could be multiple forms open each with their own toolbar.
... more >>
PictureBox Control Help
Posted by Anthony Denaro via .NET 247 at 5/12/2004 9:55:11 PM
I have placed a picture in a picturebox in vb.net. I want the picture to change when a button is pressed.
My code looks something like this
pbl.loadimage(string of where is located)
The old image just stays there
(Type your message here)
--------------------------------
From: Ant... more >>
Mouse over
Posted by Tony at 5/12/2004 2:37:53 PM
How can I trigger an event when the mouse moves over a label?
Thanks
... more >>
Cant set SelectedValue on combobox
Posted by Patricia Kline at 5/12/2004 11:23:58 AM
am setting the datasource of a combobox to a arraylist that has two
members (value and display). When I want to get the value of the combobox,
there are no problems. However, when I try to set the selectedvalue to a
value that I know for a fact is in there, using this code:
cboA... more >>
Looking for Backup control
Posted by kjvt at 5/12/2004 9:27:38 AM
My app tracks jobs in a SQL Server database. Each job has a set of
associated files (Word, Excel, etc) that must also be made available
to other users. The files can be large, but don't change much once
stored. They must be available locally (on the user's laptop) for
access when the user is ... more >>
TextBox Control
Posted by Selvaraju Chinnasamy at 5/11/2004 3:52:20 PM
Hi
How to stop the user from entering Text more than the textbox width. Other
words If I have a textbox with 100px width, I want to stop the user entering
more than 100px. Please let me know your comments.
Thanks In Advance
Selva
... more >>
Picture Box (unwanted frame)
Posted by divpip NO[at]SPAM hotmail.com at 5/11/2004 8:22:08 AM
ok i have a picturebox with a picture in, which is a fifth of the size
of the picturebox (so it is stretched) but anything past stretchin
twice as big produces a rim around the bottom and right edges. I AM
using an interpolation mode setting to stop the images from blurring
but these edges keep ... more >>
Shell namespace treeview
Posted by Joe Cramden at 5/11/2004 1:29:24 AM
I am trying to create a treeview that contains all the shell namespace
information, exactly like the browse for folder dialog, except I want it
anchored on my form. any help would be greatly appreciated.
thanks.
... more >>
Changing Pictures during Run Time & Using a Custom Cursor
Posted by divpip NO[at]SPAM hotmail.com at 5/9/2004 9:24:15 AM
i have 2 questions
1) Theres no way in the properties menu of a form to set a cursor as a
custom cursor, and ive not found anyway to do this - is there a way
using programming to do this - i thought possible if you got an image
to respond to mouse movements and paste itself over the usual cur... more >>
Checked Listbox Control
Posted by RBCC at 5/8/2004 11:01:26 PM
When a user checks an item how do I get the string of the item checked?
John... more >>
String Width
Posted by Eric Dreksler at 5/8/2004 6:49:23 PM
Hi all,
Trying to create a custom control that paints a string onto a control, and I
was wondering if there was a way to get the width of the text in the string
so I can align it center, left or with a padding left / right?
Thanks In Advance,
Eric Dreksler
... more >>
Working DataGrid TableStyle not working on another DataGrid
Posted by psibertrip at 5/7/2004 10:31:25 PM
I am having difficulty getting Tablestyles to work on a
datagrid. I have 2 datasets, 1 filled and the other not. The
first contains customer, stock and order history information
and has the Customers table tied to a datagrid, while the
second is to be kept empty to accept new order items and is
... more >>
ENTER KEY PRESSING IN COMBOBOX
Posted by msnews.microsoft.com at 5/7/2004 8:56:23 PM
Hello.
Tell me please, how can I disable beep on "Enter" key press in ComboBox?
I try to do so on key press event:
-------------------------------
If e.KeyChar = vbCr Then
e.Handled = True
' Do somethimg
End If
-------------------------------
It works fine for TextBox control, but i... more >>
format func problem
Posted by Mtcc at 5/7/2004 5:54:42 PM
i have this code:
format("02/02/2004","M/d/yy")
why i get string -->"M/d/yy" instead date value?
... more >>
Rich TextBox Control
Posted by Scott M. at 5/7/2004 3:09:09 PM
When I add the MS RichTextBoxControl 6.0 to my toolbox and then add it to a
web form, all I see is a small square on the form. There is no textbox
control there. What am I missing? I do have the .ocx file registered on my
machine.
... more >>
ListView truncates data?
Posted by John Rugo at 5/7/2004 2:33:56 PM
Hi All,
I have a Comments field in SQL Server VarChar(4000).
When viewing the data in a Listview it appears to be truncated. Is there a
known limitation to column length with a VB.NET Listview Control? If I
bring this data into a text box it is all there.
Thanks,
John.
... more >>
Resize event for ListView columns?
Posted by John C Fiala at 5/6/2004 7:13:07 PM
Hi.
Is there any way to detect when a column in a Listview has been resized?
There doesn't seem to be any, but I thought I'd ask.
Thanks!
John Fiala
... more >>
tabcontrol + auto resize
Posted by Won Lee at 5/6/2004 11:18:04 AM
Hello,
How do I make the TabControl and the ListView in the TabControl
auto-resize if the user changes the size of the windows form?
VB.net
Thanks.
... more >>
Combobox displaymember and valuemember and user input
Posted by Mtcc at 5/5/2004 1:12:45 PM
Combobox have displaymember and valuemember.
I try to run the MSDN example:
========================================
Imports System.Windows.Forms
Imports System.Drawing
Imports System.Collections
Public Class USState
Private myShortName As String
Private myLongName As S... more >>
disable right-click in web browser control
Posted by Greg Picot at 5/5/2004 12:30:52 PM
Does anybody have a code snippet to disable the right-click in the MS web
browser control for vb.net?
I have been struggling with this and have only been able to find C# code.
... more >>
Enter Key
Posted by msnews.microsoft.com at 5/5/2004 12:10:11 PM
How can I disable a beep when I press Enter on TexBox (in VB.NET)
I'm trying this but it don't work:
I do it in KeyDown event
If e.KeyCode = Windows.Forms.Keys.Enter Then
' Do something ...
e.Handled = True
End If
----------------------------------------------------------------... more >>
FIELD NULL VALUE
Posted by msnews.microsoft.com at 5/5/2004 12:06:21 PM
Hello.
How can I check if DataSet field value is Null?
... more >>
Screen height
Posted by msnews.microsoft.com at 5/3/2004 11:52:03 PM
How can I get screen height?
... more >>
Table cell
Posted by Tony at 5/3/2004 8:53:38 PM
How can I add an image button to a cell in a table?
Thanks
... more >>
|