all groups > dotnet windows forms > march 2008
Filter by week: 1 2 3 4 5
Detecting which form was open
Posted by Dom Sinclair at 3/31/2008 11:38:03 PM
Firstly my apologies if I have posted to the wrong group.
Using visual Studio 2005 and programing in VB.net
I have an application which, in the event of an unhandled exception, sends
an e mail back to me giving as much information as it can from the exception
message that was generated. N... more >>
show form where (frm.Name.ToString()=strformname)
Posted by beginner at 3/31/2008 4:36:24 PM
'[VB2005]
sub loadform(ByVal strformname As String)
Dim frm As form
'haw to show frm where (frm.Name.ToString()=strformname)
'thanks a lot.
frm.show
End sub
... more >>
Print pdf document using PRintDocument
Posted by Vikram at 3/29/2008 11:18:00 PM
Hi,
Can we print a pdf document using .Net PrintDocument class? If yes then how?
I dont wanna use Win32 spooler functions as it require all that DLLIMports
etc.
Thanks... more >>
New db application advise
Posted by John at 3/28/2008 8:20:43 PM
Hi
I need to write my first vb.net/sql server app and I just need pointers as
to how pros do it. My app is a multi-user apps which needs to refresh from
what other users are adding to the backend sql server db.
My question is;
1. Do I just drag the fields on to a form and let the vs 200... more >>
Effective coloring in RichTextBox
Posted by Jakub Cermak at 3/28/2008 11:51:04 AM
Hello, I've RichTextBox with quite long text (thousands of lines) and I'm
doing something line syntax coloring. I set different colors to each word,
number etc. with selecting the text (Select()) and the setting
SelectionColor. But it's very slow. I even tried to send the messages
manually a... more >>
ListView flickering
Posted by kelvin.koogan@googlemail.com at 3/28/2008 7:26:56 AM
Using VS2005, C++, .NET
I have a ListView with OwnerDraw=true, Details view, that I am using
to display messages in real-time. Ideally I want to scroll down to the
bottom, i.e. most recent message, each time one is added.
However the control flickers horribly, much worse than the RichTextBox... more >>
How can I make Winform with Vista style using .Net Framework 2.0?
Posted by Wang.ZhiAn at 3/27/2008 8:19:01 PM
The followings codes I am trying to realize it are:
Firstly, instantiate a Winfrom inherited from "System.Windows.Forms.Form",
Secondly, Load background image to the Winform and override fellowing codes
to realize transparent effect:
-------------------------------------------------------
p... more >>
APP.Config , Configuration system failed to initialize
Posted by ns at 3/27/2008 8:18:01 AM
I am getting the following error
"ConfigurationErrorsException was unhandled, Configuration system failed
to initialize"
This were working fine in Web based application and i am porting it to
windows form, the only thing that i removed is the version ifnormation for
the type in namevalue... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Persisting field form values
Posted by John at 3/26/2008 10:22:46 PM
Hi
I have a form with a couple of text boxes and a list box. The user is able
to type text in text boxes and add elements to the list box. My question is;
how can I persist the values in these fields so they remain when the form is
closed and opened again by the user, either in the current ... more >>
Form loading speed optimising
Posted by John at 3/26/2008 9:32:22 PM
Hi
I have a form which does a few operations at start-up which take a long
while. I would like to divide the operations in two parts, one that can run
first time form is loaded and second part that only runs once user opens the
form subsequent time. How do I go about doing this? I presume I... more >>
big problem with Win XP
Posted by Andy at 3/26/2008 5:49:02 PM
Hi just wondering if you can help i am operating on windows xp sp2 and cant
acess the disk drive, use the mouse or keyboard in windows but they all work
before the windows load screen. Also i dont have a boot disk to reinstall
windows, but windows dosent give me any error messages saying there... more >>
Inherited Form Question
Posted by Robert E. Flaherty at 3/26/2008 9:26:25 AM
I created a form which I named SpreadTemplate1 and use it for others forms to
inherit from, like the form that I named frmMyCustomersVendorList. The form
frmMyCustomersVendorList as its own controls plus controls that it inherited
from SpreadTemplate1. Both have a InitializeComponent() metho... more >>
const Image to set DefaultValue on Image property
Posted by CBanu [IXIA] at 3/26/2008 5:42:35 AM
Hi all,
I'm having some problems with one of my controls. I derived a control
(MyImageButton) only to set a specific Image on it
(MyToolTipInfoButton) when calling the constructor. However, the
designer doesn't know about this change, because on the Image property
the DefaultValueAttribute is... more >>
Equivalent of Delphi SpeedButton
Posted by Steve Thackery at 3/25/2008 2:32:03 PM
I'm a complete newbie to C# and .Net programming, and am just learning the
environment by rewriting one of my existing Delphi apps from the ground up
in C# 2008 Express.
I've got a row of buttons which I want to work like radio buttons - that is,
one of the buttons in the row is "down", and... more >>
WM5 VS2008 sdf Database deployment option
Posted by SteveS at 3/25/2008 11:01:04 AM
I have a mobile application with a .sdf Database included. I am developing on
Windows XP SP2 and deploying to Microsoft Device Emulator V3.
In Solution Explorer if I right click and go into properties for the
database, the "Copy to Output Directory" option does not appear to be working
prop... more >>
Global Key Event Capute in C# on Vista
Posted by Alex Maghen at 3/25/2008 8:17:04 AM
Hi - Sorry if I'm in the wrong forum. Trying to find the right place.
Back on XP, I had downloaded and messed with a C# wrapper library which
allowed me to globally capture keypress events (meaning, allowed me to
respond to keyboard key-presses even when my application was not "in front."
N... more >>
Textbox
Posted by Arne Garvander at 3/25/2008 7:46:01 AM
I set a default value in for a textbox. Does the textbox have a property that
would tell if the operator has type anything into the textbox?
--
Arne Garvander
Certified Geek
Professional Data Dude... more >>
FilterItemOnProperty?
Posted by Jeff Johnson at 3/24/2008 5:21:03 PM
Does anyone have any idea what the ListControl.FilterItemOnProperty() method
does? I'm not sure the MSDN documentation for it is written in English....
... more >>
I failed operating Windows Vista Speech Recogition
Posted by Dannys at 3/22/2008 2:17:00 AM
I tried to operate Windows Vista Speech Recogition through Go to Start/All
Programs/Accessories/Ease of Access/ to start Windows Speech Recognition
(WSR). but I got a feedback : I have no possibilty to operate this character
for your language. Help please--
ds... more >>
Tree Control with Columns?
Posted by Jack at 3/21/2008 9:24:57 AM
Hi All
Could anyone recommend me a decent tree control that can have extra columns of text data (like how Outlook Express shows the messages), preferably in C#.
Many thanks
---
Jack... more >>
systray question
Posted by jvcoach23 at 3/21/2008 8:23:37 AM
please direct me to the correct news group if this is not the proper place
to ask.
I have the systray icon working. what i can't get to work is so that when
i click the minimize icon the windows form, to get the icon to go away at
the bottom, i only want to be able to get the form back up by ... more >>
Cut, Copy, Paste code
Posted by John at 3/20/2008 2:22:03 AM
Hi
In a winform app I need to provide a menu with Cut, Copy and Paste options.,
What code do I use to accomplish cut, copy and paste features for fields on
a winfrom?
Thanks
Regards
... more >>
6 years later - bugfix neither found its way into 2.0 or 2.0SP1
Posted by Markus Springweiler at 3/19/2008 4:19:41 PM
Hello,
look at this:
http://groups.google.de/group/microsoft.public.helpauthoring/browse_thread/thread/f58899a5b10440df/6f2b59a8609a7d74?lnk=st&q=HelpNavigator+AssociateIndex
The solution is also known since ages:
http://www.help-info.de/en/Visual_Basic_net/vbnet_faq.htm
But what does Mic... more >>
WinForm update when background event question
Posted by Guy at 3/19/2008 2:05:01 PM
I suppose the following is possible, but can someone give me a clue where to
start.
I would like my WinForm updates when a certain event in the background (in
my business layer or database) happens. E.g. when someone enters a record in
a table in the db, a monitoring screen (WinForm) updates ... more >>
Multiple Connection Strings for Multiple Dlls
Posted by msnews.microsoft.com at 3/19/2008 12:52:07 PM
Hi!
I am facing a small problem.
Actually i have a solution having around 5 Dll Projects. Each dll project is
named as Project1.DAO, Project2.DAO ......
Now i have a connectionstring each of the project which is named as :-
Project1.DAO.ConnectionString
Project2.DAO.ConnectionString
wh... more >>
enums bitwise values.
Posted by Ibrahim. at 3/19/2008 9:18:00 AM
Hello,
I have a enum structure like this ;
[Flags]
public enum days
{
Sun=1,
Mon=2,
Tue=4,
Wed=8,
Thur=16,
Fri=32,
Sat=64
}
now i sum only sun & fri & save to database table field
int daysSelected = (int) days.sun | days.fri
now i want to get the enum... more >>
Delete Excel rows/sheets
Posted by Rob Oldfield at 3/19/2008 6:41:02 AM
Using OleDB to write data to an Excel spreadsheet(*), is there really no way
to delete existing data without resorting to automation?
*... where the spreadsheet contains other sheets that refer to the data I
want to insert, so can't just overwrite the entire file.... more >>
DataGridViewCell Question
Posted by anthonypete@gmail.com at 3/19/2008 4:48:49 AM
I'm using an unbound WinForms DataGridView, to allow for user changes
to certain data to be saved. However, I'm uncertain how to access the
string value of what a user has typed into a cell. DataGridViewCell
has a value and a formatted value property, but I've noticed that
sometimes FormattedVal... more >>
Simple question
Posted by Gregory Khra at 3/18/2008 3:23:00 PM
I need to draw a text string on the form. In order to do it I create Paint
event handler and place a command
e.Graphics.DrawString(...)
Unfortunately if other controls on the form overlap with this string, they
hide it.
How can I make the string appear on top of other controls? (other contro... more >>
Passing class references
Posted by AMP at 3/18/2008 12:53:01 PM
Hello,
Where can I find a GREAT explanation about keeping references to other
classes/forms between each other.
I'd like to see code that uses the different methods , public
properties, set-get.
Am I correct in saying one form or class has to instantiate the other
one for this to work?
Thanks... more >>
Microsoft.VisualBasic.RTrim Doesn't
Posted by Ross Culver at 3/18/2008 11:47:09 AM
Can anyone explain to me why Microsoft.VisualBasic.RTrim or
Microsoft.VisualBasic.Trim do not remove the trailing blank spaces in a word
such as "PI030010035127SIY "?
I'm pulling data from SQL 2005 using a standard dataset/datatableadapter. I
assign a variable for each field and as... more >>
Passing a variable to a Form from a Class
Posted by AMP at 3/18/2008 9:02:06 AM
Hello,
I have a class that has a calls a method in a form to set some text
on that form:
This is in a Class SerialPortConnection.cs.
I have an object called NewConnection.
I want to pass some text to a form with this:
Form1.UpdateTextBox1(" Port Open\r\n");
Here is my Form Method:
inter... more >>
Cursor visibility
Posted by Arne Garvander at 3/18/2008 7:55:04 AM
When I tab into a Checkbox my cursor disappears.
How can I make my focus on a checkbox visible?
--
Arne Garvander
Certified Geek
Professional Data Dude... more >>
some language notes
Posted by davidboon28@gmail.com at 3/18/2008 6:33:33 AM
http://comp-languages.blogspot.com
http://computer-language-tutorials.blogspot.com... more >>
Increase length of datagrid as form length increases
Posted by max.sofia@gmail.com at 3/18/2008 6:26:46 AM
I am about to do what I thought was a simple task. I have a datagrid
in a form. When I increase the height of my form when running the
application I want the datagrid to increase aswell. How do I do it? I
cannot seem to increase my datagrid at all when running the app.
... more >>
Drawing Lines in a Picturebox
Posted by Mike Tuersley at 3/18/2008 12:02:01 AM
Hi,
I have a series of x, y coordinates that I am trying to draw in a
picturebox. I am able to draw lines okay - the problem is trying to draw the
overall shape to the extents of the picturebox. My "image" comes in way too
small. What am I missing? Below are out takes of my code that should... more >>
The Pixels are blurred
Posted by A. Suresh Kumar at 3/17/2008 11:06:02 PM
Hi,
Iam Facing some problem in the gradient of pixels while invoking DrawIamge
of System.Graphics. My objective is to position a set of pixels in a bitmap
and enlarge it based on the dimension specified for the container.I choose
DrawImage method of Graphics object which Draws the specified... more >>
Design advice requested: popup window
Posted by Jeff Johnson at 3/17/2008 5:03:02 PM
I'm creating an owner-drawn control (inherited from Control) which is
scrollable, and I'm using standard scroll bars for that aspect (i.e., my
control is owner drawn except for the scroll bars, and yes, I know, I could
have used ScrollableControl). I want to implement "thumbnail panning"
fun... more >>
Control Enter Event stops firing
Posted by TheFid at 3/17/2008 7:24:56 AM
I have created a custom UserControl (I call it a "Workspace") that
contains four controls, one of which is an ActiveX control.
The Enter event of the ActiveX control is wired up.
If I embed two Workspace controls (say, A & B) in my form, the ActiveX
Enter event will only fire once for each W... more >>
windows xp problem
Posted by CHRISGRAND at 3/17/2008 7:22:00 AM
Please help!!! I moved and have had my computer in storage for a while
therefore I have forgotten my login password to my windows xp. Is there
anyway to reset this myself? I despirately need this computer.... more >>
Multiple columns in listbox
Posted by John at 3/16/2008 10:07:31 PM
Hi
Does listbox in vs2008 support multiple columns? I have not been able to set
the column widths property to 10, 20, 30 for instance as it expects an int32
value.
Thanks
Regards
... more >>
ComboBox DataBinding 1/2 working
Posted by Steve K. at 3/16/2008 5:16:40 PM
I've got a strange situation here with a DataBound ComboBox. When I change
the selected item from the list my DataBound object is updated. When I try
to restore the data the item in the ComboBox is not selected.
Here is the relevant code:
<code>
public void SetAvailablePlans(List<Insuranc... more >>
Which control to use?
Posted by John at 3/16/2008 4:48:27 PM
Hi
I need a layout like this http://www.infovis.biz/listview.jpg which is an MS
Access list box. Which control in vs2008 allows me to do this? The list is
being filled from an underlying table.
I would appreciate a code example if possible.
Many Thanks
Regards
... more >>
Listbox populating problem
Posted by John at 3/16/2008 9:48:50 AM
Hi
I am populating a list box using the below code;
Dim MyResult As New DataTable
Dim MySQL As String = "SELECT <field list> FROM MyTable WHERE <some
condition> ORDER BY <some order> "
Dim MyAdapter As OleDbDataAdapter = New OleDbDataAdapter(MySQL,
DBConnection())
Dim MyDV As DataView
... more >>
Listbox questions
Posted by John at 3/16/2008 9:18:07 AM
Hi
I have a few questions regarding Listbox;
1. How can I fill Listbox from an access table with multiple columns?
2. How can I return the user selected (highlighted) items in a Listbox
individually?
3. How can I remove user selected (highlighted) items from a Listbox?
Thanks
Reg... more >>
taskbar grouping in XP/Home of open windows of one app when minmized ?
Posted by Bill Woodruff at 3/15/2008 4:24:30 PM
..NET 2.0 C# WinXP or Home SP2, all latest updates ... NOT an MDI
application.
In the scenario discussed here there is no "main form" : window management
is being done in code, and the first open form being closed does not
automatically close all the other forms (of course all opened form... more >>
service pack 2
Posted by matt23456 at 3/15/2008 12:23:01 PM
when i install service pack 2 it freezes during installation of cd or
download....... help? please?... more >>
Passing info to an open form
Posted by John at 3/15/2008 12:32:07 AM
Hi
How can I pass some text info to my start-up form from an external sub in a
module?
Thanks
Regards
... more >>
Application freeze during query
Posted by Gabriel at 3/14/2008 3:30:58 PM
Hello,
I have an application connected to a database when I execute a query
(SqlCommand/SqlDataReader).
When I execute my application impossible to move the form during query
execution.
I tried to implement BeginExecuteReader and EndExecuteReader but no change.
Do you have an idea ?
... more >>
display data in gridview
Posted by Paul at 3/14/2008 1:06:01 PM
Hi I am using vs 2005 and have a simple windows application. I put a
gridview on a form and used the wizard to build a connection string
(the wizard placed it in the app.config file). For the dataset I selected
a stored procedure
that requires no input. I tested the connection and it wor... more >>
|