all groups > dotnet windows forms > july 2004 > threads for monday july 19
Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
Dim x as integer, x will return 0 when it have no filled?
Posted by Joe at 7/19/2004 9:45:01 PM
Dear all
private x as integer
property X() as integer
get
return x
set(...)
end property
i don't want to get a value of 0, i want to get nothing, how can do that ar
... more >>
Loading a Control on a Different Thread
Posted by Phil Jones at 7/19/2004 9:40:57 PM
I'm trying to add a control to a form when a user clicks a button - the
contol takes a long time to load.
To make the app appear responsive, I want to do this in the background
(displaying a simple "Loading" message). How do I go about this? I've
tried creating a new thread, and useing the C... more >>
PreFilterMessage maximize problem
Posted by Olo at 7/19/2004 9:16:39 PM
Hello,
I added Prefilter function to main form, becouse I have to catch key event
globaly. Everything is ok except maximize command. When I press MaximizeBox
it doesn't work.
Bellow you find me PreFilerMessage :
public bool PreFilterMessage(ref Message m)
{
const int SC_MINIMIZE ... more >>
Problems with DataGrid
Posted by Dotnetjunky at 7/19/2004 6:13:02 PM
Hi, I have two questions regarding DataGrid
Question 1
I have a DataGrid on my Form to collect data from users. When I'm typing text into the cells, if I press Shift + Spacebar, the current cell loses focus and the whole row is selected. I don't want that. How can I prevent that behavior ?
... more >>
Cannot center position my form?
Posted by Shakil at 7/19/2004 5:42:42 PM
I have a simple form application, in C# in which I call:
this.StartPosition = FormStartPosition.CenterScreen;
in my forms constructer. But, my form is still not positioned in the center
of my Desktop Screen. Instead it gets positioned at the top left most corner
on my Desktop. Can you tell m... more >>
Automatically Add UserControls to Customize Toolbox with Setup Project?
Posted by digitalox NO[at]SPAM hotmail.com at 7/19/2004 5:28:16 PM
I have created some custom controls and a setup project to distribute
them. Anyone know if it is possible to automatically add them to the
"Customize Toolbox" dialog without the developer having to browse to
the .dll?
Thanks,
Scott... more >>
Close a form from other class
Posted by Yolande at 7/19/2004 2:11:01 PM
Hi,
I'm using vb.net. I created a setup class and it tries to open a windows form while running a custom action and close it when the action is done.When I use the "open" method to open it, the windows cannot show the form completely when it's running the custom action. It seems openning the for... more >>
Wierd behavor with Context menus
Posted by sdussin1 NO[at]SPAM tampabay.rr.com at 7/19/2004 1:10:11 PM
I have an application which needs to dynamically create menu items in
a context menu, each time that menu is displayed.
In my program I have a context menu which contains a menuItem called
"moveItemCMI". This menu item needs to have its children repopulated
each time I display the menu. In ord... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Parent submenu of a ToolStripMenuItem
Posted by joe_woodbury NO[at]SPAM yahoo.com at 7/19/2004 12:34:49 PM
Sorry for posting a question on .NET 2.0, but I'm working on it so we
can get some demo's together.
Given a ToolStripMenuItem in a submenu, how do I determine what the
parent ToolStripMenuItem is (without going back to the top level
container, which is returned by both the Owner and Parent pro... more >>
Inverse color
Posted by William Stacey [MVP] at 7/19/2004 12:33:10 PM
If user selects same forecolor as backcolor, I want to invert the forecolor
so they are not the same. Any ideas?
--
William Stacey, MVP
... more >>
BeginInvoke and EndInvoke - Is EndInvoke necessary?
Posted by Robert Conde at 7/19/2004 11:38:17 AM
Hi,
I'm calling my ui from a thread which is different from the ui thread.
Accordingly I need to use the BeginInvoke or Invoke functions. Now I'd
rather the calls be non-blocking so I'd like to use BeginInvoke. But the
documentation says "CAUTION Always call EndInvoke after your asynchronou... more >>
A puzzling problem with graphics painting and Alt-Tab
Posted by Tom Dacon at 7/19/2004 10:08:48 AM
I've got a little windows forms program that updates its graphics regularly
on a timer. It doesn't depend on the Paint event, although it responds to it
when one arrives. When I press the Alt-Tab key combination, the displayed
graphics no longer gets updated so the display on the form appears to
... more >>
Databinding DataGrid Refresh Guideline
Posted by KeithH at 7/19/2004 9:47:01 AM
I have a datagrid on a form that I re-populate multiple times.
Before I set the datasource property of the datagrid should I set it to null?
Example
private void PopulateDataGrid(DataSet ds, string tableName){
myDataGrid.DataSource = null;
myDataGrid.DataSource = ds;
myDataGrid.DataMe... more >>
events blocking or non-blocking?
Posted by Robert Conde at 7/19/2004 9:27:49 AM
Are events in winforms blocking or non-blocking? In other words, when an
event is raised - is it added to a queue or are you blocked until it
finishes executing?
Rob Conde
a.i. solutions
... more >>
how to keyboard select the checkedlistbox?
Posted by haiwen at 7/19/2004 8:03:05 AM
Hello, everyone:
When I click on Enter, nothing happen even there is one item of checkedListBox is focused.
Could anyone tell me is there a easy way to handle it?
sincerely,
haiwen... more >>
Overriding the Click event
Posted by liam at 7/19/2004 7:46:51 AM
Hi,
I am using the VbPowerPack that was released recently.
One of the controls provided is the ImageButton. On this
control the Click event has no parameters, i.e. there is
no (ByVal sender as Object, ByVal e as EventArgs) that
you would normally expect to see.
I was thinking of inhe... more >>
SendMessage() PostMessage() equivalents
Posted by Bob Rundle at 7/19/2004 7:39:16 AM
I'll can't seem to find something very basic in the docs
What are the winforms equivalents of SendMessage() and PostMessage().
I can see how to create a System.Windows.Forms.Message struct. I see how to
add a message filter. I can't seem to figure out how to send or post the
message.
Re... more >>
printing UserControl
Posted by Koert at 7/19/2004 6:33:01 AM
Hi,
I'v a form with u UserControl on it. There are labels, buttons, etc. placed on the UserControl. Is there a way to print the UserControl in an easy way? The whole UserControl must be printed, also the part that is not visible.
thanks,
Koert... more >>
How to block user input for a windows form
Posted by viliescu at 7/19/2004 6:29:02 AM
Hi,
I want to block the user input (keyboard and mouse) for a windows form for a short period of time (let's say for less than 1 sec).
The solution I was thinking of: implement a message filter which blocks the messages WM_KEYDOWN/KEYUP/LBUTTONDOWN etc.
Is this solution ok? Are there any per... more >>
Custom control toolbox icon transparency
Posted by GG at 7/19/2004 2:36:02 AM
I create a custom control and I have added the 16x16 bmp embedded in the project. All works properly (the icon is correctly displayed in the toolbox) but I haven't figured out how to set the transparency color. Since the .bmp format doesn't have this feature, I think that Visual Studio chooses one c... more >>
|