all groups > dotnet windows forms > april 2007 > threads for april 22 - 28, 2007
Filter by week: 1 2 3 4 5
picking folder
Posted by Areq at 4/28/2007 9:21:31 PM
Hi,
How can I pick up root to folder via sth like
SHBrowseForFolder() or CFileDialog in mfc?
I cant implement it in windows application, but in mfc it works:/
I'd like to start doing my project in WF because I found it easier, am I
right? Now im starting to think if its true;)
I write in c++ ... more >>
Populate ComboBox items when user clicks dropdown
Posted by illegal.prime NO[at]SPAM gmail.com at 4/28/2007 8:54:56 PM
Hi all, I want to set up a ComboBox that will add all its items
whenever a user clicks on the ComboBox. I've tried doing it on the
MouseDown or OnClick events - but that seems too late. For example,
if the ComboBox previously had one item and then it ends up with two
items when the user clicks... more >>
PropertyStore does not contain a definition for Settings
Posted by Dale at 4/28/2007 5:56:01 PM
I have a Windows.Forms application in .Net 2.0 that has a Settings class. In
the main form, I can access the setting named LastAttributeList like this:
Properties.Settings.Default.LastAttributeList
In another form in the same application, when I try to access that same
setting, the v... more >>
Change UserControl on Form at run-time (VB)
Posted by Nick Locke at 4/28/2007 12:00:00 AM
Apologies if this is easy and I'm missing something!
I have a collection of User Controls (all inherited from the same root). I
have a form on which one of the controls is the user control ancestor (which
is great at design-time because I get all the Intellisense and so on).
However, at r... more >>
Need help on CAB
Posted by AVL at 4/28/2007 12:00:00 AM
I'm a new bie to cab...need some info on displaying a new child window using
CAB...
My requirement is to show a new form if I click on teh File menu option on the
Main Windows form..
So,I've created a shell with File -> New menu option...but and registered
a click event with the New men... more >>
CollectionEditor_-_Add/Remove_buttons_are_disabled
Posted by Dmitry Nogin at 4/27/2007 9:17:10 PM
Hi,
Could you please suggest me some changes?
I've got the following code, which represents the small component with =
collection property:
class Test : Component
{
private BindingList<Item> items =3D new BindingList<Item>();
=20
[Editor(typeof(CollectionEditor), typeof... more >>
A more functional CheckedListBox?
Posted by kilik3000 NO[at]SPAM gmail.com at 4/27/2007 11:41:50 AM
I have a requirement to create what is basically a checked list box.
Unfortunately neither the CheckedListBox or a DataGridView do exactly
what I need.
The reason for this is that I need the ability to enable/disable
individual checkboxes in the list. This feature is not there at all
on the ... more >>
Logging user activity
Posted by scott at 4/27/2007 10:47:18 AM
I would like to create a log file for my Windows forms app that logs
all user activity to help with debugging unhandled exceptions. I would
like to do this with a simple StreamWriter or TextWriter object.
Rather than define the object at the form level which would require me
to pass the object f... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Process.Start access not allowed for File
Posted by Jenbo at 4/27/2007 8:09:40 AM
Hi, I have a small client app which calls another application to do
some processing. So I use the following:
Process watcherProc = new Process();
watcherProc.StartInfo.FileName = @"C:\windows\system32\app2.exe";
watcherProc.Start();
This works fine as administrator but if another account tr... more >>
Active form
Posted by Luc at 4/27/2007 5:46:01 AM
Dear,
I'm currently working on a application which create reports on th fly,
my question, after the user select a report (frmReportlist), the form
(frmCrystalviewer) opens, a parameter popup is shown were the user select a
certain criteria for the report.
After creating the report, the fr... more >>
How to capture Item's event through an object of its collection in a form?
Posted by hemant at 4/27/2007 3:51:47 AM
There are two classes
1) Key - contains some private variables, one method "Reset" and one
event "valuesReset" which is raised by Reset method.
2) Keys - this class is collection of objects of class 'Key' and it is
inherited with ReadOnlyCollection(Of key).
I'm pasting the code here
Clas... more >>
position of toolStrips inside toolStripPanel
Posted by Ondrej Dobecka at 4/27/2007 12:00:00 AM
Hello,
it's there a simple way how to place (more) toolStrips INSIDE =
toolStripPanel, but NOT in a FLOW mode (which is standard), but simply =
in that place where I move it? So, simply said, I need move toolStrips =
freely inside toolStripPanel.
Thank you much for answer ...
Ondre... more >>
Cursor position when stepping through.
Posted by Jared at 4/27/2007 12:00:00 AM
Hi,
Does anyone know about any bugs or technique to 'reset' the code pages for
debugging and stepping through. I am sure that VS is showing the yellow
step through on the wrong line all the time. It seems to be ignoring a stop
statement.
Thanks
Jared
... more >>
SQL Instances (c#).
Posted by Ibrahim. at 4/26/2007 11:46:03 PM
Hello,
I want to display the running instances of SQL server in the drop-down list,
allow the user to enter username/password, if successfully connected i want
to display list of tables in another window.
is there any .Net framework assembly which I can use to retrieve running
instances ... more >>
Correction to that
Posted by GaryDean at 4/26/2007 6:13:19 PM
The actual event I'm subscribing to is...
AppDomain.CurrentDomain.UnhandledException += new
UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);
not the threadexceptioin as I put in the earlier message
--
Regards,
Gary Blakely
... more >>
Trapping Exceptions - another issue
Posted by GaryDean at 4/26/2007 6:09:59 PM
I'm trying to capture all unhandled exceptions in my Forms Application.
First I subscribe to ThreadException ...
public Form1()
{
InitializeComponent();
Application.ThreadException += new
System.Threading.ThreadExceptionEventHandler(Application_ThreadE... more >>
Cancel windows message from reaching parent
Posted by groganrj at 4/26/2007 10:20:03 AM
I am developing a set of controls that must function inside of an application
that loads them through COM interop (I don't believe that makes a
difference). The application is designed to always handled the "Enter" key.
One of my controls is a text box which needs to allow the user multiline
... more >>
BindingSource - how can I access nested member?
Posted by StanB at 4/26/2007 8:59:53 AM
I populate BindinSource with this collection:
=================
public class PreliminaryPickupRequest
{
private string shipper;
public string Shipper
{
get { return shipper; }
set { shipper = value; }
}
private Terminal pickupTerminal;
public Termi... more >>
cannot send emails with attachments from .NEt 1.1 using cdonts
Posted by sameer at 4/26/2007 7:08:05 AM
Hi all,
environment : windows 2003 using remote desktop, .netf framework 1.1 using
VB.net with Visual studio 2003
users log into the application over remotedesktop to windows 2003 server and
access the application.
the application lets the users send out emails of reports which have
att... more >>
String Comparing in Debug\Release modes
Posted by Jared at 4/26/2007 12:00:00 AM
Hi,
I have some code wich looks like so..
s1= "1.1.4"
s2="1.1.4"
if s1<>s2 then
myfunc
end if
Problem, is myfunc is being called in "Release" mode on one particular
developers machine, but above code work as expected in Debug mode or even in
Release mode on entire different machin... more >>
DataGridView custom cell - losing first character on edit
Posted by Richard Lewis Haggard at 4/25/2007 4:04:21 PM
I've created a RichTextBox DataGridView cell but the first character entered
when the cell is in display mode is lost when the cell makes the transition
to edit mode. What is the sequence of events that happens behind the scenes
when:
a) RichTextBox cell is displaying data and has focus.
b) Use... more >>
Trapping Exceptions in Forms apps
Posted by GaryDean at 4/25/2007 11:12:40 AM
In ASP.Net applications we are able to trap exceptions in the
Application_Error Event in the Global.asax with the following code...
System.Exception myException = new Server.GetLastError().InnerException.
Where do I trap this in a Forms Application?
--
Regards,
Gary Blakely
... more >>
Help to trap Datagridview cell keypress events...
Posted by profdotnet at 4/25/2007 10:50:57 AM
Hi
I seek help to trap .net Datagridview cell keypress events.
Thanks in advance.
Raftar.
... more >>
Strange problem with DataGridView AutoGenerateColumns
Posted by Barry Gilbert at 4/25/2007 9:04:00 AM
I have a DGV on a form that is bound to a BindingSource, bound to a business
object. The DGV has AutoGenerateColumns = False and I have created the
columns I want in the designer.
When I make any change to the code behind, even something innocuous like a
new line, and then switch back to th... more >>
Empty NumericUpDown
Posted by neva at 4/25/2007 8:21:22 AM
Hello,
I have a small problem ; I have found an alternate solution but I
don't like it.
The problem is simple, let's take a form, a numericUpDown inside and a
button that will show the value of the numericUpDown in a MessageBox
(or elsewhere, whatever).
Let's say you put '5' in the numeric... more >>
Form Editing Events
Posted by Sir Psycho at 4/25/2007 7:12:12 AM
Hi,
I'm designing a form and I'd like to know when a control has been
edited. I know how to get around this, by putting code behind every
control to see if theres a change and then set a flag, but thats a
waste of time and a lot of code to write.
I can see someone having a much more elegant... more >>
Detecting changes on a form
Posted by Sir Psycho at 4/25/2007 5:32:15 AM
Hi,
I'm designing a form and I'd like to know when a control has been
edited. I know how to get around this, by putting code behind every
control to see if theres a change and then set a flag, but thats a
waste of time and a lot of code to write.
I can see someone having a much more elegant... more >>
Export from Datagridview
Posted by thewiz at 4/25/2007 4:22:39 AM
I must be doing something seriously weird as I can't find anything on
what I need to do. I have a form that imports an Excel file into a dgv
(to preview the data) I then want to export this into an existing
table in a sql server database.
I can't find anything to do this direct from the dgv. D... more >>
Total Loss of control in VS.net 2005 code window
Posted by Elmo Watson at 4/24/2007 9:13:59 PM
I'm now consistently having a problem (shortly after SP1), that, heretofore,
only happened once in a while.
Now, I bring up the code window in VB.Net 2005 - and I loose total control -
I type in a letter or two (most of the time, it's only one), and the
intellisense seems to think that's al... more >>
Help! How to embed a "windows explorer" into a form?
Posted by Anderson at 4/24/2007 7:11:40 PM
Hi everyone,
I'm working on a program contains two "Windows Explorer" in one
form which allows people to copy files from one to another. I searched
in CodeProject and Google but only got some messages about how to make
a fake "Windows Explorer", not embedding one into a winform.
I also fou... more >>
"default" Desktop and Ctrl+Alt+Del
Posted by Alexander at 4/24/2007 5:24:03 PM
Hello,
I'm currently programming an application which is started replacing the
userinit.exe.
The code does the following.
When the user logs on the application is creating a new desktop
"newDesktop", then the original userinit is created at "newDesktop". So the
shell uses "newDesktop" as it... more >>
Opening Mailclient with MAPI
Posted by Christof Nordiek at 4/24/2007 3:41:32 PM
From my application, informations can be sendt by the user. Until now I'm
using
Process.Start("mailto:....)
This works very fine, but I get problems, when the preset content is to
much, because the length of the URL is restricted.
IIRC this also can be solved by MAPI, but I can't find any exa... more >>
do win forms have skins like asp.net?
Posted by tparks69 at 4/24/2007 1:30:05 PM
Can anyone tell me do winforms have skins and themes like ASP.NET 2.0? If
so, can you attach links to information on this subject? Thanks!... more >>
Send messages to other window
Posted by SushiSean at 4/24/2007 10:48:01 AM
Hello. I need send some commands to other window.
I did this before with VC++. So it work like this.
I found this window (for example cacl.exe have text “Calculatorâ€) then get
handle of this window and then send some windows messages on this handle.
My old code looks like this
HWND hw... more >>
DataGridView: last column can be made smaller but not bigger
Posted by RafGeens at 4/24/2007 8:58:04 AM
Hi,
I have a DataGridView control where the user can resize the columns. The
control is embedded inside a Panel. When clicking on and dragging the column
seperator to the right of the rightmost column, I can make the column smaller
when I move it to the left. If I try to move it to the righ... more >>
Re: How to avoid flicker when adding controls to a panel?
Posted by ClayB at 4/24/2007 6:41:55 AM
You can minimize the flicker using interop to suspend the painting
(which is different than suspending the Layout events). Here is a FAQ
link on this.
http://www.syncfusion.com/faq/windowsforms/Search/637.aspx
=======================
Clay Burch
Syncfusion, Inc.
... more >>
How to avoid flicker when adding controls to a panel?
Posted by Ralf Abramowitsch at 4/24/2007 3:40:56 AM
Hi,
I've got a flickering-problem when I try to add controls to a panel
(with flow layout) at runtime.
My code executes the following steps:
public void BuildView()
{
...
// suspend layout to not perform layout each time an item is added
mFlowLayoutPanel.SuspendLayout();
/... more >>
Datagridview and the Enter Key
Posted by Simon at 4/24/2007 12:00:00 AM
Hi all,
I have a datagrid that doesnt allow the user to edit. When the user
clicks a row, the whole row gets selected.
I'd like it so that when the user has a row selected and presses enter,
a new form is opened and passed data from the row.
At the moment, when I press enter, I can get ... more >>
Child form focus problem
Posted by Christer at 4/23/2007 10:56:18 PM
Hi all,
An application I am woking on consist of a main form. On the main form
there are several possible ways for the user to open a non-modal child
forms to display even more information.
The problem I am encountering is about loss of focus. Let's say here,
that initialization of the chil... more >>
Windows Form App and VPN
Posted by Bill Gower at 4/23/2007 2:42:44 PM
I have some clients who have users who reside outside of the company's
network. The company is going to allow remote access through a VPN on the
server for access to the SQL Server database. I want to have my forms app
which will run on the client machine to automatically open the VPN when t... more >>
mouse move
Posted by VJ at 4/23/2007 10:15:06 AM
I want to detect and receive a event to my MDI window when the moves outside
of the window.. I am unable to receive events.
I know there is a case of sending a manual message (George Shepherd's Win
FAQ) before opening Top Level windows or doing anything that take mouse
focus away from the M... more >>
OnPaint automatically call e.Graphics.Clear()?
Posted by gilbert NO[at]SPAM gmail at 4/23/2007 9:39:42 AM
Hello.
I have a question about OnPaint override.
For example, if i have the following code in my inherited form class,
private Brush _brush = Brushes.Black;
private RectangleF _rect = new RectangleF(0,0,100,100);
private int counter =0;
protected override void OnPaint(PaintEventArgs e)... more >>
Filtering key strokes
Posted by zed NO[at]SPAM trash-mail.de at 4/23/2007 8:10:25 AM
Hi,
having a card reader attached to the PS/2 keyboard interface, I would
like to filter the keyboard input, so that the input from the card
reader does not reach the GUI controls.
I tried setting KeyPreview=true on the form and catched all input with
the KeyDown event. In order to detect, ... more >>
ClickOnce & proxy authentification
Posted by ARobin at 4/23/2007 4:02:02 AM
We have developed a VisualStudio 2005 smart-client application which we
deploy using .NET framework 2.0 ClickOnce.
We are experiencing difficulties deploying in certain corporate
environments: clients that use proxy authentification simply cannot install
unless they disable the proxy which ... more >>
Forms and Labels
Posted by Allen Maki at 4/22/2007 8:19:02 PM
I wonder if you could help.
The event handler code below, will allow the user to change the phone number
and write it on a label of a message box. I want to replace the message box
with a dialog box.
Can anybody help me replace the message box below to a dialog box. In other
words. I wan... more >>
Catching Ctrl + Click on a checkbox
Posted by Boon at 4/22/2007 3:40:01 PM
Is it possible to identify when the Ctrl Key is down whilst clicking on a
checkbox on a windows form?
I have a checkbox on a User Control on a Tab on a windows form.... more >>
|