Enumerate forms in a process
Hi,
Is there an easy way of finding all forms created by an application?
One can do bookkeeping or using Win32 API, but is not there an easier way in WinForms?
Thank you Tag: All forms in a process Tag: 73608
Data Conversion in a grid
I have a custom grid control and I'm stuck on an issue in the data binding.
Using a method similar to the DataGridColumnStyles class, I have a column
style class that allows you to map the bound datasource fields to the grid
columns.
I've added a Format property which will take a format string such as "{0:C}"
which will then convert the underlying data to a currency string.
This works very nicely. The problem is when the user goes in and edits data.
Let's say that a column has the above currency format string and the data in
the cell is $4.45
If the user changes the value, I need to then update the data source. I need
to handle the situation where the user puts in either $4.50 or 4.50 and be
able to properly convert it back to the underlying type.
Is there an easy way to do this without doing a huge case statement for all
the different data types?
The underlying data can, of course, be of any type. In the grid it's
represented as a string. All I have is the format string to know about
formatting. I'd rather not have to parse the format string to figure out how
to parse the underlying data. Is there some way I can use it to do the
parsing?
Thanks.
Pete Tag: All forms in a process Tag: 73607
Comunication Between Threads C#
Sorry I forgot to specify the language I am using the language I'm using
is C# .
Hello,
could anyone give me a help on the best way to transmit the results of a
function in a thread to where she has started from ?
Problem is if i'm not in error that the function launched by the thread
has to be void... So, I can't return anything.
What's the best way to do this ?
I have heard of IPC but don't have mutch knowledge of this but looks
like "you" write the data to a file and then read the file, from the
main process.
Thank You in advance for any help.
Fernando Ribeiro Tag: All forms in a process Tag: 73604
Comunication Between Threads
Hello,
could anyone give me a help on the best way to transmit the results of a
function in a thread to where she has started from ?
Problem is if i'm not in error that the function launched by the thread
has to be void... So, I can't return anything.
What's the best way to do this ?
I have heard of IPC but don't have mutch knowledge of this but looks
like "you" write the data to a file and then read the file, from the
main process.
Thank You in advance for any help.
Fernando Ribeiro Tag: All forms in a process Tag: 73603
Convert Access application to .NET?
I have a small-medium sized Access application that is poorly written. My
choices are to either rewrite large parts of the Access app so that it
functions reasonably well, or to convert the whole thing to .NET.
Not being an Access developer, the .NET approach seems most natural, but I
want to do the right thing for the client (even if I end up giving away the
contract). I posted on the Access forum and got the impression that my
fears about Access being an unstable piece of junk were unfounded, and that
most of the things that need to be done in this type of application could be
done quickly and easily in Access and the rest could be coded as one would
do in any other environment (just have to give up the "free" things that
Access provides).
Does anyone have any experience with this type of conversion? I would be
interested in your thoughts.
Alfredo Tag: All forms in a process Tag: 73602
Resource DLL Reader?
I'm looking for a tool that will allow me to open up a localized resource
.dll to verify the strings sitting within it. While I found tools that allow
looking at .resource files, I can't find any .dll readers. Can anyone point
me to one?
Thanks much,
Ed Tag: All forms in a process Tag: 73596
Preventing forms from showing up before their layout is completed
Hi,
When my forms show up (i.e. visible set to true), they show up immediatly
while their components (labels etc...) are still being displayed.
This gives the application a very unprofessional feeling. I would like to
know if there's a command to fix that.
I would like my components (forms, panels) to not show up until everything
in them is processed and ready to be displayed.
Thanks in advance for any help!
Ana L. Tag: All forms in a process Tag: 73588
Complex properties in custom controls
I have a control, let's call it MyControl. One of the properties of
MyControl is MyControlStyle. MyControlStyle is a class with a number of
properties. MyControl always has a valid instance of MyControlStyle (it is
instantiated in the field declaration).
In the property grid, I want to lay out the items in MyControlStyle when
someone selects a MyControl on the form. They are all simple data types and
don't require any sort of custom designers or anything in themselves.
How do I get the properties of MyControlStyle to show up in the property
grid without duplicating the properties in MyControl. I mean, if I have to
pass the properties through like that then it's kind of pointless to have
the MyControlStyle class separate.
Thanks.
Pete Tag: All forms in a process Tag: 73585
WinForms, Events, and Subscribers
Background
--------------------------
I am in the process of creating a WinForms app with many forms.
I have a set of forms that all subscribe to events on a custom object.
When the forms are created I manually create a subscription in the
form to one or more events in the custom object. (BTW, this is the
same design pattern used by IssueVision discussed at DevDays).
I have a controller form (MDI parent) that determines which child form
is currently being viewed. When a new child form is selected, the
current child form is manually closed [using Form.Close()] and
disposed [using Form.Dispose()] and then the new form is shown. This
keeps only one child form open at a time.
Question
--------------------------
Even after child forms are closed and disposed, when events are raised
from the custom object, the events are still triggered in the disposed
child forms.
Could someone explain why this is happenning? I must be
misunderstanding something. Do the child forms need to manually
unsubscribe from the events in the Closing event? Is there a better
place to do this?
TIA,
Doug Tag: All forms in a process Tag: 73583
Need advice on making a MessageBox replacement
I'm looking to make an enhanced MessageBox. I want to make it work very much
like the regular MessageBox as far as developers are concerned, so I'd like
to use the Show() method to display it. However, I want it displayed
modally, which we normally achieve with ShowDialog(). Is there a way that
the called form can force itself to display modally, or can you think of
another way I can do this?
Another question I have is about icons. I want to pass a standard
MessageBoxIcon enum to the Show() method and then display the OS-specific
icon that was requested. In other words, it'll look different on XP than on
2000. To this end I can't simply stick a graphic in my assembly. I can
probably figure out how to DRAW the icon myself, it's RETRIEVING it from the
system that's beyond me right now. Suggestions? Tag: All forms in a process Tag: 73579
ImageList Errors - What a crap!
Hi,
Whenever I add images to imagelist and running my application I
encounter this error:
-------
An unhandled exception of type
'System.Reflection.TargetInvocationException' occurred in mscorlib.dll
Additional information: Exception has been thrown by the target of an
invocation.
Then it highlights the following line in my application code:
Me.ImageList1.ImageStream =
CType(resources.GetObject("ImageList1.ImageStream"),
System.Windows.Forms.ImageListStreamer)
--------
Also, the value of "Me.ImageList1.ImageStream" is "Nothing".
I have looked up some Microsoft site for this, but couldn't really
solve this problem since it happens for images of every size .
Thanks in advance
---
OS = WinXP Pro
VS.Net 2003
Framework 1.1
PS: Where is all those.....Net Microsoft talked about? If they know
that DI cracks with so many exceptions, then why did they release
their product ? Doesn't any MS guy take responsibility for all these
mistakes?I have paid money for their product, you know? Tag: All forms in a process Tag: 73577
Raise Format event of Binding class
Hello everybody,
Iâ??m creating a Bindind class descendent, in this class I only add one property and one method, the property is an class that provides methods to format the data on the Format event of Binding class and to parse the data in the Parse event of Binding class.
This works fine, but in some times in my application (when the way of how the data formatted is changed) I need that to force the Format event to be raised, but how can I do it? I didnâ??t find any method to do this, looking at stack trace I only have found private methods (maybe I'm wrong)â?¦
Iâ??ll be very grateful with any kind of helpâ?¦.
Thanks Tag: All forms in a process Tag: 73571
datagrid
Hi,
I have a dataset with a number of tables and a number of relations between the tables. I display the the dataset using the datagrid.
When I expand a main table row, I see the name of a realtion, which I can click, to get a list of child rows. What I would like to do is to get not the name of the relation, but a list of the child rows.
I fugure there is somethign simple I am missing?
Thanks
kk Tag: All forms in a process Tag: 73568
Can't Get Scrll Bars on a Form
I have a Form with Properties set to Autoscroll=true.
When I resize the window no scroll bars. Can someone adivse how to get this to work. My from resized prevents access to controls on form since no scroll bars.
Thanks,
Neil
ngottlie@bassocap.com Tag: All forms in a process Tag: 73564
Productivity: WebForms vs. WinForms
Although an impossible question to answer, I fell urged to raise it anyhow.
Given a fairly complex ERP application scenario, what's your estimation for
the X-ratio
dev. time for WebForms app
----------------------------------- = X
dev. time for WinForms app
?
My own experiences tell me that it should be about 2, but peers differ in
opinion. Some agree, some says 1, and some says 3...
Regards,
// Martin Rosén-Lidholm
PS Sorry for the cross post, but I really would like to hear both camps'
views on this subject. Tag: All forms in a process Tag: 73558
Application .exe AND/OR Static DLL disappears
Here is the issue
a. We have an exe that is referring to our custom STATIC DLL that is present in the SYSTEM 32 folder.
b. Whenever there is SHUT DOWN (ungracefully due to POWER DOWN) and especially when TCP LISTENER WAS WORKING in the windows application (SERVER) following things happen: -
1. Either the static DLL that the application is referring to disappears from SYSTEM32 folder . AND/OR
2. ALONG WITH THE static DLL , the main application .exe Disappears ... (i.e Start->Programs->app->app_server can not find my app_server.exe since that executable file has disappeared PHYSICALLY from the program files ->app folder location ??!!
Is there any sane explaination to this?
c. Moreover it does not happen everytime... but occasionally during the POWER SHUT DOWN and ugraceful shut down of the system.
d. I am not 100% sure but VERY RARELY even without ungraceful shutdown/ but by shutdown process closing the application also has given this result.. Problem is... it occurs occasionally.
I am searching but any immediete pointers if any would be helpful.
Thanks,
Harsh Tag: All forms in a process Tag: 73557
Application.exe and/OR static DLL DISAPPEARS (Visual Studio.net 20
We are occasionally are facing this issue... not much help available on the net...
Here is the issue
a. We have an exe that is referring to our custom STATIC DLL that is present in the SYSTEM 32 folder. This is windows application developed using VS.net 2003 with C#.
b. Whenever there is SHUT DOWN of system (ungracefully) due to power failure and especially when TCP LISTENER in the application WAS RUNNING in the windows application (SERVER) following things happen: -
1. Either the static DLL that the application is referring to disappears from SYSTEM 32 folder. OR
2. ALONG WITH THE static DLL , the main application .exe Disappears ... The START->PROGRAMS->application->app_server.exe this keeps searching because the application.exe has DISAPPEARED...
Is there any sane explaination to this? Moreover, this happens occasionally.
c. The installer has been created with the combination of INSTALL SHILED EXPRESS and VS.NET 2003 set up files.
c. Moreover it does not happen everytime... but occasionally during the POWER SHUT DOWN.
I am searching but any immediete pointers if any would be helpful.
Thanks,
Harsh Tag: All forms in a process Tag: 73555
Tablet Pc Help required
Hi All,
I am new to tablet pc development. My working enviorment is Windows 2003
with Tablet PC SDK 1.5 installed and C#. I am designing a control for
tablet pc. I am using a panel for pen Input. Now when user is writing
(Using Pen) and is near the end of panel I want to increase panel's height
so that user can have more area to write on.Please provide Suggestions.
Thanx
Munish Tag: All forms in a process Tag: 73549
inherited form
i have a generic form with alot of controls on it, when i inherit a new
form, i can not see the design of my new form on the visual studio and get
an error on designtime.
Error is:
The designer could not be shown for this file because none of the classes
within it can be designed. The designer inspected the following classes in
the file:
form2 --- The base class 'form1' could not be loaded. Ensure the assembly
has been referenced or built if it is part of the project. Tag: All forms in a process Tag: 73543
Problem with menus
Hello:
I have a MainMenu and want to drag the MenuItems by pressing ALT + MouseDown
on an Item.
I can not find any event to do it because there is no way to stop the
MenuItem to popup,
even overriding and not calling the base methods.. and when the submenu is
visible, the messages can not be captured, even using Capture = true or a
Message Filter.
Any suggestion?? Tag: All forms in a process Tag: 73542
DataGrid Refresh problem
I have a data grid refresh problem. I have a few columns and the first
column is data in the form of numbers. And in the form of the data
grid if I specify for example something like a code(in a text box) the
column of numbers should change colors depending on whether the number
was in the specified code(if it belongs to the code, color the cell
(first column) in Red and if not in some other color). It all works
out fine until I scroll up/down and trigger the paint event. The
changed colurs seem to be changed. I want the refreshing to be done
for all records for that column, but it seems it only refreshes parts
of the datagrid. How do I make the refreshing to be done to the whole
datagrid rather than a part of it, so I can get the original colur
change for each cell of the first column.
Code
//method to be passed into the coloumn style that determines the color
public Color MyGetColorRowCol(int row, int col)
{
// just conditionally set colors based on row, col values...
short number = 0;
short retval = 0;
Color c = Color.PaleGoldenrod;
if (col == 0)
{
number = array[cIndex];
retval = GetIfInChannelOrNot(code, number);
if(retval==0)
{
c = Color.LightGreen;
}
if(retval!=0)
{
c = Color.Red;
}
cIndex++;
if(TotalNumbers == cIndex)
{
cIndex = 0;
}
}
else
{
c = Color.LightGray;
}
return c;
}
//delegate required by custom column style
public delegate Color delegateGetColorRowCol(int row, int col);
public class DataGridColoredTextBoxColumn : DataGridTextBoxColumn
{
private delegateGetColorRowCol _getColorRowCol;
private int _column;
public DataGridColoredTextBoxColumn(delegateGetColorRowCol
getcolorRowCol, int column)
{
_getColorRowCol = getcolorRowCol;
_column = column;
}
protected override void Paint(System.Drawing.Graphics g,
System.Drawing.Rectangle bounds, System.Windows.Forms.CurrencyManager
source, int rowNum, System.Drawing.Brush backBrush,
System.Drawing.Brush foreBrush, bool alignToRight)
{
// the idea is to conditionally set the foreBrush and/or backbrush
// depending upon some crireria on the cell value
// Here, we use a delegate to retrieve the color
try
{
backBrush = new SolidBrush(_getColorRowCol(rowNum, this._column));
foreBrush = new SolidBrush(Color.Black);
}
catch(Exception ex){ /* empty catch */ }
finally
{
// make sure the base class gets called to do the drawing with
// the possibly changed brushes
base.Paint(g, bounds, source, rowNum, backBrush, foreBrush,
alignToRight);
}
}
} Tag: All forms in a process Tag: 73540
Displaying different font size or font type on DatagridTextboxcolu
Hi All,
I'm developer in VB .NET family. I'm using DataGridTextboxColumn class so I need to display different font type, style and size on each cell. Is it posible, How?
Thanks,
KPH Tag: All forms in a process Tag: 73539
Tab control
Hi all,
How to customize the "Tab head" Appearebce of the Tab
Control in .NET, ie i want to changed the buttoned/flat
appearence of the tab control to "/--\" shape.
Thanks in Advance.
regards
Suresh Tag: All forms in a process Tag: 73537
Tab Control
Hi all,
How to customize the "Tab head" Appearebce of the Tab
Control in .NET, ie i want to changed the buttoned/flat
appearence of the tab control to "/--\" shape.
Thanks in Advance.
regards
Suresh Tag: All forms in a process Tag: 73536
Displaying cells in the DataGrid with their original formatting
Hi,
I've noticed an unexpected behavior with the DataGrid
control. Cells that have special formatting only display their
special formatting (such as diferrent bg color, text wrap etc.)
when the user clicks on them. Is there a way to somehow
make the datagrid display the all cells in their original formatting automatically,
rather than only when clicking on them? I'm mostly interested
in this behavior because i want the cells that span over more than
one line to wrap text. I've already found a way to change the rows' height
(using the help of the incredible SyncFusion site!), so i thought
it would be nice to also have text wrapping in the cells when the height is right.
I wonder if it can be done using reflection, because i didn't see
any public or prortected properties for changing this behavior.
Thanks for any suggestions :-) Tag: All forms in a process Tag: 73534
1 Build Error Task shown (after upgrading to VS 2003)
After upgrading to Visual Studio 2003 I have been getting the following
Build error message when starting up a session.
"At least one element in the source array could not be cast down to the
destination array type."
There is no file associated with it and refers to line 0. Seem s harmless,
doesn't prevent me from doing a build or anything, so I am just ignoring it
for now. But what is it? Should I take some action?
Thanks
Burton Roberts Tag: All forms in a process Tag: 73529
How to force MeasureItem in Owner Drawn Listbox?
I have an owner drawn listbox which is derived from the ListBox class.
How can I force it to re-measure all items?
It doesn't use DataBinding (yet).
Thanks,
Stijn. Tag: All forms in a process Tag: 73526
Data from Web Browser control back to the windows form
Hi,
I would like to know what's the best way to capture data from a page
inside a web browser control into the windows form.
The data inside the web browser's page is in whichever way i want it to be
since it's generated.
Thanks in advance,
Ana L. Tag: All forms in a process Tag: 73523
location of a control
i have button at the left bottom corner of the form
whenever i resize the form, i want to the button stay at the same place.
does button have property for this doing this? Tag: All forms in a process Tag: 73515
How to find out text size
How to find out text width for specific font and text string. I need to
dynamically generate labels and set its size property.
TIA Tag: All forms in a process Tag: 73513
Handling Empty Returns using the DataReader
I am getting this error when the DataReader returns a Null Value.
"Invalid attempt to read when no data is present."
It works fine as long as there is a string. What is the NZ() function in VB.Net?
or what would be the best way to handle this?
--
Thank You, Leo
Public Function GetNotes(ByVal NoteType As String)
Dim conSql As New SqlClient.SqlConnection
conSql.ConnectionString = "Integrated Security = True;" & _
"Data Source = TWSQL;Initial Catalog = HomeBASE;"
Dim cmd As SqlCommand = New _
SqlCommand("Select Note FROM HomeBASE.dbo.Notes INNER JOIN " & _
"HomeBASE.dbo.NoteType_ID ON HomeBASE.dbo.Notes.NoteType_ID = HomeBASE.dbo.NoteType_ID.NoteType_ID " & _
"where HomeBASE.dbo.NoteType_ID.description =" & "'" & NoteType & "'" & "and HomeBASE.dbo.Notes.Job_ID = TWCUSTOM.dbo.fn_TW_GetCurrentJobID()", conSql)
conSql.Open()
Dim drSqlDataReader As SqlDataReader = cmd.ExecuteReader()
drSqlDataReader.Read()
Dim Notes = drSqlDataReader.Item(0).ToString()
drSqlDataReader.Close()
conSql.Close()
Return Notes
End Function Tag: All forms in a process Tag: 73510
Problem loading a windows form. Please help.
I have created a .net windows form in vb.net and compiled it as a .dll. I
then register the .dll with regasm. I then call the form in a vb 6
application using the following code.
dim c as object
set c = createobject("LaborOrg.form1")
c.show
It works great on my developer machine. I place the .dll and the .tlb on
the client's server and regasm the dll. I check the registry and it shows
LaborOrg.form1. When I click the button to display the form nothing
happens. The app and the winform dll are both on the server and I am trying
to run it from the server. I do have .net framework on the server. Any
suggestions? Tag: All forms in a process Tag: 73504
Form's KeyDown delegate not called when in DropDownList ComboBox
I have a form with a delegate set up for the KeyDown event. I have set KeyPreview=true and the delegate is called correctly whenever I press a key, except if the active control on that form is a DropDown ComboBox.
If I change that ComboBox to be DropDownStyle=ComboBoxStyle.DropDowList the delegate fires when I press a key in that control, as I would expect. The problem is I don't want to restrict the ComboBox to a fixed list of options. The user needs to be able to select, or type their own option.
I have reproduced this in an extremely trivial app - one form, two comboboxes, one delegate, and no databinding etc. Does anyone know whether I could be doing something else that has created this problem, or whether this is a known bug? I have searched but can't find a post that seems relevant.
Thanks,
Scott. Tag: All forms in a process Tag: 73501
UPDATE problems with a large treeview
Is there a way to update a single node attribute without regenerating
the whole tree from the server side?
I'm supposing I should use javascript but feel not sure if I can
exploit the more advance features of dot.net env
Thanks,
Daniele Tag: All forms in a process Tag: 73500
Empty value in binded combo box
Hi all.
I have to display a dialog adding a new DataRow into the DataTable
(say, dtMain).
One field (say, "Location") of dtMain is a reference to the "ID" field
of the other table (say, dtLocations) and I want this field to be
shown on the dialog form as a list of values of all "Name" fields of
dtLocations, not as a list of "ID" numbers.
I bind as follows:
// Making referenced data displayable by their names
dlgEditor.comboBoxLocation.DataSource = dtLocations;
dlgEditor.comboBoxLocation.DisplayMember = "Name";
dlgEditor.comboBoxLocation.ValueMember = "ID";
The other requirement is that initially I have to display the empty
Location field on the dialog form. dtLocations does not contain a row
with empty "Name" value.
Of course, I would be glad to do
dlgEditor.comboBoxLocation.SelectedValue = ""
or something like this but I get a natural exception.
This is what I do.
Before I show the adding dialog form, I add the temporary DataRow into
dtLocations with empty "Name" field:
DataRow rowWithEmpty = dtLocations.NewRow();
dtLocations.Rows.Add(rowWithEmpty);
dlgEditor.comboBoxLocation.SelectedValue = DBNull.Value; // or ""
Then I show the dialog, everything looks fine.
After the dialog isclosed, I delete this temporary row from the
dtLocations:
dtLocations.Rows.Remove(rowWithEmpty);
This works (the only thing I don't like is that this temporary empty
value is available among combo box values) but I am not sure I did
what I had to do in this situation (I am a newcommwr in .NET).
Is there any smarter decision?
Thanks,
Dmytro Pavlov. Tag: All forms in a process Tag: 73497
Best Place To Store Personal Information
Hi to All,
I'm developing an application in VB .NET. I have a question: what is the
best place to save personal settings of my users? I mean, when a user uses
my application, it can create a personal profile (e.g. last files opened,
custom settings, etc...). What is the best place to save them? At first, I
thought to save them in the registry, in the CURRENT_USER section, but I'm
not sure every user can have read/write access to it.
What do you suggest? Where can I find more information?
Thanks,
Marco Tag: All forms in a process Tag: 73496
MainMenu Colour
How can I change a main menu's colour ?
It appears white in the design view but when i run the app it is grey.
--
There are 10 types of people. Those who understand binary and those who dont.
Vedant Lath Tag: All forms in a process Tag: 73492
click event on a nested control
I have a form that has a bunch of nested controls in it. How do I detect a
mouse click on any of those controls in that form? I don't actually care
which control receives the click event in this case, just want to know if
any part of this form is being clicked on. Obviously I could hookup the
clicked event of every single child control, but is there an easier way?
Thanks.
- Harry Tag: All forms in a process Tag: 73491
Re: Free Menu Control Supporting Tabled PC Ink on Menu Items
This is a multi-part message in MIME format.
------=_NextPart_000_0016_01C45571.98718B60
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Forwarding to a larger group
"Rhy Mednick" <rhy@rhy.com> wrote in message news:...
I've been developing a series of controls for the Tablet PC which are =
available as open source. The first of the controls is a menu control =
and it's available at http://www.sourceforge.net/projects/inkmenu. The =
current release is a beta release, but the more people who try it out =
and report problems with it, the faster it'll make it to its final =
release. If you're interested, go check it out. It's free!
Here is a short description from the site:
The Chicken Scratch Software Menu Control is a .NET menu control =
that mimics the functionality of the menu in Microsoft Office but =
extends it to display Tablet PC Ink for menu items. It is being written =
in C# and targeting the .NET Framework v1.1=20
I think the control is pretty cool, but I wrote it so I suppost that =
I'm biased.
- Rhy
------=_NextPart_000_0016_01C45571.98718B60
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.2149" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Forwarding to a larger =
group</FONT></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Rhy Mednick" <<A =
href=3D"mailto:rhy@rhy.com">rhy@rhy.com</A>> wrote=20
in message news:...</DIV>
<DIV><FONT face=3DArial size=3D2>I've been developing a series of =
controls for the=20
Tablet PC which are available as <STRONG>open source</STRONG>. The =
first of=20
the controls is a menu control and it's available at </FONT><A=20
href=3D"http://www.sourceforge.net/projects/inkmenu"><FONT =
face=3DArial=20
size=3D2>http://www.sourceforge.net/projects/inkmenu</FONT></A><FONT =
face=3DArial=20
size=3D2>. The current release is a beta release, but the more =
people who=20
try it out and report problems with it, the faster it'll make it to =
its final=20
release. If you're interested, go check it out. It's=20
free!</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Here is a short description from the=20
site:</FONT></DIV>
<BLOCKQUOTE dir=3Dltr style=3D"MARGIN-RIGHT: 0px">
<DIV><FONT face=3DArial size=3D2>The Chicken Scratch Software Menu =
Control is a=20
.NET menu control that mimics the functionality of the menu in =
Microsoft=20
Office but extends it to display Tablet PC Ink for menu items. It is =
being=20
written in C# and targeting the .NET Framework v1.1 =
</FONT></DIV></BLOCKQUOTE>
<DIV dir=3Dltr><FONT face=3DArial size=3D2>I think the control is =
pretty cool, but I=20
wrote it so I suppost that I'm biased.</FONT></DIV>
<DIV dir=3Dltr><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV dir=3Dltr><FONT face=3DArial size=3D2>-=20
Rhy</FONT></DIV></BLOCKQUOTE></BODY></HTML>
------=_NextPart_000_0016_01C45571.98718B60-- Tag: All forms in a process Tag: 73490
ComboBox Drop Up in Grid?
I have a ComboBox inside my WinForms DataGrid. The grid has about 10
rows. The ComboBox has 100+ items in it. When I access the ComboBox
on grid row 10, the list flies off the bottom of the form window and I
can't see even the scrolling arrows on the ComboxBox.
How can I make it "scroll up" so that I always get a full view of the
combo?
Thanks. Tag: All forms in a process Tag: 73489
Getting a date from another form
I have a main form with a textbox for a date. When I click this textbox I
have another form with only a calendar control, an OK button and an Exit
button that I want to open and the user select a date then click ok. I then
want the date that the user selected to be put into this textbox on the main
form. I am new to vb.net, can someone explain how to do this?
Thanks in advance!
Kent Tag: All forms in a process Tag: 73486
System.Windows.Forms.PrintDialog PrinterSettings Collate
Hi,
I am trying to get the collate setting from the printersettings member of
the printdialog.
Currently i can set the collate member to true, and when i display the
PrintDialog the checkbox will be checked.
But, regardless whether the user leaves the check box checked or uncheck it
(or if i default the collate to false), ALWAYS the value after the dialog is
closed is PrintDialog.PrinterSettings.Collate = false.
Everything else is working (i get the number of pages, etc).
What could be happening?
Thanks, José Araujo Tag: All forms in a process Tag: 73482
ListView Control: Can Header Column Colors be changed
I have a listview control and default column header colors are black.
Can I dynamically set each column header of the listview to a different color?
Goal is to have: 1) column headers different colors(i.e column one blue, second column red third column header green etc)
2) can subitems also get set to different colors (not by row).
appreciate any guidance.
thanks
ngottlie@bassocap.com Tag: All forms in a process Tag: 73479
Global Event For Any Control That Is Changed
Is there a global event anywhere that is generated for any control
that has a change?
I am looking for something to enable and disable an "apply" button.
Amy Tag: All forms in a process Tag: 73477
How to capture UserControl mouse events in it's container
Hello,
I want to be able to capture UserControl mouse events by the container of
the UC.
My final goal is to be able to move at run-time the UC in the container. I
have been able to do this with regular controls, by capturing the
MouseDown,MouseMove and MouseUp events. But when it comes to UserControls,
the mouse events are captured by the UC's different controls and not the
container.
I have tried setting the Capture property of the container to True but it
does'nt help.
If someone knows the answer to this, please let me know.
Thanks Tag: All forms in a process Tag: 73470
IBindingList: AddIndex, ApplySort
Does anyone know of any examples that demonstrate how to best implement these
methods of IBindingList? Tag: All forms in a process Tag: 73467
Datagrid: Bind to custom collection, layout at design time
I am binding a datagrid to a custom collection of data objects. I will be doing
this quite often for the app I am working on, so I have a practical issue:
Are there any tricks that will allow me to configure columns in the grid at
design time? From what I can tell, this can only be done when binding to a
DataTable dropped on the form at design time. Setting all the column
characteristics in code is going to get quite tedious. Tag: All forms in a process Tag: 73466
MDI Child From Problem
Our team is working on an MDI application. When we create a MDI child form
in the normal fashion, assigning MdiParent property to the reference of the
main form. The child form displays ok with the maximize and minimize button.
But, when the child form is maximized the control buttons for the child
window are not displayed in the menu bar of the main form. This makes it
impossible to restore the sizeo of the child form. Does anyone have a hint
or idea what may be going on here?
TIA,
Jim Tag: All forms in a process Tag: 73464
Using LogonUser to authenticate a user
Hi,
I need the ability to authenticate a user within my application against a specific domain. The machine where the application is running might be part of this domain, another domain or no domain. I am trying to use the LogonUser API which seems to work fine when the machine is part of the target domain, but it does not work when the machine is not part of a domain. The ultimate goal is that once the user authenticates, I impersonate the user and connect to a database using SSPI.
Is there some way that I can achieve this functionality?
Thanks. Tag: All forms in a process Tag: 73463
Is there an event after form activation?
I am trying to run a method on a class in a wondows application(C#). The
application has only one form(let's say frmMain). The method on the class
has some event handler and I want to print the messages from those events on
to the frmMain. I have tried to run the method under from activation
event.The method runs ok but I can't see the messages until the method call
is completed (and it defeat the purpose). The problem is--the form itself
has not been painted completely.
So my question is--where do I run the method?
Thanks,
Prodip Tag: All forms in a process Tag: 73460
Hi,
Is there an easy way of finding out how many forms a process has created?
Something like .AllForms property?
* "=?Utf-8?B?am9obiBzbWl0aA==?=" <johnsmith@discussions.microsoft.com> scripsit:
> Is there an easy way of finding out how many forms a process has created?
> Something like .AllForms property?
Currently, no. You will have to update a counter yourself.
There is no managed solution for that or at least I can't find it.
Anyways you can use a little PInvoke.
First use Process class to get reference to the current process. Then from
Threads property you can get collection of all the threads running in the
process. After that using PInvoke you can enumerate all windows in the
threads(EnumThreadWindows API).
But bare in mind the Process.Threads property returns window threads which
are different than .NET thread objects. WindowsThreads coross applicaiton
domain boundaries so, I guess you are going to enumarate even windows which
doesn't belong to the current application domain (.NET application). You
always can do more filtering, though.
--
HTH
Stoitcho Goutsev (100) [C# MVP]
"john smith" <johnsmith@discussions.microsoft.com> wrote in message
news:4751F021-2295-42CB-A0C6-9300A70E17CC@microsoft.com...
> Hi,
> Is there an easy way of finding out how many forms a process has created?
> Something like .AllForms property?
>
>
> Thank you,
>
>