all groups > dotnet windows forms > august 2004 > threads for august 15 - 21, 2004
Filter by week: 1 2 3 4 5
ToolBarButton image not recognizable when setting Enabled property to false
Posted by Klaus Bonadt at 8/21/2004 8:43:32 PM
I use VS .Net 2002 and a C# project.
When I set ToolBarButton.Enabled to false, the corresponding icon is just
gray. I mean it is not grayed a little bit in a way that you have the chance
to recognize the underlying image, the image is completely hidden. This is
very ugly, not user friendly and ... more >>
Determine if form is closing in textbox Validating event
Posted by JR at 8/21/2004 12:21:18 PM
Hello,
I have a textbox in a form in which I would like to validate the user data.
If it is too long I want to pop up a messagebox. Here is the code:
private void txtDesc_Validating(object sender,
System.ComponentModel.CancelEventArgs e)
{
if (txtDesc.Text.Length > 60)
{
... more >>
String Literal
Posted by B Spencer at 8/21/2004 9:55:02 AM
Where is a string literal (say "test") stored, the stack or managed heap? I
know a string variable is stored in the managed heap.
In determining the toolbar button clicked in the button clicked event, which
is more efficient:
Select Case tbrMain.Buttons.IndexOf(e.Button)
Case 0
... more >>
MDI Child forms and menus...best practice?
Posted by Bob Rundle at 8/21/2004 4:12:48 AM
I working with an MDI application. This application has many child form
which have common menu operations.
For example ChildFormA supports Cut/Copy/Paste.
ChildFormB also supports Cut/Copy/Paste using completely different
semantics.
Now...
I could add an Edit menu to each child form. ... more >>
anchor or docking
Posted by TomislaW at 8/20/2004 1:03:57 PM
I have Winform with 3 groupboxes
One on the left one in the middle and one on the right size of the form
Each groupbox have datagrid
Problem is when I resizing form I can not see groupbox and datagrid in the
middle
How should I set anchor and docking so I can resize my form and see each... more >>
Tab and Arrow Keys don't work on modeless c# form.
Posted by RapidFireBill at 8/20/2004 11:47:01 AM
My modeless c# dialog is launched from a VB6 application. The tab and arrow
key events are not being recieved by my modeless dialog. I think the VB6 app
is consuming my keyboard events. How can I intercept keyboard events and
rebroadcast them to my modless dialog?
--
<_/\_>... more >>
underline character in menu item text
Posted by ryang at 8/20/2004 10:17:02 AM
Hi,
Have anyone seen this problem? I just started developing Windows Forms
application in Studio .NET 2003. I started a new C# windows application,
added a new MainMenu to the app and menu item File. In the Designer, I
located the text property for File in the property box and entered &F... more >>
Painting Control issue by Muti-Thread!!
Posted by GoodMorningSky at 8/20/2004 9:22:57 AM
Hi, all
This is common problem when muti thread update an control.
My app create threads that each thread transfers data from different server
and display the status on the datagrid bound to DataTable obj.
Most of time the number of threads are more than 100.
Which means more than one hundr... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Performance Problems with Probing
Posted by Jediah L. at 8/19/2004 9:51:59 PM
1. In our application which uses NTLM; .Net always requests a file as
Anonymous before requesting it using the NTLM authenticated credentials - in
an application with over a million hits a day - this is quite a bit of extra
posting going on. Anyone know how to stop this?
2. Even when supplyi... more >>
Multi-column Sorting in Listview
Posted by Manjunath M V at 8/19/2004 9:06:33 PM
Hi,
Is there any sample available for implementing multiple column sorting
in .net listview control? My requirements are as follows:
1. When the user clicks on a column, the list view content should be
sorted based on this column. Now if he holds a Ctrl key and then presses
another column, a ... more >>
check whether the PC is online using vb net
Posted by Sharon at 8/19/2004 4:58:15 PM
Hi everyone, Is there a way to check if a pc is online using vb net? Thanks
in advance for any help that you can give me.
Best Regard
Sharon
... more >>
Disabling Wordwrap in RichTextbox
Posted by Jay Ayliff at 8/19/2004 4:53:56 PM
I've tried everything I can think of to disable wordwrap. Here's the code
that sets up my RichTextbox rtfSQL:
With rtfSQL
.AcceptsTab = True ' Tab is a valid character, not a command to go to
next control
.RightMargin = .MaxLength ' Stop wordwrap
.WordWrap = False ' Stop wordwrap... more >>
Multiple Event Handler Hierarchy
Posted by Steve at 8/19/2004 4:13:02 PM
Hello,
Hopefully this is a simple question: I have a Form with a Button and that
button has a "Click" event handler. The button is marked as protected (not
private). If I inherit from the form and assign the button another Click
event handler in the derived class, will the base class hand... more >>
Is there a way to embed a dropdown combo box into a menu or toolbar?
Posted by Tom Jones at 8/19/2004 4:08:37 PM
Is there a way to embed a dropdown combo box into a menu or toolbar?
Thanks,
TJ
... more >>
Manage new window from MS WebBrowser control
Posted by swiftlizard NO[at]SPAM hotmail.com at 8/19/2004 2:42:00 PM
Hi,
I have a WinForms application written in C#, in which I am using an
embedded Microsoft WebBrowser ActiveX control. Based on certain
events, I need to open a window from the browser control, something
like (in javascript) -
window.open("http://www.google.com,"","top=0,left=0,location=no,me... more >>
Datasets? Properties? Values?
Posted by Charles A. Lackman at 8/19/2004 2:37:23 PM
Hello,
I have been working with an application that sends a dataset to other forms
that are called from individual DLL's.
I have noticed that, a dataset that is passed to another form, when changed,
changes the dataset in all of the forms.
But, if you send a string to the other forms, that ... more >>
Detect Change in PC Name
Posted by anonymous NO[at]SPAM discussions.microsoft.com at 8/19/2004 11:55:04 AM
Is there a way to detect if the computer name has been changed in .NET?
... more >>
Microsoft Web Browser & binarywriter
Posted by Ken Beard at 8/19/2004 11:51:05 AM
I have a byte array (byte() loaded from an image from a SQL Server database,
this could be a pdf, doc, an image type, etc.) and I have a Microsoft Web
Browser control on my form I want to be able to send the Microsoft Web
Browsercontrol the array of bytes and let it load, now I know how to use... more >>
Background color looping
Posted by mortb at 8/19/2004 10:51:17 AM
Hi
I want to loop the background color on my "about" form.
This is the code I've tried to use. It doesn't work.
The about form newer shows up. I thought Application.DoEvents(); would allow
the form to show
help appreciated!
/mortb
private void frmAbout_Load(object sender, System.EventArgs... more >>
DataSet.HasChanges() always returns false even though there are changes
Posted by mzam at 8/19/2004 9:22:22 AM
Hi All,
I have a set of textboxes bound to a typed dataset (ds1). This dataset
contains one table which contains only one record.
This is an example on how I do the binding for the textboxes:
txtDescription.DataBindings.Add(new Binding("Text", ds1.ShareClass,
"Name"));
When I am about ... more >>
Bizarre OnLoad Behavior with Modal Form
Posted by ctramen NO[at]SPAM earthlink.net at 8/19/2004 9:12:53 AM
I have a modal form that takes a typed dataset and binds some of its
comboboxes to it. Before i call ShowDialog() the dataset is just fine.
In the OnLoad event the dataset is null. This is driving me crazy.
Any help would be greatly appreciated!
Skeleton code below:
class MyForm : System.... more >>
Suppressing enter event
Posted by Pete at 8/19/2004 8:09:04 AM
Framework 1.1
How can I trap the enter event prior to it's being
raised and if need be suppress it?
Thanks in advance for your help,
Pete
... more >>
Docking vs. Anchoring
Posted by marc at 8/19/2004 6:49:03 AM
If there the same functionality is rendered with Docking or Anchoring should
one be chosen over another?
Docking tends to be faster at design time while anchoring allows non-zero
spacing which eliminates the need for spacer panels.
Any thoughts?
Thanks,
Marc... more >>
Problem with combination SSL and Proxy
Posted by Benjamin at 8/19/2004 3:27:02 AM
Hi!
Our .Net Windows Form Application accesses 2 web services (over Internet).
1 web service is configured as SSL, and 1 without.
The SSL web service methods are accessed after first setting the .Credential
object on the web service object -> Successfull.
We are now up to install our nic... more >>
Create a control
Posted by Boni at 8/19/2004 2:55:02 AM
I have make a class derived from the System.Windows.Forms.Control class
I have write this method,
protected override void OnPaint(PaintEventArgs e)
{
Pen myPen = new Pen(Color.Black, 1);
e.Graphics.DrawEllipse(myPen, 10,10, 8,8);
SolidBrush Colore=new SolidBrush(Color.Red);
e... more >>
Plug-In Architecture
Posted by TusharP at 8/18/2004 7:27:57 PM
Hi,
Before asking my doubt, first I want to tell you about my application
structure. I want to design a Client Desktop program, which has an MDI form.
This MDi Form has one Horizontal Toolbar. Button of Toolbar get added
whenever it find Plug-in dlls in "Plug-In" directory. Now this Plug in dll
... more >>
Crystal Reports: Selecting PaperSource
Posted by Tim Doege at 8/18/2004 4:39:57 PM
Is it possible to select the paper source for a printer when printing using
the ReportDocument-class?
It is possible to set the PaperSource property in the PrintOptions-class of
ReportDocument and use one of the PaperSource Enumeration values
like "Auto" or "Cassette":
CrystalDecisions.... more >>
Serialization disaster
Posted by RichM at 8/18/2004 2:43:03 PM
I have a class that once used the [Serializable()] attribute for simple
serialization. I decided that I wanted to take control of how the
serialization happens by implimenting ISerializable. I backed up my
serialized file and was hoping to deserialize the old way and serialize the
new way in... more >>
Client proxy settings when using "automatic configuration script"
Posted by Benjamin at 8/18/2004 1:51:59 PM
Hi!
You can read in http://support.microsoft.com/default.aspx?kbid=307220
following:
"The .NET runtime does not, however, support automatic proxy discovery
scripts."
I am working with a customer that IS using a complex "automatic
configuration script" (see Internet Options/Connections/LAN ... more >>
Managed WebBrowser Control
Posted by ikaur NO[at]SPAM claritas.com at 8/18/2004 11:43:54 AM
Hi
I am trying to do my own implementation of IInternetSecurityManager
using managed WebBrowser control. C# Beta documentation suggests that
"To use this feature, implement classes that inherit from the
WebBrowser and WebBrowser.WebBrowserSite classes. The WebBrowser
ActiveX control uses the... more >>
ShowDialog() causes SEHException in MDI Application
Posted by CKone at 8/18/2004 5:57:02 AM
I'm working on a CRM app in which MDIChildren occassionally have to call
forms using .ShowDialog(). However, this almost always causes an
SEHEXception, which causes the entire app to collapse.
Anyone come across this and/or got any suggestions?
David... more >>
Desaturate a System.Drawing.Color value
Posted by Etienne Boucher at 8/18/2004 3:50:13 AM
Anyone has a quick way to desaturate a single Color value?
Etienne Boucher
... more >>
List Box
Posted by Bill Partridge at 8/18/2004 1:47:03 AM
I have a list box that contains 4000 + lines that I have imported using the
fileopen function etc.
Once I have the data in the list box, I want to scroll through the lines in
the list box displaying the contains of each line in a text box that is on
the form. My command button scrolls thro... more >>
Multiple References and Object Instantiation??
Posted by Charles A. Lackman at 8/17/2004 5:19:35 PM
I am working on a application that has many custom made dlls. Actually, for
this app each dll is a different form. I am able, with no problem to
reference and instantiate them to use their public properties and methods
with no problem. But, if one dll is trying to access another dll's
propert... more >>
vb6 to vb.net
Posted by han at 8/17/2004 5:00:22 PM
There is a VB6 project which have some forms, now I want convert to VB.net
project by use the VS.net tools. but when showdialog other form ,all form
disappear. this thing random happen.
this appliction one form to the other form by "showdialog",thank you !
... more >>
String.Replace Performance
Posted by Jay Ayliff at 8/17/2004 1:08:55 PM
I have to do a series of about twenty string.replace operations on a long
string, like this:
BigString = BigString.Replace(FromText, ToText)
BigString won't contain FromText every time, but I can't tell in advance
which ones are there and which are not.
My question is this: Am I be... more >>
Applying Different Visual Style
Posted by George Economos at 8/17/2004 12:14:00 PM
Is it possible to use a different visual style than the one xp is
using in a winforms application?
Thanks,
George Econmos... more >>
Resize/Scale/Anchor problems
Posted by Tim Mulholland at 8/17/2004 12:02:53 PM
I'm having some weird issues when trying to use the Scale() method and
anchoring.
Here's the scenario.
I have a form. This form contains a user control. This user control contains
a button.
The button has all of its anchorstyle properties set (so its anchored on all
4 sides).
The form's resiz... more >>
User control in Windows Forms
Posted by revere at 8/17/2004 11:59:22 AM
Hi,
I created a user control and added it in a Windows Form. It was working in
the designer mode fine until recently. When I open the form in the designer
mode, it throws the following error message:
An error occurred while loading the document. Fix the error, and then try
loading the docum... more >>
Get a reference to windows directory ?
Posted by JezB at 8/17/2004 11:48:15 AM
There is no enumeration for the windows directory in SpecialDirectories, how
can I get the windows directory path ?
... more >>
Newbie: how do I run change controls on winform from Main method?
Posted by mortb at 8/17/2004 11:36:13 AM
Hi,
I want to be able to run a winform from the command line both with and
without arguments
When I create the winform visualstudio I get a main method looking like
this:
STAThread]
static void Main(string[] args)
{
Application.Run(new Form1());
}
If I get some commandli... more >>
MSGBOX: how to change its back color ?
Posted by Antonio Lopez Arredondo at 8/17/2004 11:07:55 AM
can this be done, or all of them have to have a grey back color ?
thanks in advance,
ant
... more >>
RichTextBox formatting losing format when I append text
Posted by JezB at 8/17/2004 10:02:19 AM
I have a RichTextBox that I am formatting with colours/fonts etc. But
whenever I append some text on the end it's losing all formatting, eg:-
output.Text += "some extra text";
This reverts the existing text to the base colours/font even though I have
previously applied and seen the corre... more >>
Drawing toolbox ?
Posted by JezB at 8/17/2004 9:56:17 AM
I can't find a drawing toolbox in windows forms - how can I draw lines,
squares, circles etc on my form surface ?
... more >>
Timers not fireing System.Windows.Forms.Timer and System.Timers.Ti
Posted by Tim at 8/17/2004 9:33:04 AM
I have a problem with a Winform application (VB.Net) that timers just stop
firing.
I first used System.Windows.Forms.Timer - which failed very often so I
replaced them with System.Timers.Timer and all appeared Ok till someone
started using two copies of the applcaition at the same time.
... more >>
ListView DrawItem/MeasureItem frustrations
Posted by sloppycode NO[at]SPAM gmail.com at 8/17/2004 9:28:40 AM
I'm trying to get DrawItem and MeasureItem working on a ListView, with
a view to drawing items in LargeIcon view. I've managed to get
DrawItem working okay, using the code below. My problem is with the
MeasureItem event. The event is only ever called once, and most
annoyingly, are never called w... more >>
ListView DrawItem/MeasureItem frustrations
Posted by sloppycode NO[at]SPAM gmail.com at 8/17/2004 9:24:54 AM
I'm trying to get DrawItem and MeasureItem working on a ListView, with
a view to drawing items in LargeIcon view. I've managed to get
DrawItem working okay, using the code below. My problem is with the
MeasureItem event. The event is only ever called once, and most
annoyingly, are never called w... more >>
Help with help :-)
Posted by Matthew at 8/17/2004 8:41:01 AM
Helo all,
I have problem with help window. I use simply command in button click handler:
Help.ShowHelp(this, @"C:\_CODE\CM\bin\debug\testhelp.chm");
when I press button, help window appears, but this window is opened ower my
main window and I can't show main window over my help. Moreover, hel... more >>
Adding Event Handlers
Posted by Ken Allen at 8/17/2004 8:05:37 AM
Is there no way via the IDE to add event handlers for other than the click
or changed events? If I double-click on a form it adds the load handler and
if I double-click on a specific control it will add a handler for one one
click or change, but I cannot find a way via the IDE to add other handle... more >>
Accessing Selected DataRow from DataGrid
Posted by Fleckman at 8/16/2004 9:47:01 PM
I'm having difficulty with identifying the selected DataRow in my DataGrid.
Here is the situation:
I have a DataSet with several tables and relationships between the tables.
This situation concerns a parent child table pair. I created a DataView for
my parent table. The child table is relat... more >>
TreeView with grey scrollbar while using WinXP style
Posted by Michael at 8/16/2004 8:50:58 PM
Hi,
My Windows application is using WinXP style. I have the following two lines
of code in my main form:
Application.EnableVisualStyles();
Application.DoEvents();
I have another form that I open as a dialogbox, with a TreeView. That
TreeView has a gray horizontal scrollbar (the vertical sc... more >>
AppUpdater restricted to localhost?
Posted by davidcbrown at 8/16/2004 7:56:05 PM
Is the AppUpdater restricted to localhost use? I have an application to
works fine retrieving updates from a virtual directory off of the default
web site, but when I try to create a deployment web site, I get the
following:
System.Net.WebException: The remote server returned an error: (407) ... more >>
Getting the Win32 FindWindow(ClassName) for a .Net Form
Posted by Alex Maghen at 8/16/2004 6:51:01 PM
Hi. I want to use the Win32 FindWindow() function and I want to use its FIRST
parameter, "ClassName" instead of its "WindowName" parameter to find a window
for a .NET Application.
I feel stupid but I can't seem to figure out 2 things:
1. What I create a Form in a VS.NET Windows Forms Appli... more >>
Why doesn't setting CurrentUICulture use new culture
Posted by TS at 8/16/2004 4:09:21 PM
I have seen from the samples that you set the CurrentUICulture then you must
open up a new version of this form and hide the old one. Is there a way to
make it so the current form that is showing automatically updates to the new
culture. Doing this will require you to some how get any values that... more >>
viewstate error, help!
Posted by Kevin Yu at 8/16/2004 4:06:11 PM
hi all
in a webform, there is a banner user control which dynamically construct the
navigation menu. by which I mean the menu item is added by code,
in a postback event, I got the following error for the controls' postback
event in the web form:
"Failed to load viewstate. The control tr... more >>
RichTextBox
Posted by CarrieWells at 8/16/2004 2:25:02 PM
I need to be able to edit the contents of a text SQL field as if the user
were in MS Word. The user needs to be able to not just input text but embed
images and spell check his work. His content has complicated formatting needs.
I thought I could use the RichTextBox control supplied in VB.Net... more >>
Sub-forms
Posted by Joris Dobbelsteen at 8/16/2004 2:09:52 PM
Hi,
What is the best way to show a 'form' inside another form.
Or could I better use a user-control?
I currently don't want MDI, rather a wizard-style interface...
- Joris
... more >>
Forward message to textbox
Posted by DancnDude at 8/16/2004 1:29:02 PM
How do I forward a mouse wheel event (or create one) for a textbox in C#?
I have a textbox that is within a tab page. The textbox is read-only and we
don't want to focus on the textbox because the cursor shows up, so we set the
focus on the tab page it is on. I can catch the MouseWheel even... more >>
Need some advice on forms and data
Posted by William Gower at 8/16/2004 1:00:13 PM
I am looking at designing an app in vb.net that will feature forms that have
tool buttons on them such as Add,Edit,Delete,Find,Next,Previous etc. When
the user opens the form (MDI child), I will grab the data from the table
into a dataset and pass it to the form. From then on until the form is
... more >>
Datagrid: Display latest populated row
Posted by homaneag NO[at]SPAM yahoo.com at 8/16/2004 12:01:19 PM
Hi all,
I'm using a datagrid to display some log entries. The entry populates
downward, and I want to show the latest one as it comes in.
i.e., I want the datagrid to scroll down automatically as a new row is
added to the dataTable.
however, I can't find the right event/method to handle t... more >>
ComboBox Databinding Problem with Text Property
Posted by Ryan Gregg at 8/16/2004 11:13:19 AM
Sorry for the cross posting, but I wasn't sure the best group to answer
this question.
I've been running my head into this bug for a while now, and I'm hoping
that someone out there has a good fix for it. It's a fairly simple bug
that really should have been caught previously, although I h... more >>
upon closing windows application - process continues
Posted by Sandy Ryan at 8/16/2004 11:07:02 AM
I have a windows application that gets installed using a installer program.
(it has crystal which requires this)
when I run the application - everything works.
I exit the application and the dlls continue to run in task manager
processes....
how do i kill them ---- I need to 'update' the app... more >>
BUG in ListView - throws exceptions when adding items
Posted by Greg Ennis at 8/16/2004 10:33:01 AM
There is a bug with the ListView control which is revelead when calling
Application.EnableVisualStyles(). To reproduce follow these steps...
- Create a new winforms app
- Add call to Application.EnableVisualStyles() before Application.Run()
- Add a ListView control and a button to the form
-... more >>
PropertyGrid CollectionEditor
Posted by Charles at 8/16/2004 9:33:06 AM
I have a collection as a property of a composite class. For example, if I
have an automobile class with a collection of cars.
If I program:
myPropertyGrid.SelectedObject = myAuto;
The property grid will display Cars | (Collection) in the propertygrid.
Is there a way to change the "(Coll... more >>
Advise on Real-Time update to column control
Posted by David Elliott at 8/16/2004 7:37:46 AM
I am not much of a GUI person and am looking for some insight.
I need to have a control that is multi-column and will allow for
real-time updating.
Any thoughts on controls, general steps or an example would be appreciated.
Thanks,
Dave... more >>
RichTextBox Control
Posted by Kasi at 8/16/2004 2:21:02 AM
Hai,
Is there anyway to disable the highlight the text means when you drag or
double click on the text, the text should not be highlighted.
I tried to call mousedown event and set focus to label control but it
doesn't help.
Thanks alot!!!... more >>
MS Outlook cool control question
Posted by Deanna Delapasse at 8/15/2004 10:04:39 PM
Hi,
MS Outlook has a cool control that's a combobox, a textbox and a label. The
combobox selection (marked with a check) shows in the label and the value
goes into the textbox. The control is used to select which TYPE of phone
number (home,mobile...) to allow the user to alter in the textbox.
... more >>
Working online
Posted by MajorTom at 8/15/2004 9:55:20 AM
Hello group,
I need to know the best and best responsive way to determinate is a windows
form (or the desktop computer) is online (access to internet).
I particularly interested for a quick check.
TIA
MajorTom
... more >>
|