all groups > dotnet windows forms > october 2004 > threads for thursday october 14
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
background images sooo slow
Posted by Andreas van de Sand at 10/14/2004 11:00:51 PM
Hi all,
I'm working on an application and want to use background images for forms
and controls. Using the images itself is not a problem, but when I run my
application it becomes really slow and my CPU usage goes up to 100% for a
time...
Is there a better way of setting background images?... more >>
tabPage.Focus() doesn't work?
Posted by Torben Philippsen at 10/14/2004 9:42:17 PM
Hi,
I have a TabControl in a WinForm witn two tabs.
At some point I want to switch focus from the first TabPage to the second
TabPage.
The documentation says that any control (which seems to be the case for the
TabControl) that derives from Panel aren't selectable.
Since I think this is ... more >>
Key Handling, Alt+Down Arrow
Posted by jason at 10/14/2004 8:55:26 PM
hi,
I need to trap combination keys Alt+DownArrow in KeyDown events, but without
any success. Here is the code :
private void myTextBox_KeyDown(object sender, KeyEventArgs e)
{
if(e.KeyCode == Keys.Down && e.Alt)
{
MessageBox.Show("Pressed");
}
}
Thanks.
... more >>
simple binding of controls to object properties - refresh controls
Posted by Rua Haszard Morris at 10/14/2004 4:13:05 PM
I have a dialog with controls bound to class properties, e.g. :
numericUpDownPort.DataBindings.Add("Value", localOptions, "Port");
textBoxDatabaseName.DataBindings.Add("Text", localOptions, "DatabaseName");
textBoxDataUsername.DataBindings.Add("Text", localOptions, "DataUsername");
- i.e. loca... more >>
Change Windows Class Name
Posted by petalsidhu NO[at]SPAM hotmail.com at 10/14/2004 4:03:03 PM
Is there a way to override the forms default window class name ..
(WindowsForms10.Window.8.....) ?
I tried to override CreateParams but got an exception
System.ComponentModel.Win32Exception "Invalid window class name"
Can someone please help as my app needs to be located by a c++ app
which... more >>
ComboBoxes and the sorted property
Posted by ScottBH NO[at]SPAM online.nospam at 10/14/2004 4:01:06 PM
Discovered a fun one that I thought I should share, and hopefully catch
Microsoft's attention to update some documentation.
I'm a bit new to VB.NET, and was struggling with getting a combo box to
work. I was attempting to take advantage of the cool way to load a combo box
via a datasource, ... more >>
DataGrid
Posted by Newbe at 10/14/2004 3:45:08 PM
I need help in a bad way. I have a form with a datagrid in it coming for a
Access DB. I have 3 columns, StudentName, Address, Phone. I am using
Me.bindingcontext(School11, "Student") to bind buttons like first, next ect...
I have a button Add/Edit and Update to Disk and Insert
I have no i... more >>
Strangeness in OnPaint
Posted by dominique at 10/14/2004 3:24:18 PM
Hi,
In windows forms (vb.net), i use my own controls subclassed from base
controls and i override the Onxxx methods.
for example:
Public Class MyBouton
Inherits System.Windows.Forms.Button
..
Protected Overrides Sub OnPaint(ByVal pe As
System.Windows.Forms.PaintEventArgs)
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Event log is full
Posted by YBraker at 10/14/2004 3:04:02 PM
I have an app that catches errors with Try Catch blocks as
follows:
Catch ex As Exception
Dim Event1 As New EventLog
Event1.Log = "Application"
Event1.Source = "QuickCheck"
Event1.WriteEntry("Error in PlayBalance_EnterEvent. Message
is: " &... more >>
DataGrid - Not allowing additions?
Posted by Chris Ashley at 10/14/2004 3:02:57 PM
Is there any way to stop users from being able to add new rows to my
datagrid while still letting them edit existing rows?
... more >>
how to change the cursor to arrow when hovering over selected text?
Posted by assaf at 10/14/2004 11:40:46 AM
hi all
i wrote a simple text editor.
i am able to select text,
and drag/drop it onto other text editors.
however, when the mouse hovers over the selected text,
before draging it,
it remains an IBeam.
this is not desireable behaviour.
users expect the cursor to change into an arrow,
wh... more >>
Question about WinForms Timers and calling Control.invoke
Posted by Ken Varn at 10/14/2004 11:26:13 AM
I have read a few messages concerning the use of windows timers and have
some questions concerning them. One of the messages hat I read stated that
timers are called on a separate thread. If this is true, is it necessary to
call Invoke when accessing forms controls within the timer function?
... more >>
ShowDialog() problems
Posted by Tom Stratford at 10/14/2004 10:45:03 AM
In efforts to upgrade dev environment to VS.Net 2003 w/FW 1.1, I have done
the following:
On a new computer (leaving old environment alone):
-Installed the SourceSafe Client (with NetSetup)
-Set a label across all objects in the archive marking where dev environment
is being upgraged
-In... more >>
Tab Control Question
Posted by Fred Herring at 10/14/2004 9:47:01 AM
I use tabs quite a bit in my application. I need to be able to highlight or
change the background color of not the tab sheet but the tab button or tab
buttons. Is there anyway to do this or is there a third party managed code
component with this feature.
Fred... more >>
Easy way to datatype validate TextBoxes
Posted by Frank M at 10/14/2004 9:19:03 AM
In a form I have a number of textboxes that is to receive different types of
data from the user. I can of course validate what has been typed in when the
user press the Ok button by parsing through the contents of the individual
textboxes. However, the .NET framework being so extensive, I was ... more >>
Can't wait for other process to finish
Posted by Brad at 10/14/2004 8:42:17 AM
I want to start another process in code, wait for it to finish, then
continue. No problem, I do the following:
prcs := System.Diagnostics.Process.Start('E:\blah.txt');
if assigned(prcs) then begin
prcs.WaitForExit;
prcs.Close;
end;
This works fine if my default applic... more >>
Autocomplete combobox with dropdownstyle set to dropdownlist
Posted by venugopal.M at 10/14/2004 2:45:01 AM
Hi,
I have seen many autocomplete comboboxes but with dropdownstyle set to
dropdown.
But i want an autocomplete combobox with dropdownstle set to DropDownList.
Any help will be appreciated.
Thanks in advance.
regards,
Venu.... more >>
Parse method never called when data binding from class property to textedit
Posted by webstuff NO[at]SPAM urbanperspective.net at 10/14/2004 1:08:29 AM
I'm using C# and having problems getting the 'Parse' EventHandler of
my binding object to be called. Interestingly, the 'Format' method is
always called however. A code snippet:
(rdDocument is a private member field of the class and has a
string-type property called 'Name')
Binding bName = ... more >>
|