all groups > dotnet windows forms > february 2008
Filter by week: 1 2 3 4
Update other GUI via BackgroundWorker thread?
Posted by Carl at 2/29/2008 1:23:48 PM
Hi,
I know that you should not update the applications GUI with code running in
the BackgroundWorker thread (or any other thread). But is it OK to
construct, show and update new Forms inside the thread? The difference I'm
trying to point out is that you don't update any existing GUI, but in... more >>
Draw PDF onto GDI+ Surface
Posted by Richard MSL at 2/29/2008 8:42:01 AM
I have a WinForm application. I would like to be able to read a PDF, and draw
it onto the GDI+ drawing surface, along with other commands that I would draw
on the surface, to then print it. This can be done with a WMF file, so one
option is to preconvert the PDF to WMF, but I would to read the... more >>
Insert key
Posted by Arne Garvander at 2/28/2008 9:36:02 AM
How can I put a textbox in overtype mode?
Using the insert key on a webform works fine, but it does not do anything on
a winform textbox.
--
Arne Garvander
Certified Geek
Professional Data Dude... more >>
Numeric textbox
Posted by Arne Garvander at 2/28/2008 9:35:01 AM
How can a write a filter for a textbox that only accepts numeric input?
I tried the maskedTextBox, but i did not like it.
--
Arne Garvander
Certified Geek
Professional Data Dude... more >>
Dynamic Menus + Click Event
Posted by jonmiller1125@gmail.com at 2/27/2008 7:37:09 PM
Hello,
I am trying to create a contextmenustrip with drop downs dynamically.
I have everything visually working. Each menu appears across the
screen as well as each of their corresponding sub (drop down) menus.
My problems has become that I need to put some sort of onclick event
on these dro... more >>
MDI Parent Child Maximize form issue
Posted by Ron at 2/27/2008 3:04:43 PM
Hi,
I have a situation where I have a MDI Parent form that contains a menuStrip
control at the top. When I launch a Child Form I specify:
frmChild.WindowState = FormWindowState.Maximized;
The problem is that the maximize/minimize buttons on the Child Form appear
above the MDI Parent's men... more >>
Relative path that works in development and after deployment
Posted by P_Prdn at 2/27/2008 10:16:03 AM
I was wondering if somebody could show me on how to use relative path in
windows application that will work during DEVELOPMENT as well as after
DEPLOYMENT. In short, here's my situation. During development the files in my
project are located as follows:
MyProject\bin\Release\MyApplication.e... more >>
Fast control for bus monitor
Posted by kelvin.koogan@googlemail.com at 2/27/2008 6:53:05 AM
I am writing a bus monitor / protocol analyzer using VS 2005 C++/CLI.
Currently I am using a RichTextBox to display the messages. I am
adding each message with AppendText. This seems to be very slow; the
RichTextBox cannot keep up with the speed at which the messages come
in.
Is there a fas... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
NumericUpDown ValueChanged not firing - scrollwheel+shift key pres
Posted by Graeme at 2/27/2008 6:37:04 AM
Hello, really hope you guys can help.
I'm using a standard NumericUpDown control on a form, and trying to change
the increment depending if a Control.ModifierKeys is pressed when the mouse
scrollwheel is moved.
Default increment is 0.5
When Keys.Control is pressed and I roll the mousew... more >>
problem with excel
Posted by AVL at 2/27/2008 6:13:00 AM
hi,
i'm facing a strange problem..
In my requirement , I'm suppose to load the data from datagrid into excel
file.
make the required changes in the file and load the file back into the
datagrid.
i'm able to export to excel but after i make changes in the excel and load
it into
grid,... more >>
DragDrop from one dataGridView to another (C#)
Posted by dbuchanan at 2/25/2008 11:19:44 PM
Hello,
I have a form with two similar DataGridViews. They have identical fields. I
want to drag multiple selected rows from one to the other. I have spent the
evening looking for sample code for this with no success in finding a
complete sample. I have tried for hours to work together incom... more >>
What is the best way to display a bunch of text with links and tooltips?
Posted by Sasha at 2/25/2008 2:51:03 PM
Is it web browser control or richtextbox?
This is for display only. Also I need to handle link clicks and
perform custom actions based on that.
Thank you!... more >>
WPF or Windows Forms
Posted by John at 2/24/2008 5:34:00 PM
Hi
If I have a choice of WPF or Windows Form versions of a control which one
should I purchase?
Thanks
Regards
... more >>
NGen questions
Posted by John at 2/23/2008 5:18:02 PM
Hi
1. Has ngen been improved in vs2008 from previous versions?
2. How can I included ngen with setup file created by vs 2008 so the setup
runs the ngen at target machine after installation?
Thanks
Regards
... more >>
Opening a form hidden
Posted by John at 2/22/2008 9:39:50 PM
Hi
I have searched for answer to this question on the net but surprisingly no
clear answer has come up. How can I open a form hidden in vb.net?
Thanks
Regards
... more >>
Reducing app start-up time
Posted by John at 2/22/2008 6:39:56 PM
Hi
I am looking to reduce app loading time. My question is, if I use the splash
screen feature from App Properties->Application->Splash Screen does it add
to the app loading time and am I better of running the splash screen using
the background worker?
Thanks
Regards
... more >>
Initial opening speed
Posted by John at 2/22/2008 3:04:07 PM
Hi
My vb.net seems to be slow on initial loading. My clients are not impressed
as they had used the ms access version of the app previously and think that
the old app is faster in loading. I understand .net apps need to compile
themselves before execution. Is there any way I can speed up th... more >>
Formatting PrintDocument
Posted by Ross Culver at 2/21/2008 1:58:23 PM
Can someone post a link to more indepth samples of formatting a =
PrintDocument. I've found some info for the ReportViewer, but not for =
the PrintDocument.
Specifically, I'm looking for a code example of how to underline text in =
the middle of a document; how to draw a horizontal line and h... more >>
UserControls?
Posted by daniel.divita@gmail.com at 2/21/2008 7:37:24 AM
I am a web developer by trade, but have done a little with winforms.
How can I add a winforms user control to an application without having
to create a separate project for each control? From what I have been
reading, you need to create a project for the user control, build it,
and then add it t... more >>
DataGridView & TabPages
Posted by César_Roberto_de_Souza at 2/21/2008 7:31:28 AM
Hi,
This is my first message to this group. I've already search the web,
google, this group, found some clues to my problem but found no
solution or workaround. So please let me explain my problem:
I'm developing an application, which has custom UserControls
containing DataGridView controls... more >>
Transparent frame?
Posted by Gregory Khra at 2/20/2008 3:11:01 PM
I need to use a control that is just a border, like transparent
System.Windows.Forms.Panel (I need to display form's background image). Can
you advice on what I can use or how to make Panel transparent?
Thank you.
... more >>
Table Adapter parameters
Posted by Ron at 2/20/2008 2:47:03 PM
I was successfully calling a TableAdapter.Fill command in code which was tied
to an SQL stored procedure. I changed the stored procedure to include two
additional parameters and it stopped working in code. The stored procedure
works when previewing it in the dataset designer. But the line o... more >>
Save user preferences?
Posted by daniel.divita@gmail.com at 2/20/2008 1:41:30 PM
I know this has been discussed before, but I really need a good
example of how this works. I am developing an application that houses
some user preferences and also will allow the user to save the entire
project to a file. Instead of creating XML files that will be saved to
a directory, what is ... more >>
Dynamic event handlers
Posted by eaguilar at 2/20/2008 7:21:02 AM
Hi,
I am trying to dynamically generate a menu, based on entries on a text or
xml file. The text file contains the "tree" after which the menu will need to
be created. Something like the following:
Level 1
-- Level 2
-- Level 2
Level 1
-- Level 2
---- Level 3
I can read the... more >>
VS2005 - disable main form until splash has closed?
Posted by Olaf Rabbachin at 2/19/2008 11:58:22 AM
Hi everybody,
I am using a form (predefined template) as a splash screen which is being
displayed for a couple of seconds.
Other than with older versions of VS I don't have to fiddle around with
timers and threads to display that form - it seems that the template is
implementing that behaviou... more >>
String Format
Posted by deepak at 2/19/2008 6:48:00 AM
Hi All,
1. This is my string
"The description of the problem ERIndia_Bharti / 2/19/2008 8:37:00 PM last
comment only ER_Kista / 2/19/2008 9:45:00 AM last comment only ER_Kista /
2/19/2008 9:45:59 AM last comment only ER_Kista / 2/19/2008 9:47:00 AM"
I want to extract all those dates in... more >>
Targeting for fw 2.0
Posted by John at 2/18/2008 10:29:09 PM
Hi
I have upgraded a vs2003 app into vs2008. How can I tell vs2008 to target
this app for framework 2.0 instead of 3.5? I can't seem to find this option
anywhere.
Thanks
Regards
... more >>
Capturing hot keys
Posted by John at 2/18/2008 9:49:31 PM
Hi
How can my main form capture key strokes and pass them to various controls
on the form?
Thanks
Regards
... more >>
DNS-less Connection String Using VS2K5 Datasource Connection Wizard
Posted by Ross Culver at 2/18/2008 2:53:30 PM
The quick question is: when creating an SQLdatasource using the wizard in
VS2K5 which requires a new connection, does VS2K5 create a DNS-less
connection or not?
The long question is: I've been told that DNS connections strings
(Datasource=DNSName) are old news and that I should be using a... more >>
DataGridView Column Resizing Just Quit On Me??
Posted by Tom at 2/18/2008 10:48:29 AM
I have a DataGridView "grid" filling a splitter panel and have set:
grid.AllowUserToResizeColumns = true;
Until just recently the column resize worked perfectly when I drug a
header column divider. Now, it has just stopped allowing me to grab
the column divider?
I can still reorder the co... more >>
Copying data between two forms, allocated memory continues to grow
Posted by Federico Caselli at 2/18/2008 9:33:01 AM
Hi,
I have a simple memory problem with two forms on a MDI project.
The first form (MainForm) open a second one (ImageForm).
Both the forms have an instance to a dataset (DataSet1).
On the ImageForm Form_Load event, I wrote code to copy all the records from
the MainForm.DataSet1.TB_Im... more >>
Error running app in production
Posted by John at 2/17/2008 1:11:17 AM
Hi
I created a setup file of my app and remotely installed it on a clients
machine. The app bombs at start-up with the error;
Error while initializing application: Retrieving the COM class factory for
component with CLSID {0006F03A-0000-0000-C000-000000000046} failed due to
the following... more >>
Send Email with attachment
Posted by Elmo Watson at 2/16/2008 11:33:20 AM
I can't be sure my users will have MS Outlook installed, and therefore, I
don't know which client they're using
How can I generically popup a display, adding the currently open file as an
attachment, using whichever email client they have, so they can fill in the
subject and 'To' address?
... more >>
I think I have dain bramage
Posted by Greg Smith at 2/15/2008 1:01:20 PM
I am attempting to set the font to bold in the header of a DataGridView.
I am drawing a blank at getting the syntax correct. I want to finish this:
gv.ColumnHeadersDefaultCellStyle.Font =
Any help is greatly appreciated.... more >>
get the foreground window in my application
Posted by CBanu [IXIA] at 2/15/2008 9:21:57 AM
I'm trying to get the window that is currently on top in my
application, even if I'm currently working in another application.
Something like the P/Invoke call GetForegroundWindow(), but I want it
to operate only on my application's forms. I've also tried using
Application.OpenForms[], but I don... more >>
BackgroundWorker and ListView cross-thread exception
Posted by Jazza at 2/15/2008 4:03:01 AM
Hi,
I am writing an application which displays a list of computers on a network
and then pings each one and displays the result.
To keep the UI responsive, I am doing the ping operation using a
BackgroundWorker component. The Ping method loops through a list of Computer
business objects,... more >>
Communicating with a service
Posted by John at 2/14/2008 2:48:03 PM
Hi
I need a vb.net winform app to be able to query a service (also written in
vb.net) and get info in return. Is it possible? Is there a way to do this?
Thanks
Regards
... more >>
"Locked" controls?
Posted by Olaf Rabbachin at 2/14/2008 10:04:46 AM
Hi everybody,
in a VB.Net (VS 2005) application, there is basically three "states" in
which controls are to signal what can be done with them. Usually, values
loaded into controls may be looked at, but not edited ("Locked"). In
certain cases (simplest: user has the permission to change data), ... more >>
Textbox input from a customized location
Posted by Sujay Ghosh at 2/14/2008 5:07:01 AM
Hi,
Environment : VS 2005 / .NET 2.0 / Windows XP SP2
Requirement :
class MyTextBox : TextBox
{
// more code
}
When I run the application my text box caret blinks in its usual place ( at
the left ).
I want the cursor to be X pixels from the left of the text box and hence... more >>
Checkbox and selectnextcontrol
Posted by kiwisurfer in UK at 2/14/2008 3:34:01 AM
When selecting a Checkbox using the SelectNextControl() method, i've noticed
that the checkbox does not display the focus rectangle.
By writing a simple application with a button and two checkboxes (where the
checkboes have a tab index value greater than the button's), invoking the
SelectNe... more >>
Application settings
Posted by John at 2/13/2008 2:47:35 PM
Hi
Is there an easy way to allow user to change application settings at run
time short of editing the configuration file manually?
Thanks
Regards
... more >>
Saving Print Output to Database
Posted by HaySeed at 2/13/2008 1:28:01 PM
I need to save print output to the database for future retrieval.
I assumed that the best way to do this was to use a BinaryFormatter to
convert my PrintDocument to a byte array - strore the binary stream - then
deserialize it upon recall.
Unfortunately the PrintDocument is not serializab... more >>
datagridview binding and object properties
Posted by brianlanning at 2/13/2008 12:39:05 PM
Suppose I have an object that looks like this:
public class thing
private mOne as string
private mTwo as string
private mThree as string
private mFour as string
public property one as string
bla
end property
(and so on, public properties for the others... more >>
Different color text in textbox
Posted by tshad at 2/13/2008 11:21:52 AM
Can you have different color text is a standard TextBox?
I know you can in a RichText box but what about the TextBox.
Same with bolding - can you bold one line of text in the text box and then
unbold the next line?
Thanks,
Tom
... more >>
Selecting target net version
Posted by John at 2/13/2008 11:17:19 AM
Hi
Is there a way to select 2.0 .net as target framework AFTER project has
already been created or imported into vs2008?
Thanks
Regards
... more >>
Tabcontrol focus
Posted by Arne Garvander at 2/13/2008 11:10:02 AM
I would like to connect a tabpage on a tabcontrol with a function key.
I know how to capture a function key. I can programmatically find my
selected tabpage.
Mytabpage.focus does not seem to do anything.
Do I need to create a tabpage click event?
--
Arne Garvander
Certified Geek
Professi... more >>
newlines in textbox
Posted by tshad at 2/13/2008 10:28:59 AM
I am using a TextBox as my status display and "\n" doesn't work.
What would I use to go to the next line in a TextBox.
I am doing something like:
Status.Text += String.Format("Opening
{0}\n",Path.GetFileName(strFile));
But the next line just continues on the same line.
Thanks,... more >>
Can't see textbox control
Posted by tshad at 2/13/2008 9:40:10 AM
This makes not sense at all.
I created a textbox on my screen and set the name property to "Status".
If I double click on the textbox, it goes to the code page and shows:
private void Status_TextChanged(object sender, EventArgs e)
{
}
So obviously, it sees the... more >>
Application Frameworks for .NET
Posted by LP at 2/12/2008 10:31:17 PM
Hello, We are about to start a big project replacing legacy application with
an application that will be developed on .NET framework. Some people on our
team have experience with application frameworks in Java and FoxPro, and
they want to use some equivalent frameworks in .NET like Spring, CSL... more >>
Single instance app
Posted by John at 2/12/2008 3:28:24 PM
Hi
Is there a way to ensure that an app is only run once and if it is run twice
it terminates?
Thanks
Regards
... more >>
|