all groups > dotnet windows forms > august 2004
Filter by week: 1 2 3 4 5
Incorrect SQL conversion into String::Format statement.
Posted by Przemek at 8/31/2004 8:27:08 PM
Hi
A problem is - how can I make that statement correct? - I would like to
SELECT somenthink like that:
String *SQLstatement = String::Format(S" SELECT * FROM Table WHERE Date =
{0}", DateTimePicker1->Value->ToShortDateString() );
There is a String statement (*SQLstatement) so I concaten... more >>
DataGrid question
Posted by rob willaar at 8/31/2004 7:38:36 PM
I use the datagrid to display the results after a db search.
But i like only entire rows (not cells) to be selected, and when somebody
doubleclicks somewere on a row to have a doubleclick event for that row.
... more >>
scrollbar problem..
Posted by Paul Lo at 8/31/2004 4:57:58 PM
Dear all,
I'm writting a .net winForm application with C#, but I'm getting the
following exception when the user scrolls a scrollbar. The strange thing is
that the exception happens only some of the time, and seems pretty random.
However, once an exception occurs with a scrollbar and when I... more >>
Find control on inherited form from base class
Posted by TS at 8/31/2004 4:36:32 PM
I have a base class that has a form that inherits from it. On this form is a
control I need to get a handle to. How do I get this handle from the base
class? I don't have a FindControl that i've been able to get intellisense on
like I do in a web form.
thanks for any help!
... more >>
Work Offline Solution Needed
Posted by Daren Hawes at 8/31/2004 3:14:01 PM
Hi am about to create a N-Teir Solution Using SQL Server 200 as the
Data Teir, XML Web Services as the Business Layer and Winforms as the
presentation layer.
I will be using Datasets that will peridically update the data back to
the SQL Database.
I wish to implement a Work Offline feature.... more >>
Adding an 'internal' control to the toolbox.
Posted by Chien Lau at 8/31/2004 1:56:59 PM
I frequently define internal UserControl-derived classes in my WinForms
apps:
internal class MyUserControl:UserControl{
...
}
I'll often need to embed these controls in a Form, whose class is
contained in the same assembly as the control. As far as I know, the only
way to do t... more >>
Tab Control ComboBox
Posted by Jeff Haumesser at 8/31/2004 1:41:06 PM
Here's one!
I have a Tab Control that consists of 4 Tab Pages. These pages will be
removed and added as needed as the user checks and unchecks certain
checkboxes.
On the Form_Load event, I am calling routines that populate the various
ComboBoxes List's that are contained by these Tab Pa... more >>
Printing Graphics.PageBounds not accurate
Posted by Gregg Walker at 8/31/2004 12:58:57 PM
Hi,
I'm writing a check printing program that needs to put a MICR line 6/16" from the bottom of the page. Since the checks will be
printed on a laser printer using letter sized paper the printable area is not actually 8 1/2" x 11". I'm using an HP LaserJet 4000
and it cannot print all the w... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
WebClient Timeout
Posted by Paul J. Lay at 8/31/2004 11:30:13 AM
I have an app that is working well. It uses the weblclient class uploaddata
method. Recently the server overhead increased causing communication
timeouts to occur. How can I increase the client recv timeout value to get
around this problem. Thanks for your help on this.
Best Regards,
Pau... more >>
MDI application design
Posted by Tod Johnson at 8/30/2004 10:31:41 PM
Hello,
I have created Application that has MDI interface. Indeed application
works as it should, but I have question related to its design.
Assume my application can change Zoom state of the opened document from
the toolbar (toolbar for all opened document is the same). Which
component o... more >>
Does global declarated "iexplore.exe" exist?
Posted by Przemek at 8/30/2004 9:52:06 PM
Hi.
I've got a little not typical problem right here.
I would like to open using InternetExplorer ("iexplore.exe") my link from my
application. I do it like that:
System::Diagnostics::Process::Start(S"iexplorer.exe", S"www.wp.pl");
And it works, but problem is - I have to check does "iexpl... more >>
Can you intercept click event?
Posted by Seeker at 8/30/2004 8:49:45 PM
Hello,
I am trying to control tooltips in my winform. I want to only turn them on
when the user chooses a menu item called WhatThe. When they do I change the
form's cursor to Cursors.Help and activate the tooltip. The problem is I
don't want the user to actually be able to interact with the fo... more >>
show dialog just after a form is shown
Posted by lukasz at 8/30/2004 6:07:46 PM
Is there an equivalent of OnShow event for forms? I want to open a file open
dialog immediately after my form is shown (modelessly). OnLoad and
OnVisibleChanged do not suit me since it shows the file dialog before
showing my form. Any ideas?
... more >>
some forms are truncated on specific machine
Posted by giatorta NO[at]SPAM hotmail.com at 8/30/2004 2:41:33 PM
Hi all,
I have a WinForms application which works well on several machine, but
shows truncated forms on a specific machine
such machine has the same configuration as the others: Win2000 Pro SP3
and .NET Framework 1.1
Anyone has a hint?
I have found only one message on this newsgroup on t... more >>
A generic error has occured in GDI+
Posted by Dante at 8/30/2004 10:17:03 AM
Hi,
I have written a winforms program for a production environment. It runs
24/7. After a few days (2 'till about 10 days) i receive the following error
(stacktrace included). The user sees red boxes with crosses in it and has to
restart the application.
I frankly don't have a clue about ... more >>
ScrollBar In LidtView Detail
Posted by Yura Moldavanov at 8/30/2004 10:09:40 AM
Hello, Everybody!
I have problem in myListView control, inherited from ListView Class
I try to calculate width of some Column in LisrView (Detail) when after
resizing.
For this purpose I override OnResize method (see code below)
if I extend width of the MyListView - That's All OK.
BUT if... more >>
MessageBox Result - pressed buton.
Posted by Przemek at 8/30/2004 8:46:46 AM
Hi.
I have MessageBox likt that:
MessageBox::Show(S"string1",S"string2", MesageBoxButton::YesNo,
MessageBoxIcon::Error);
How can I get result of pressed button from that MessageBox - I trying to do
something like that:
if(DialogResult::Yes == MessageBox::Show(......))
{
......
}
... more >>
populate treeview with dataset
Posted by homer at 8/30/2004 7:51:06 AM
Could any body point me to a good example of populating windows treeview
control from parent/child nested dataset?
Thanks!... more >>
Selecting a combobox item when textchanged event fires...
Posted by Greg Allen at 8/30/2004 7:41:00 AM
I have an odd problem with a combobox and selecting an item in it.
I have a combobox that has handlers for both SelectedIndexChanged and
also TextChanged. In the TextChanged handler, if the text matches one of
the items in the combobox, the SelectedIndex for the combobox is set to
that item. ... more >>
ComboBox No Selection
Posted by HKM at 8/30/2004 7:17:03 AM
I'm currently populating combobox from one of the sql server tables (data
binding). The combo box selection is optional i.e. user can either choose a
value from the combo box or decide not to put any value for it. When I do the
data binding combo box comes with default selection (first value i... more >>
SelectedListViewItemCollection problems
Posted by Tomasz Zaniewski at 8/30/2004 2:05:02 AM
Hi All,
I understand that to get the items that are selected in a listview, you read
the SelectedItems porperty of the list view.
The type of this property is SelectedListViewItemCollection, and this type
is meant to be defined in System.Windows.Forms.dll. But whenever I try use
this ty... more >>
Embedding Forms
Posted by Bruce at 8/29/2004 1:39:03 PM
I would like to design a number of separate forms in Visual Studio,
and then at runtime embed them into an area of another form (without
borders and title bars of course). The forms will all be placed in the
same area on the main form, and which forms are used is dependent on
navigation choices ... more >>
oleDbDataAdapter/DataSet - data to ListView.
Posted by Przemek at 8/28/2004 8:10:43 PM
Hi.
1. Have u got any solution to add data from DataSet or oleDbDataAdapter to
ListView control, with no adding row after row but complex (big part of
data) like with DataGrid control?
2. How can I add row after row from DataSet?
3. Is reader make read operation with SQL statement, to take ro... more >>
cannot move usercontrols in design time using mouse
Posted by sahridhayan at 8/28/2004 12:11:01 PM
hi all
i have created some usercontrols which contains a list fo controls, when i
pick from toolbox and place in a form and then i cannot move the control
anywhere else using mouse and by i can by CONTROL + DOWN OR UP keys
any where i m missing ?
regards
sahridhayan
... more >>
MdiChild to Normal Window and Back!
Posted by rcl58 NO[at]SPAM iglou.com at 8/28/2004 11:28:45 AM
I have read you can change a form to MdiChild or from MdiChild back to
a normal form during run-time. I need to toggle a form between the
two.
If Me.IsMdiChild Then
Me.MdiParent = Nothing
Else
Me.MdiParent = Me.Owner
End If
Me.MdiParent = Nothing works but Me.MdiParent = Me.Owner o... more >>
hiding "highlighting cursor" in textbox
Posted by sahridhayan at 8/28/2004 10:07:01 AM
hi all
i am writing a control using textbox, up on keypress i make the program to
point to a list of values to select from a textbox, but textbox contains a
highlighting cursor which i want to hide, but i want to receive all the
keystrokes pressing and my textbox.text value should have all... more >>
display "dropdown list" outside borders of control
Posted by adam NO[at]SPAM twv.org at 8/28/2004 8:53:12 AM
hi
I am trying to build a custom combobox type of control. I am not able to
inherit from System.Windows.Forms.Combobox, as I need to override
OnPaint, to draw a custom version of the fixed (not dropdown) part of the
control),
so therefore am deriving from control.
How can I cause the lis... more >>
Is there any way to put button or control on title bar??
Posted by naveed siddiqui via .NET 247 at 8/28/2004 5:56:57 AM
Hi everyone
I m trying to create a dockable tool window, with similar=
behviour as does the ClassView or SolutionView etc=2E of VS=2ENEt, I=
need to make these windows "Pinnable" with a pin button on thier=
title=2E I know there is a workaround of using form Icon as pin=
button instead of h... more >>
Tabs on Top Right in TabControl
Posted by Adam Brown via .NET 247 at 8/28/2004 5:56:36 AM
How do I get the tabs to draw themselves on the top right in the tab control.
I have looked at the tabcontrol.alignment but it only has top OR right.
I have tried changing the Left and Right properities of the tab when it's being drawn but they are read-only properities.
Thanks,
--------... more >>
how to bind data to windows checklistbox
Posted by Maddy Balakrishnan via .NET 247 at 8/28/2004 5:48:51 AM
(Type your message here)
--------------------------------
From: Maddy Balakrishnan
Hi,
I have the same problem but i'm using windows checklistbox in vs2003.net. But i can't find a properties datasource, displaymember.. as we have in combobox.... pls help me .. thanks in advance..
-----... more >>
VB.NET CREATING EVEN WHEN FORM CLOSES
Posted by Scotty B via .NET 247 at 8/28/2004 5:44:30 AM
Hey all, I have a situation.
I am new to .NET and am having trouble trying to get the right syntax for something that is probably simple.
I have a simple program that has a Timer. When the program loads, the timer starts. When the program is shut down ("X" or whatever) I want it to take the ... more >>
Is Forms.Timer multithreaded or...?
Posted by Bryan Cool via .NET 247 at 8/28/2004 5:41:48 AM
I have a C# app with a child window (let's call it WindowY) and a=
PropertyGrid (the PropertyGrid is also a child of the app, not a=
child of WindowY)=2E I used to have a System=2EWindows=2EForms=2ETimer=
that would trigger a call into a C++ DLL (in the DLL is some=
code to paint WindowY)=2E... more >>
Child panel control doesnt receive events
Posted by S Dabke via .NET 247 at 8/28/2004 5:40:04 AM
Hi!
I have a panel control where i need to handle certain mouse=
events=2E I place a panel on the windows form and test it =2E=2E=2E it=
works=2E Superb=2E Now i put this panel inside another panel (in a=
container), thereafter the message handling doesnt work=2E Why??=
any help is apprec... more >>
vb.net
Posted by vipin sharma via .NET 247 at 8/28/2004 5:39:27 AM
(Type your message here
how to make events in vb.net
--------------------------------
From: vipin sharma
-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)
<Id>eW7BEYJ8/EiV4nIzcNob/w==</Id>... more >>
MDI child maximize problem
Posted by ADM via .NET 247 at 8/28/2004 5:33:27 AM
(Type your message here)
I have a MDI application with several child forms=2E At intial load=
all the child forms have their WindowState property set to=
Maximized=2E To switch between child forms, I am using a Window=
menu item whose MDIlist property is set to true=2E My problem is=
that w... more >>
Dispose a managed object
Posted by Gravy at 8/27/2004 4:17:42 PM
Hi there,
can someone clarify something for me please? I have a windows form class
that contains a Font private member which is initialised (new'ed) in the
forms constructor. The font is used in formatting a richtextbox control.
Do I have to dispose of the font member in the forms Dispose me... more >>
datagrid : navigation keys
Posted by jjj at 8/27/2004 2:10:48 PM
hi,
I have a derived DataGridColumnStyle, with a custom textbox. If i press left
or right navigation keys, the custom textbox losses focus and move to other
cell, instead of moving position between the character in the textbox
(editing).
Tried to intercept navigation keys by overridin... more >>
PropertyGrid and nested property
Posted by Chris Dunaway at 8/27/2004 12:15:50 PM
I have a custom control derived from button. One property is an instance
of the following simple class, which is used to paint the button with
different colors:
Public Class Style
Private _ColorStart As Color
Private _ColorEnd As Color
Private _ColorHighlight As Color
Pub... more >>
Listbox - Picture to the left of the text how?
Posted by Jim at 8/27/2004 12:09:59 PM
Hello!
I am creating a windows forms application using vb.net 2003, and was
wondering, how can I display an image in each line of the listbox to the
immediate left of the text? It should look like the URL address looks in
internet explorer with the web page icon next to it... It will be t... more >>
How to install an app on a network etc...
Posted by james at 8/27/2004 10:47:58 AM
I have a windows forms app which I would like to install to a shared drive
and folder so that all the machines on our intranet can access it and run it
without me having to go around to every machine in the building to run the
install program. I deffinatley do not want 500 copies of all the file... more >>
Access the ComponentTray
Posted by Joris Laperre at 8/27/2004 12:39:05 AM
Hi,
I'm writing an add-in that adds controls to a form at design time. I got
this working for visible controls on the form by getting an IDesignerHost for
the form, and adding to the Controls collection of the RootComponent, but
this doesn't work for components in the ComponentTray (I want ... more >>
TextAlignment problem in Buttons
Posted by sunil NO[at]SPAM volcanomail.com at 8/27/2004 12:21:35 AM
Dear All,
On one of our client machines the button Texts are all
Left-Aligned, while it is Centre Aligned in the code...we are not able
to reproduce this problem onour machines...what can be the problem?
Please help...
TALIA
Many Regards
Jack... more >>
Return file as string
Posted by Microsoft at 8/26/2004 6:59:04 PM
Is there a way in vb.net to have the user browse to a file and return that
file's name and path as strings?
... more >>
Read stream one line at a time
Posted by Microsoft at 8/26/2004 6:39:21 PM
I am trying to use the openfilediaolog to open a file and read it one line
at a time.
openfiledialog returns a stream and from what I can see, streamreader is the
only way to read a file one line at a time
Anyone offer some guidance as to how to get around this.
... more >>
newbie and DrawImage
Posted by Dan at 8/26/2004 5:29:54 PM
My application has a form which should display an image at an arbitrary zoom
factor, and optionally draw other images (like layers in Photoshop) onto the
'base' image. The easiest way I can think of could be e.g.:
----OnPaint handler:
// keep into account scrollbar position
g.TranslateTransfo... more >>
Add Root Nodes to tree view
Posted by Mark Broadbent at 8/26/2004 5:25:36 PM
Ive got an app with a treeview and to add a new node I have a context menu.
My code will add a new node as a child of the currently selected node.
If no node is currently selected (or the tree is empty) then a root node is
created to the treeview otherwise it is created as a child to the current
... more >>
Attributes of properties
Posted by Joey Callisay at 8/26/2004 5:12:50 PM
I'm experimenting with the attributes.
I overrided the Dock property of my control and set a new
DescriptionAttribute. However I was surprised that it still has the
CategoryAttribute since it is still included in the Layout group, meaning it
still has its previous attributes?. Is this the re... more >>
Image Property on PropertyGrid
Posted by Chris Dunaway at 8/26/2004 4:14:04 PM
I am using the PropertyGrid and I have set the SelectedObject property to
an instance of my custom class. One of the properties of the custom class
is a bitmap.
The PropertyGrid lets me assign a bitmap ok, but when I want to delete it,
I cannot do it.
For example, in Visual Studio when... more >>
Async Delegates, CallBack and UI Thread
Posted by dm_dal at 8/26/2004 3:36:30 PM
Gentlemen,
My question is simple. When my WindowsForm calls an Async Delegate which
has a registered CallBack, is the CallBack always executed on the UI Thread?
Or, do I need to test to see if it is?
In my application (MDI), I have a main form that launches another form.
When that child form... more >>
An open source drive space viewer
Posted by Simon Harvey at 8/26/2004 2:04:26 PM
Hi all,
I am looking to make an open source Drive space viewer. One that displays
the sizes in a graph and lets you move through the directories via a
treeview at the left.
I have three questions i hope someone could help with:
1. The problem I have is tallying up the directories and ... more >>
|