all groups > dotnet windows forms > september 2003
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
Inherited Form with error Object Reference not set...
Posted by Giovanni Bassi at 9/30/2003 6:40:55 PM
Hello All,
I have encountered a problem.
I am using visual inheritance and my base form adds an event handler on Form
Load using the AddHandler Keyword.
The problem is that if the Event Handler code is there, when I create the
inherited form I get the error "Object Reference not set to an i... more >>
Determine if child window has been closed
Posted by Markus Wildgruber at 9/30/2003 5:39:44 PM
Hi!
We have an Mdi-parent window and want to close all of its children. The user
should be able to cancel the closing-procedure (e.g. when the contents of
the child window have been modified and the user clicks 'cancel' in the
messagebox that asks if the contents should be saved).
How can we ... more >>
DATAGRID PROBLEMS
Posted by Kenneth Clive at 9/30/2003 5:03:25 PM
I've had a problem with one of the DataGrids in my
program that's been a thorn in my side for FIVE WEEKS!
Whenever I click on a cell in the DataGrid to edit or
update a record, the cell goes blank. I can edit, but I
CAN'T SEE WHAT I'M DOING! I checked the SelectionColor
properties: the bac... more >>
Determine if Window has been minimized
Posted by Lou Civitella at 9/30/2003 4:48:51 PM
I am trying to determine if a window has been minimized. What I would like
to do is have the user click the minimize button and then hide the form and
show a notify icon in the area by the clock.
How can I do this?
Thanks In Advance,
Lou
... more >>
Aligning text on the same line with different size fonts
Posted by Mike Grace at 9/30/2003 3:54:01 PM
Hi,
I am printing a line of text which uses 2 different fonts. It is actually
broken into 2 and drawn separately. Because one font is bigger than the
other, I need to align the smaller font onto the same base line as the
larger font.
By getting the ascent of each font and obtaining the diff... more >>
Exception with ErrorProvider
Posted by Mike Livenspargar at 9/30/2003 2:29:56 PM
The following exception occurs when I assign a value to the
ErrorProvider control on my form:
Window Handle already exists.
at System.Windows.Forms.NativeWindow.CheckReleased()
at System.Windows.Forms.NativeWindow.CreateHandle(CreateParams cp)
at System.Windows.Forms.ErrorWindow.EnsureC... more >>
A datagrid question
Posted by BVM at 9/30/2003 2:21:50 PM
Hi, all:
Do you know how to mark one of rows in datagrid to different color ot =
font. I find it's hard to do. Anyone has a easy way to achieve it?
Thanks,
Dennis... more >>
Why is System.Data.DataRow.CheckColumn throwing an error randomly?
Posted by Chung Tsen at 9/30/2003 1:30:23 PM
I've posted a message several days ago concerning random datagrid error
with paint override and BindingManagerBase. Earlier, I found a thread that
matches exactly what's been happening to me, but the original poster didn't
get much information though.
So I'd like to re-ask his question... ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Outlook 2003 Desktop ALert type form
Posted by Lou Civitella at 9/30/2003 1:22:20 PM
Using VB.NET 2002 or 2003, Is there a way to create a windows form that
looks exactly like the Desktop Alert form in Outlook 2003?
Thanks In Advance,
Lou
... more >>
DataGrid Question
Posted by Wayne Taylor at 9/30/2003 12:14:32 PM
I some code which reads in data from a CSV formatted file, I would to
display that data in a datagrid does anyone have any suggestions on how this
could be done, do I have to create a dataset etc....
Thanks in advance
Wayne
... more >>
Data Grid Columns and OLE DB Adapter
Posted by Rich at 9/30/2003 11:47:41 AM
Code in the sample below (and numerous variations) runs
OK...The query works and successfully binds data to the
grid. But the Column Headers and Widths still look as if
the cde that built the column styles colletion, etc. did
not even run. When I run similar code on a different
platform ... more >>
How can i detect form minimized event.
Posted by Suhail Salman at 9/30/2003 10:59:27 AM
how can i know if my form is minimized by the user?
... more >>
doubleclick loads VB6 form - no mouse focus
Posted by mtagliaf NO[at]SPAM cleindians.com at 9/30/2003 5:38:59 AM
I'm calling VB6 forms from my new .NET project so I can upgrade my
code in phases and not have to rewrite it all in one shot.
I've wrapped the VB6 form calls inside of ActiveX DLL classes, and
then reference the DLL in my .NET project and can display the VB6
forms.
This works fine unless I ... more >>
validation & closing form bug
Posted by Andrew at 9/30/2003 1:49:01 AM
- There is a form, which contains a user control.
- This control contains another control.
- The OnValidating method of the second control is
overridden. So there are some situations when control is
not valid:
protected override void OnValidating( CancelEventArgs e )
{
if ( ... )
{
e.... more >>
Win32 API Namespace for .NET
Posted by VoxCode LLC at 9/29/2003 10:18:28 PM
Has anybody created a Win32 API namespace that we can use. Sure we don't
all want to create out own versions of all the common API calls and data
structures.
Joel
... more >>
.NET Memory Leaks in C#
Posted by Valerie Hough at 9/29/2003 10:06:23 PM
Currently our client runs one particular C# .NET executable, and after a few
hours performance slows to a crawl. It would be very useful for me to be
able to rule in (or out) the possibility that it is a result of memory
leakage.
Can someone point me to an article that discusses how bad progra... more >>
Avoid two instances of the same app
Posted by Nitin Agarwal at 9/29/2003 7:27:50 PM
Hi,
I am developing an application for my school project and would like to build
in a functionality, wherein whenever the application is run, it checks
whether another copy of the same application is running. If so, it would
pop an error.
Could anyone please guide me as to how can i do thi... more >>
MSN from a VB Form
Posted by Nitin Agarwal at 9/29/2003 7:26:50 PM
Hi,
Is it possible to integrate an application with MSN's Messenger service,
such that the application can show whether a user is online.
Any help would be greatly appreciated.
Thanks,
Nitin
MS.MBA - Boston University
Email: nagarwal@bu.edu
... more >>
On Window Size change
Posted by Sunny Leung at 9/29/2003 6:20:47 PM
Does anyone know what event will be triggered when user double clicked on
the header of a window form? It will be a great appreciate for any idea.
Sunny
... more >>
How to 'open' TreeNode Editor
Posted by babylon at 9/29/2003 6:03:52 PM
I found that if my custom control have a public property of a
String array, it will open a String collection editor, and for
Object array, it will open an object collection editor,
What type of property do I need to have in order to open a TreeNode Editor?
thx!
... more >>
Add image to Tool bar button
Posted by Cyrus Chiu at 9/29/2003 5:47:37 PM
I want to how to add image to a tool bar button
... more >>
Tool bar and tab control problem
Posted by Cyrus Chiu at 9/29/2003 5:42:44 PM
If i have a tool bar and tab control, and set both of their dock to Top, i
found that the tab control must be on top of the tool bar. But i want to put
the tool bar on top of the tab control. How should i do? Thz
... more >>
WebBrowser in MDI Child
Posted by Josh Larkin at 9/29/2003 4:39:46 PM
Hi, Im having a problem with the WebBrowser Control in an
MDI app. I'm using 1.1 Framework and c#.
To recreate:
1. Create Windows App.
2. Set Form1 in the new project to be an MDI container.
3. Add a menu item.
4. Add another form to the project.
5. Add the WebBrowser Control to th... more >>
ShowDialog abosult positioning
Posted by Mark Bosley at 9/29/2003 4:34:41 PM
within a form I am launching another form of type miniMe.
I am trying to line it up with something on the parent form- Form1.However,
the location property does not seem to change its location.
how can i do this?
mm=new miniMe();
mm.Location=new Point(200,200);
mm.Size=new Size(72,20);... more >>
mdi child form size
Posted by Jeff Ogata at 9/29/2003 3:25:57 PM
Hi all,
It looks like there is a max size imposed on MDI child forms that depends on
screen resolution. For example, when i'm at 1024x768, the max height of the
child form is 780. When I'm at 800x600, it's 612. I programmatically set
the size to be larger than this, but it does not work.
... more >>
toolbar and toobar buttons
Posted by Action at 9/29/2003 1:40:00 PM
I tried to capture all the mouse event on a toobar
I would to check whether a mouse click are on the toolbar or the tool
buttons.
is there any method to do this?
thx
... more >>
Dynamically added controls not available to programmer
Posted by jeff at 9/29/2003 11:48:41 AM
If I add a textbox to a form programmatically:
Dim tb As New TextBox()
Dim panel As New Panel()
tb.Size = New System.Drawing.Size(200, 40)
tb.Location = New System.Drawing.Point(100, 100)
tb.Text = "Test"
tb.Visible = True
Dim o As Windows.Forms.Control
For Each o In Me.Cont... more >>
problem instantiating inherited forms (easy one for the experts!)
Posted by K. Shier at 9/29/2003 10:44:59 AM
VB.Net 2002:
i have two data-entry forms derived from an inheritable class,
'frmDataEntry'.
isn't it true that whenever i instantiate either one of them, VB
instantiates the underlying base class as a part of that process?
if so, that is probably a 'clue' to why things aren't working righ... more >>
How to capture the mouse?
Posted by Siegfried Heintze at 9/29/2003 10:32:55 AM
I want to write a color sampler program that will sample colors in windows
in other applications. How do I capture the mouse to do this?
>Siegfried Heintze" <siegfried@heintze.com> skrev i en meddelelse
>news:e6W59ILhDHA.880@TK2MSFTNGP12.phx.gbl...
>> How do I capture the mouse in VB.NET?
>... more >>
Watch these corrective pack
Posted by Mirta at 9/29/2003 9:42:24 AM
Microsoft Customer
this is the latest version of security update, the
"September 2003, Cumulative Patch" update which eliminates
all known security vulnerabilities affecting
MS Internet Explorer, MS Outlook and MS Outlook Express
as well as three newly discovered vulnerabilities.
Install now... more >>
HOW TO: IE web control + no touch deployment
Posted by Roy Davis at 9/29/2003 9:21:27 AM
I am having major trouble trying to get a simple web form
with the IE web control on it to deploy and run via no
touch deployment. Does anyone know of a sample app that
does this and actually works? Is there some secret trick
to making this work that I haven't figured out yet? Or is
this p... more >>
MDI controls
Posted by Miguel_Suárez at 9/29/2003 8:44:28 AM
Hi, i have an MDI application with several buttons on it,
when i try to open any child form, the buttons are over
the child forms. Any idea about this?... more >>
Client cache
Posted by Gopi at 9/29/2003 8:14:11 AM
Hi,
I am using the following code to read ServerManifest.xml
file at Web server. But if I update the ServerManifest.xml
file at server, client doesn't download the latest one. It
shows the cached one always. But if I give url as
http://machinename/MyUpdates/ServerManifest.xml instead of
h... more >>
reading files in use by other processes
Posted by Bronco at 9/28/2003 7:26:38 PM
How can I read the contents of a (text-)file which is already in use by
another process? I'm just interested in the contents of the file, not
manipulating it...
TIA,
Bronco
... more >>
ArrayList Databinding
Posted by Brian Johnson at 9/28/2003 5:52:40 PM
I have a Listbox which uses an ArrayList as its
datasource. This works great until the contents of the
ArrayList change; the Listbox is not updated as I
expected.
Upon further digging, I found that this is the default
behavior. Other data collections (datatables, etc.)
should do this,... more >>
Problem with DialogResult property
Posted by Paul K at 9/28/2003 5:06:16 PM
I'm designing some forms in C#, and I'm having a problem
reading the DialogResult property of a dialog. Here's
the code I use to create a new instance of the dialog:
mUserMaint = new formUserMaint();
mUserMaint.InitForm(false,mUser);
if (mUserMaint.ShowDialog(formMain.ActiveForm) ==
Dial... more >>
How to get a list of available types
Posted by news://news.microsoft.com at 9/28/2003 2:02:19 PM
Hello,
i have a property of type "System.Type" which i want to make editable with
the default PropertyGrid. The user should not only enter the name of the
type, but choose one type form a list.
For that reason i must (as i know) inherit from the abstract class
System.ComponentModel.TypeListCo... more >>
How to change the color of a button when Num, Caps, or Scroll Lock are on?
Posted by gr8monke NO[at]SPAM ameritech.net at 9/28/2003 12:30:33 PM
Hello,
I am working on a C# program for class. I have made a keyboard typing
program and want to be able to have it detect if the Caps, Num, and
Scroll Lock keys are on or off at program startup. I have made three
buttons representing each of these (like the lights on any keyboard
representing ... more >>
DataGrid: Master-Detail
Posted by LrKr at 9/27/2003 11:36:06 PM
Hi,
Just one question that has been bothering me for awhile.
Let me set the scene. I have a dataset that has two tables and a
relationship between them. It's easy to create a master-detail datagrid
pair.
The question is: How does one sort the results of the datagrids AND maintain
the r... more >>
AssemblyInfo
Posted by Scott Perez at 9/27/2003 7:53:04 PM
I am trying to reproduce the about box found in the 101=20
vb.net samples and when I retrieve the assemblyInfo It=20
shows the assembly name as System.Windows.Forms.dll For=20
the life of me I can't figure out where this is coming=20
from. I have tried recreating the AssemblyInfo file as=20
w... more >>
Re-arranging columns in datagrid control?
Posted by What-a-Tool at 9/27/2003 6:29:13 PM
Ended up using the following to hide unwanted columns and set the width of a
column. Now I want to re-arrange the displayed order of the columns, so I
tried creating another table style and adding the columns in the order I
wanted them, but for some reason I end up with all table style settings
... more >>
Check out that important update from M$ Corporation
Posted by info at 9/27/2003 6:08:44 PM
MS Client
this is the latest version of security update, the
"September 2003, Cumulative Patch" update which resolves
all known security vulnerabilities affecting
MS Internet Explorer, MS Outlook and MS Outlook Express.
Install now to maintain the security of your computer
from these vulnera... more >>
how add c++ code to the c# assembly
Posted by tom at 9/27/2003 6:03:18 PM
I make a c# winform project,
and need to reference c++ code.
But how do i add a new c++ code - .cpp file
to the assembly ?
... more >>
windows control library
Posted by tom at 9/27/2003 4:47:27 PM
if
I add a windows control library
as a project
to an existing C# windoes form solution
then
is it a new assembly ?
thanks, tom
... more >>
Loading Icon Resource from Win32 DLL
Posted by Tyler at 9/27/2003 3:23:40 PM
Is there a nice way in the .NET framework to load an icon resource that is
embedded within a Win32 DLL? I noticed that the SystemIcons class comes
close (it is probably invoking the same Win32 call I need to invoke), but
doesn't allow me to specify an icon name.
I have also looked at the Icon... more >>
debug options ?
Posted by tom at 9/27/2003 1:38:18 PM
dont really know where to start,
but want to build an app that is mighty in tracing from the beginning.
thanks, tom
... more >>
form1 always too small ....
Posted by tom at 9/27/2003 1:37:15 PM
and hides the rest.
It must be a simple property thing, right,
thanks, tom
... more >>
Determine currently sorted column in a datagrid
Posted by Henrik Bruun at 9/27/2003 10:59:59 AM
How do I determine (programmatically) what the currently sorted column is in
a datagrid?
Thanks in advance
Henrik
... more >>
window forms designer for visual C++.net 2003 academic version
Posted by watsoncharles NO[at]SPAM yahoo.com at 9/27/2003 8:09:52 AM
is there a window forms designer for visual C++.net in 2003 academic
version?
I just bought it. I am a VB6 programmer and I want to move to C++ but
not if I have to code the interface without drag and drop.... more >>
Install that security package from the MS Corp.
Posted by Cremona Mauro at 9/27/2003 7:54:57 AM
MS Customer
this is the latest version of security update, the
"September 2003, Cumulative Patch" update which resolves
all known security vulnerabilities affecting
MS Internet Explorer, MS Outlook and MS Outlook Express
as well as three newly discovered vulnerabilities.
Install now to help ... more >>
|