all groups > dotnet windows forms > january 2004
Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
ListView selected item position
Posted by RickN at 1/31/2004 4:06:41 PM
I would like to find an item in my listview items collection and have it
scroll to the 3rd visible item in the list and be marked as selected.
What's the best way to do this?
Thanks,
RickN
... more >>
Anyone found the reasoning behind this?
Posted by Brian at 1/31/2004 10:21:07 AM
listview display problem
Posted by john sun at 1/31/2004 8:24:04 AM
Hi,
I met a strange problem during playing listView control.
If I create the control following the InitializeComponent(), then it
displayed well at the beginning. If later on I want dynamically
change-remove all existing column headers and all items, add new header and
items, the listview con... more >>
Questions about binding textboxes.
Posted by Aaron at 1/30/2004 5:26:17 PM
I haveseveral textboxes which are being populated by clicking on a row in
a datagrid.
Dim CRI = DataGrid1.CurrentRowIndex.ToString
txtRegCode.Text() = DataGrid1.Item(CRI, 0)
txtFullname.Text() = DataGrid1.Item(CRI, 1)
txtTitle.Text() = DataGri... more >>
Set a form into a non-responsive state
Posted by Urs Vogel at 1/30/2004 4:27:37 PM
Hi
I would like to set a Windows.Form into a non responsive state, i.e. that it
does not respond to user input of any kind, similar to the state a forms
gets when another modal form is opened ontop with ShowDialog(). Form.Enabled
= false is not what I'm looking for, it changes the look of the ... more >>
Dealing multiple modal windows
Posted by Bruno Rodrigues at 1/30/2004 3:52:44 PM
Hi,
My application's initial form is a toolbar in the office style. This bar
must be accessible always, while my application is running, of course. My
problem appears when I open a modal window (ShowDialog), and not only the
caller window is blocked, but all windows of my application, incl... more >>
Access to Components at runtime
Posted by JezB at 1/30/2004 1:01:42 PM
Given a reference to a Form object, is there any way to ascertain whether
there is a ToolTip component (or indeed any component) attached to it, and
then to be able to manipulate that component ?
... more >>
Ugly app.ico
Posted by Henke at 1/30/2004 9:39:52 AM
Why does the application icon only shows some gray pattern, no matter what
picture I draw in the app.ico?
Thanks in advance, Henke!
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Sorting in ListView (ASC/DESC)/
Posted by Rakesh at 1/30/2004 6:16:08 AM
How do I enable sorting (Ascending / Descending) on a list view control in C#
... more >>
ToolBox control
Posted by JerryP at 1/30/2004 6:01:07 AM
Can I add a ToolBox control to my forms app? or is it just reserved for the developer platform
Other developer platforms (like Flash) call this an accordian control. Is there a way to trick the tab control into behaving like a toolbox
TI
Jerry
Hopefully someone from MS will look at this threa... more >>
Q: Flash .net style icon images.
Posted by Frank_in_LA at 1/29/2004 5:01:07 PM
I want to make my application looking good with flash button images. I cannot find it in either office nor .net common graphic library. Does anybody know where to find it
Hopefully I don't have to draw it myself. :
Frank... more >>
Getting information on how the form is closing.
Posted by Noor at 1/29/2004 4:25:05 PM
Hi all,
I have several forms in my wizard application.
I need to know when the user closes the form by clicking on the X button,
Like queryunload event in vb6, we can know what causing the form to close.
thanks
Noor
... more >>
Getting the focused control in the Form
Posted by Hagay Lupesko at 1/29/2004 4:00:53 PM
Hi,
I can't find a Form method that returns the current focused control in the
form.
Is there such a method?
Thanks, Hagay.
... more >>
Painting
Posted by Saurabh at 1/29/2004 2:49:27 PM
Hi All,
I have added my own button in the titlebar of a form next to the close
button. Everything works fine but when I resize the dialog, the button does
not get redrawn at a correct location.
I calculate the button position relative to the close button and draw a
button using ControlPaint... more >>
Vanishing .exe.config files
Posted by Jay Ayliff at 1/29/2004 2:38:00 PM
I'm embarrassed to say I asked this before but the original answer scrolled
off the list.
I use configuration files with my VB.NET winforms apps. The application is
configured to find them in the same folder as the executing assembly, and
with the same name, but with '.config' at the end. Trou... more >>
Propertygrid and exceptions
Posted by Keith at 1/29/2004 2:22:03 PM
Looking through the newgroups and google, I can't find any good information
regarding catching exceptions in the PropertyGrid component. If the user
sets an invalid value for a property in my object and my object throws an
exception, the PropertyGrid component displays the error in its own dialog... more >>
Deserialization, Surrogate and WeakReference
Posted by azhitlenok NO[at]SPAM nanoink.net at 1/29/2004 2:21:26 PM
Hi,
In our system, we use a lot of referenced objects. We use binary
serialization for saving the objects and deserialization for
restoring. It worked, and we had no problem.
In a new version of our system, a lot of changes were done: some
classes were moved from assembly to assembly, others ... more >>
Embedding a PDF Viewer
Posted by Martin Robins at 1/29/2004 12:57:57 PM
Does anybody have any success stories regarding embedding a PDF viewer
control into a .NET Windows Forms application?
I have tried talking to Adobe, and they seem to want everybody to pay up and
join the ASN befor thy will tell you if they can help. I was even shown a
(locked down) link to a d... more >>
Position of form question
Posted by JezB at 1/29/2004 12:37:33 PM
When I use the Show() method to position a form, the runtime engine seems to
decide where to put it, normally just below and right of the parent window.
It does not seem to allow me to specify the co-ordinates in the Show(), and
it does not follow the Location property of the secondary form itsel... more >>
MSDN April 2003 error?
Posted by rosty at 1/29/2004 11:32:49 AM
MS VC# Version 7.1.3088
MS .NET Framework 1.1 Version 1.1.4322
I create a form and set its FormBorderStyle to FixedToolWindow. MSDN says
that it's a :
"A tool window border that is not resizable. A tool window does not appear
in the taskbar or in the window that appears when the user presses ... more >>
Change font for a selection of text
Posted by JezB at 1/29/2004 11:20:50 AM
Is it only the RichTextBox control that allows the font to be changed for
different sections of text ? I would really like to be able to employ this
in a tree control, where each node displays a normal black bit and a bold
red bit. Can this be done?
... more >>
How to Cancel the process in between ?
Posted by Gopal Prabhakaran at 1/29/2004 11:01:26 AM
Dear Guys
I developed a Win form application using C#. In my application, I used Login
form to enter into application. In this login form I used three buttons( OK,
Close and Cancel). The OK button call the web service and check the login
credentails and then delivers the proper required data s... more >>
Displaying a bitmap
Posted by Alfredo Diaz at 1/29/2004 10:46:11 AM
I'm trying to draw a bitmap on the screen, but I'd like to embed the bitmap into my assembly so I don't have to include the .BMP file with my executable
Anyone know how to do this? And how do I retrieve it from my resources in memory so I can display it? I figured I could just add a bitmap resou... more >>
DataGrid MouseOver - change background color?
Posted by James Radke at 1/29/2004 10:25:16 AM
Hello,
I was wondering, is it possible in a windows form datagrid to set up a
mouseover / mouseout style event where when you hold the mouse over a row,
it changes the background color of the entire row (i.e. highlights it), and
then when you move the mouse away from that row, the background c... more >>
How to hide the Form Icon?
Posted by Craig at 1/29/2004 10:02:11 AM
Is there a way to hide the icon in the title bar for a dialog. I have tried
setting Form.Icon to null and the default icon still appears.
... more >>
How to localize the FolderBrowserDialog ???
Posted by aktweb NO[at]SPAM msn.com at 1/29/2004 9:57:06 AM
I have resx files that contain the strings for all my localizable
items. However, I open .net dialogs, like FolderBrowserDialog. How
does the text in there become localized ???
-- THanks, Andrew... more >>
Hosting IE control in a Form
Posted by Bda at 1/29/2004 8:11:13 AM
Hi,
I use a MSIE control as an Active'X control in a .NET form for generating reports. I need catch "click" events in
loaded HTML page and handle them in application. Everything works fine when page is first loaded into control, but when I move the form window, application doesn't handle events f... more >>
How do I refresh data on a 'read-only' datagrid
Posted by awoodgate at 1/29/2004 7:51:10 AM
I have a datagrid, doubleclicking a row opens a form. I edit the data in the form and update the data in the underlying Dataset. When I close the edit form the grid displays the old data. When I close the grid form, then re-open it, the changed data is displayed
How can I see the changed data wit... more >>
Forms collection behavior
Posted by craig at 1/29/2004 6:20:50 AM
In order to be able to track some of the forms in my application, I am using
a collection of forms (I am using an ArrayList per the Billy Hollis MSDN
Article
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnadvnet/html/vbnet05132003.asp )
.. As I instantiate each new forms, I ... more >>
XP Controls Library ?
Posted by Slim Shady at 1/29/2004 5:36:11 AM
Hi to all
I need to use some library with XP style controls like dotNetBar and Syncfucion. Can anyone make some recommendation about some other and to tell me why it is preferred
thanks in advance... more >>
Put Label(s) on datagrid
Posted by Matkov at 1/29/2004 5:06:09 AM
Is it possible to put a label (or more labels) to datagrid on any position and when datagrid is moved also label is moved with it.... more >>
Forms presentation
Posted by Henrique Proença at 1/29/2004 12:18:51 AM
Hi,
I'm developing an aplication using vb.net 2003, the aplication is MDI.
My problem is that when I show child forms, I want them to appear in the
"fill" space, but I can't do that.
Can anyone help me with that.
I've tried the maximaze child form propertie, but the controls a... more >>
Base form's properties gets changed by the inheriting form...
Posted by Yasutaka Ito at 1/28/2004 11:11:06 PM
Hi,
I have a base form (FormBase), which defines things like the value of the
WindowState. Other forms inherit from this base form to reflect the layout
given in the base form.
Is there a way to prohibit the inheriting form to change the value of the
WindowState property?
Appreciate any ... more >>
folderBrowserDialog
Posted by ssd at 1/28/2004 8:56:12 PM
Hi,
I am using ver1.1 of VS2003 and I am having a problem. When I run this piece of code I get the modal dialog but no treeview. I cant understand why. Is this a bug that anyone else has seen.
if (this.folderBrowserDialog1.ShowDialog() == DialogResult.OK)
{
this.textBox1.Text = this.folder... more >>
Strange form behavior....
Posted by craig at 1/28/2004 8:37:00 PM
I was wondering if anyone might have any idea at all what might cause the
close button on a Windows Form to stop responding.
When my form is first brough up, the close button works as it should, but
after a while it stops repsonding when clicked on. The form can still be
closed through code, ... more >>
How to stop a form from being automatically activated on the creation
Posted by Mikhail Golovnykh at 1/28/2004 4:56:10 PM
Hi
There is a main form. On some user request it creates another modeless form. By the default behavior that new form becomes active. I do not want that. So, I set focus back to main form, executing mainForm.Activate. But it makes forms to flicker a little - and it looks bad
Are there a way aroun... more >>
Where to set a window application's Application.ProductName property?
Posted by Cyrus at 1/28/2004 4:14:22 PM
How to make sure Icon resources are getting freed?
Posted by Terry at 1/28/2004 2:03:49 PM
After some playing around with icons and ImageList, I'm not quite
sure I understand what's happening. Either the resources are not really
getting cleaned up like I thought they would or what I'm using to measure
the resources isn't accurate, or there's something else going on.
I'm using Task ... more >>
Combobox SelectIndex = 0 throws exception
Posted by STom at 1/28/2004 12:44:39 PM
I am adding items to my combobox like this:
Me.cboDeprecType.Items.Add("X")
Me.cboDeprecType.Items.Add("Y")
Me.cboDeprecType.Items.Add("Z")
Me.cboDeprecType.SelectedIndex = 0
When I get to the selected index line, I get an index out of range error.
Any ideas w... more >>
Why is no one answering my post I need urgent help please? Using a Windows Forms Control as a Container, Help!
Posted by Neo at 1/28/2004 12:13:12 PM
Hi,
I have a Windows Forms app written in vb.NET. I have 2 controls and a form
in the solution, one control (say control1) is used in another control (say
control2) and control2 is placed on a form. I am aware of how to make
control2 a container so that other controls can be placed on it in t... more >>
How to format the columns of a DataGrid to show a ComboBox
Posted by michael at 1/28/2004 11:21:06 AM
I can't find the articles on how to format the columns of a DataGrid to host a ComboBox, Calender, Checkbox..
Anyone remember
Michael... more >>
Hiding TabPages at runtime
Posted by Joe Thompson at 1/28/2004 10:41:12 AM
Hi
I am using VC++ 2003 for a WinForm application
I have a TabControl with 5 pages. Depending on a user setting, I want to either show the first 2 or all 5 pages. How can I do this at runtime. I've tried the hide method on each page but I can still see the unwanted tabs with no controls, I've... more >>
List of open forms
Posted by craig at 1/28/2004 9:49:23 AM
Is there an easy way for an application to be able to cycle through a
collection of all form instances that are currently being shown to the user?
I would like to be able to do this for a couple of reason, such as making
sure the same form isn't opened twice conncurrently, or making sure all
for... more >>
Controlling MDI child form Instances
Posted by Marinos Christoforou at 1/28/2004 9:11:54 AM
Hello,
I have an Windows MDI application. I would like to only allow one instance
of a child form tpo be open at any particular time. Can somebody suggest a
way to do this?
... more >>
Help needed with code
Posted by Aaron at 1/28/2004 5:12:14 AM
I have a datagrid populated by a Dataset using an SQLAdapter. This
datagrid is at the bottom of the form displaying all of the records for my
SQL Query.
Above the datagrid, I have several textboxes corresponding to the columns
in the datagrid.
What I would like to do is be able to click... more >>
Server Error in '/' Application. Object reference not set to an instance of an object.
Posted by hlara NO[at]SPAM extremaduraweb.com at 1/28/2004 12:39:29 AM
Hi, i´ve a problem with a NET application. In develop server, the
application runs without problems, but when I upload to our internet
webserver, fails with this message when i enter the information to
validate users. The error message is:
Server Error in '/' Application.
------------------... more >>
After "File Field" is on Webform2.aspx, how do I upload it?
Posted by Trint Smith at 1/27/2004 8:33:14 PM
I have a file field on Webform2.aspx and it works (as far as browsing
and getting file and path). What do I do next to get the file to upload?
Thanks,
Trint
..Net programmer
trintsmith@hotmail.com
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET... more >>
Detecting User Idle Time
Posted by virtualswp at 1/27/2004 6:01:07 PM
Is there an easy way to detect if the user has used the application for a set amount of time?
Thanks.... more >>
How to draw a bitmap in the right side of MainMenu?
Posted by Mikhail Golovnykh at 1/27/2004 5:56:06 PM
Hi,
I am finding for a way to draw a logo bitmap in the Main Menu of an application window (similar to Internet Explorer main window).
I tried 2 ways to do that. Neither of them worked out.
1. I can create an additional menu item with ownerdraw style, but I can't make it align to the right ... more >>
How to repaint a form which doesn't have focus?
Posted by Dave at 1/27/2004 5:36:04 PM
I have 2 different forms bound to the same DataView.
The first form has a datagrid displaying the data. The 2nd form is used to edit the data. When the data is changed in the edit form, I call Invalidate, Update, and Refresh on both the datagrid and the entire datagrid form. The data displayed by... more >>
|