all groups > dotnet windows forms > february 2007 > threads for february 1 - 7, 2007
Filter by week: 1 2 3 4
Help need with DataGridView
Posted by Saravanan at 2/7/2007 10:46:01 PM
Hi,
I am using DataGridview in my application. In that i am able to display
images. when i click the any cell of the datagrid i wanted to open a new
Frameless window(which contains some checkboxes and lables) on top of that
cell. but i am not able to display that form on top of that cell. i... more >>
Help need with cell click on DataGridView and C# 2005?
Posted by Saravanan at 2/7/2007 10:46:00 PM
Hi,
I am using DataGridview in my application. In that i am able to display
images. when i click the any cell of the datagrid i wanted to open a new
Frameless window(which contains some checkboxes and lables) on top of that
cell. but i am not able to display that form on top o... more >>
Window messages
Posted by Darren Mar-Elia at 2/7/2007 9:27:05 PM
I have an app I'm writing in .net 2.0. Basically all I want visible in the
app is a system tray icon, that then launches a Windows form for
configuration. I want to trap Window messages and, when I see a particular
message, do some work. It works fine if a Windows form is up and visible but
... more >>
Get location of CurrentCell in DataGridView
Posted by Lennart Nielsen at 2/7/2007 3:29:02 PM
I have not been able to find a way to get the actual Location coordinates
(Left and Top), only the X and Y index.
The only thing I've found so far is to use the paint event to map the values
to variables, but I always seem to be one click behind.
Any suggestions?
Lennart
... more >>
last control edited not getting changes when saved
Posted by Jose Fernandez at 2/7/2007 2:07:13 PM
Hello.
We have a Form with multiple controls (textboxes, Comboboxes, etc). I have
these controls binding to an user Binding Data Source.
PROBLEM.
The last control edited is not getting updated UNLESS we click somewhere
else (that forces the control to lose focus).
If we click on the sa... more >>
Combo Like User Control
Posted by Jeff Gaines at 2/7/2007 11:31:41 AM
I am putting together a control which will work like a combo box - except
its drop down will be a Tree View.
When I use the control in a panel on a form I can't resize it to allow for
the drop down part - it is constrained by the size of its parent panel -
yet a combo Box can open up and wi... more >>
Open file in application externally
Posted by ElmoWatson at 2/7/2007 10:51:33 AM
I'm using VB.net 2005 - -
I have 2 questions, actually - - -
1. I remember, in VB6, there was a way, to set command line parameters or
something, so that, if you use the 'Open With' option, or dragged a file
onto the MDI interface, it would open inside the interface.
2. How can I make it so t... more >>
Panel and KeyDown event problem
Posted by Marko Bozikovic at 2/7/2007 10:01:55 AM
Hi all,
(I'm reposting this, original title was misleading)
I'm new to .NET, and I have a silly little problem. My application's layout is
simple: a window with one splitter with a treeview control in the left pane
and a Panel for rendering a DirectX scene in the right pane.
My problem is... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Form Positioning
Posted by Azrael at 2/7/2007 7:51:43 AM
Hi.
I have created custom control from TextBox. This control has lookup
capability, users can press F4 and a dialog form is shown to provide
help with input. This works fine however I would like to open dialog
form just below my control. At this moment windows is deciding where
to place the d... more >>
Problem with Nullable( Of Integer) bound to combobox
Posted by Flomo Togba Kwele at 2/7/2007 6:39:17 AM
I struggled with a problem I had with a combobox bound to a
bindingsource which has as its datasource a collection of custom
objects. The comobobx was bound to a nullable integer property of the
custom object.
When I tried to change the value of the dropdown and tabbed off the
control, the dr... more >>
WPF programming and guidelines, good books...
Posted by Harald SMS at 2/7/2007 6:08:01 AM
Anybody that have good references to books that covers programming WPF with
guidelines for design.
--
Harald SMS... more >>
PropertyGrid and INotifyPropertyChanged problem
Posted by Chris at 2/7/2007 3:09:46 AM
Hi,
I've got a problem with the PropertyGrid and the
INotifyPropertyChanged interface. I have a class that implements the
INotifyPropertyChanged and raises the PropertyChanged when a property
of this class is changed. My PropertyGrid is connected to this object
through the SelectedObject prop... more >>
Need advice on events
Posted by Bill Gower at 2/6/2007 10:29:06 PM
I have 2 listboxes side by side where the user can move an item from left to
right or vice versa by double clicking the item or clicking on a button(s)
between the two listboxes. I want to enable to disable the move left or
move right buttons as determined by the number of items in the listbo... more >>
Frustrating problem with DatGridView
Posted by Barry Gilbert at 2/6/2007 12:12:00 PM
I have a DatagridView bound to a bindingsource. I programmatically add a
ComboboxColumn and bind it to another BindingSource like this:
Dim colActType As New DataGridViewComboBoxColumn
colActType.DataSource = ActivityTypesBindingSource
colActType.HeaderText... more >>
OpenFileDialog doens't remember the user's settings
Posted by Kyle Jedrusiak at 2/6/2007 11:37:32 AM
When programming in access I can make this call
dialogResult = Application.OpenFileDialog.Show() ' May not be the exactly
correct syntax
The user can manipulate the column sizes the sorting,etc.
When I call that that code again, the OpenFileDialog remembers the listing
type and the sor... more >>
Verify if a DLL is used in ASP.NET application or Windows application
Posted by Hamed at 2/6/2007 9:20:37 AM
Hello
I have a managed class library (written in C#) that is used both in ASP.NET
and Windows applications. How can I determine which platform has been called
a class method in this library.
Thanks in advance.
Hamed
... more >>
System.Windows.Forms.WebBrowser and PDF
Posted by manfred at 2/6/2007 7:53:33 AM
I tried to show an pdf on the WebBrowser.
I use this code:
this.webBrowser1.Navigate(@"C:\Path\PDFName.pdf");
I get all the time this Error message as an pop-up:
An error has occurred in the script on this page
Line 2
Char 1
Invalid character
Code: 0
URL: file://C:\Path\PDFName.pdf
... more >>
(VB.NET 1.1) Windows Forms Listbox help
Posted by Philip at 2/6/2007 7:31:01 AM
Hi,
I have a listbox with 3000 entries, all of 4 chars, and the user needs to be
able easily select dozens of them...
When the user is selecting items, they type for example ABB, and the listbox
first goes to A, then B, rather than searching for ABB.
Is there any way to setup the listbo... more >>
Inherited RowValidating event
Posted by Georg at 2/6/2007 3:28:00 AM
I have a WinForms class (A) that contains a DataGridView and a class B
inherited from A. The DataGridView of class A contains a RowValidating event,
in class B no such event exists. But when I leave a row in class B this
validating event is not fired, in contrast to an inherited RowLeave event... more >>
DataGridView and Datasource
Posted by Gabriel at 2/5/2007 9:02:20 PM
Hello,
I set the propery "DataSource" to a dataset returned by a method, this
dataset is not empty but the grid look empty.
Any idea why ?
Regards,
... more >>
Focus problem with .net 2.0 DateTimePicker with checkbox enabled
Posted by micklang NO[at]SPAM gmail.com at 2/5/2007 8:14:41 PM
When using the datetimepicker with the checkbox visible, before
receiving the focus, the checkbox is colored as if it already has the
focus (even though it does not). The consequent user experience is
that when the user tabs to the datetimepicker control it appears as if
no control on the form ... more >>
BackgroundWorker does not fire the RunWorkerCompleted event
Posted by John Hann at 2/5/2007 3:22:00 PM
I am trying to unit test a control that uses a background worker component
and have discovered that the RunWorkerCompleted event does not fire in this
scenario. The documentation doesn't say anything about this behavior, and I
was wondering if anyone here could tell me why the RunWorkerComplet... more >>
Is there any textbox control can display tree-based XML document under Win-Form Application?
Posted by ABC at 2/5/2007 3:15:25 PM
Is there any textbox control can display tree-based XML document under
Win-Form Application?
... more >>
Select a datagridview row select using enter key
Posted by julio at 2/5/2007 11:38:02 AM
Hi, Im using VS 2005 and winforms
I need to select a row in the datagridview, but clicking the enter key,
because our customer says that for him is more simple to use the enter key
instead the mouse
The problem is to find the event that I need, is an event to fire this?
Regards
Julio... more >>
Why ColorDialog can not be used?
Posted by jeff at 2/5/2007 10:43:00 AM
Hi ALL,
I have created a App to select color.
but when I want to create ColorDialog instance,
It says: The type or namespace name'ColorDialog' could not be found
(are you missing a using directive or an assembly reference)
I have checked the DLL reference directory.It is correct.
what is... more >>
Custom user control and focus problem.
Posted by Jerod at 2/5/2007 9:24:34 AM
Hi all,
My situation is a bit more complex then my example here, but if I can
figure this out then the rest should fall into place. Thanks in
advance!
Example:
MyUserControl contains a textbox.
MyForm contains MyUserControl and a Label.
When the user navigates to the textbox I w... more >>
Detecting a paste 'event' in a textbox
Posted by ssg31415926 at 2/5/2007 9:23:41 AM
Is there an easy way to detect when someone has pasted text into a
textbox?
... more >>
Event handling in dynamically generated grid
Posted by Vishal KC at 2/5/2007 8:14:17 AM
Hi,
I have created a grid which is totally table driven. All the required
information(column info, control info etc) are obtained from the
database tables. Is it possible to handle the events for the dynamically
generated controls within the grid?
Thanks,
Vishal
*** Sent via Develop... more >>
DataGrid: IndexOutOfRange Exception
Posted by ricecake NO[at]SPAM gehennom.invalid at 2/5/2007 7:23:42 AM
This is a repost of a question I posted to the codeproject.com forums,
but got no responses:
http://www.codeproject.com/script/comments/forums.asp?msg=1872655&forumid=1650#xx1872655xx
I forgot to mention in the above post that I am using Managed C++
(Visual Studio .NET 2003 SP1) / .NET Framewo... more >>
From Java to.net, smartclient help ?
Posted by niteshs NO[at]SPAM yahoo.com at 2/5/2007 6:39:11 AM
Hi all, right I'm busy on an enterprise project where we are moving to
a .net smart client and first o the joy or so i thought...finding a
tutorial on smart clients or going through msdn is a nightmare, i
wrote an application 2 years back in c# that used the updater
application block and what a... more >>
raising events via "Invoke" - good pattern? - or not....
Posted by Oli at 2/5/2007 5:52:14 AM
Hi - I am communicating with my UI thread using the following
technique. This has appalled one of my co-workers ;) - any comments
about it's brilliantness or lack thereof welcome.....
two threads:
1) UI thread
2) Worker thread
- something happens in the worker thread - I need to upda... more >>
Form layout problem on Chinese OS
Posted by NO[at]SPAM win at 2/5/2007 5:46:00 AM
Hello There.
I've written an mdi app that lays-out the windows forms on any western
language without a problem.
However when I run the app an a Chinese OS (with exactly the same screen
settings 1024x786) the form appears to have less pixels and does not resize
correct. Infact the number ... more >>
Memory Consumption
Posted by Sunil Pandita at 2/4/2007 11:47:00 PM
HI, there,
I am developing the desktop application using VB 6 as well as VB.Net.
I have noticed one significant difference.
A created an empty windows app in VB contsing of a single form and there is
no coding and any control on it.
When I executed the EXE, it consumed 983KB of memory... more >>
Looking for sample app for creating a label desgner
Posted by news.microsoft.com at 2/4/2007 4:34:06 PM
I am trying to create a label designer where I display a list of fields from
a table and have the user
drag them to the workarea will look like a label and then have the ability
to move the fields around and resize them
etc. I just want to get an idea on how to start.
Bill
... more >>
Control alignment issues in custom UserControl
Posted by rrossney NO[at]SPAM gmail.com at 2/4/2007 4:05:26 PM
I'm building a UserControl that contains a number of other controls
that it creates and lays out at runtime. I've been messing about
quite a bit with containers and docking and anchoring, and I can't get
it to do exactly what I want it to do. What I want it to do seems
like it would be a prett... more >>
vs 2003 to vs 2005 conversion problem
Posted by John at 2/4/2007 3:45:51 AM
Hi
I have a vs2003 database app that use non-bound infragistics controls and
all the plumbing is done in code. This works fine in vs2005. After importing
to vs2005 via the built-in conversion wizard the application doe snot show
any data instead all fields display the test 'System.Data.... more >>
3 tiers application ....
Posted by Gabriel at 2/3/2007 9:22:29 PM
Hello,
I'm trying to do a 3 tiers application (data access layer and business
layer) with a winforms application. I start from Microsoft sample for
ASP.NET
I added a dataset to my project, the name of this is "Adventure"
When I try to add : using AventureTableAdapters I receive an error... more >>
Hiding the selection in a CheckedListBox
Posted by Jared at 2/3/2007 8:31:45 PM
Is it possible to do away with the "selected" appearance of an item in
a CheckedListBox (v1.1)? When I click an item, its background turns
blue and its text turns white. I want the checkbox to toggle (which
it currently does), but I don't want the list item to appear
"selected".
TIA
Jared
... more >>
Form Controls Naming Standards
Posted by Bill Gower at 2/3/2007 12:50:29 PM
Having come from a VB6 background I liked to prefix all my control names
with txt, cmd, btn etc. What is the accepted standard for Windows forms
controls. I have been looking and looking for MS standards and can't find
any.
Bill
... more >>
MaskedTextBox - How to hide the prompt characters?
Posted by mehdi_mousavi at 2/3/2007 1:44:03 AM
Hi folks,
I need to hide the prompt characters not only "OnLeave" but also
"OnFocus"! i.e., if the control has got the focus, I need to hide the
"Prompt Characters" too.
Any help would be highly appreciated,
Cheers,
Mehdi
... more >>
No webbrowser?
Posted by Rolf Barbakken at 2/2/2007 11:17:40 PM
This may be a stupid question, but I have VS2005 Pro, on Windows XP SP2,
IE7, and in my toolbox in VS2005 there is no WebBrowser control, but there
is a WebControl that is disabled. In my references I have System.Web,
System.Windows.Forms, SHDocVw.
Why is it not possible for me to add a webbro... more >>
help explain this winform behaviour
Posted by dadizhu NO[at]SPAM gmail.com at 2/2/2007 8:38:59 PM
Hi, everyone. I ran into an UI freeze issue with threading and
simplied the problem down to the following sample code. The logic is
as follows:
1. The main UI thread creates a non-UI STA thread(m_MainThread).
2. Then the non-UI thread runs and creates derived winform and holds
a reference... more >>
Calling a function from another form
Posted by Kevin Humphreys at 2/2/2007 5:29:15 PM
Hi There,
I have 2 forms and I need to execute a subroutine on formA from FormB
passing specific parameters. Can this be done using VB.NET?
I would prefer not to use a global function. Just something local to 2
forms.
Thanks,
Kevin.
... more >>
Clickonce application not launched within HTTP onload event handler using IE 7
Posted by james at 2/2/2007 5:22:15 PM
Dear,
As following sample, if the Clickonce application launched within HTTP
onload event , it seems not work.
But if it called from onclick event, everything is just fine.
I have already turned off IE Popup-blocker in IE7.
Thanks a lot
ex:
<html>
<head>
<script language="javascript... more >>
Advice on Images and CF2 Please???
Posted by iKiLL at 2/2/2007 3:28:00 PM
Hi All,
I am new to .Net and Compact Framework. So I have a really basic question
for you all.
I am building an application in C# for Windows Mobile 5.0 in VS2005 CF2.0
I would like this application to have some customizable features with out
having to recompile.
... more >>
Windows Defendows
Posted by steveg114 at 2/2/2007 3:17:01 PM
try to remove unwanted items but each time error 0x8050800f have all updates
for windows defender... more >>
Validating Fires When Control Doesn't have focus on form close
Posted by Malachy O'Connor at 2/2/2007 3:03:52 AM
Hi,
I'm having weird problems with Valadating Events.
I have a number of countrols that handle their own Valadating events
in to perform data validation.
I also have a Custom control that contains Add, Edit, Delete, Save and
Cancel buttons.
The Causes validation property for this control... more >>
Transparent BackStyle for label
Posted by Elmo Watson at 2/1/2007 9:37:22 PM
In the 'good old days' of vb6, labels had a 'BackStyle' property - you could
set them Opaque or Transparent.
I have a need for the Transparent attribute - - in VB.Net (2005), how can
this be accomplished?
... more >>
Caching objects between forms
Posted by Brian Sokolnicki at 2/1/2007 6:36:50 PM
I'm trying to cache a user object and gain access to it from a mutlipe
forms.
I have created a base class that all forms will inherit from. In this base
class, I have a propery to a User class which I want to cache and reuse on
all other forms so that I don't need to retrieve the user data... more >>
Overriding ErrorProvider with Cancel Button....
Posted by Charlie NO[at]SPAM CBFC at 2/1/2007 4:24:33 PM
Hi:
Once your in an error state (icon is blinking) form won't respond to any
events until error is corrected. I would like to allow user to press a
cancel button to override error and close form. How do you do that?
Thanks,
Charlie
... more >>
user control with a datagrid control in it
Posted by David C at 2/1/2007 1:52:18 PM
I have a user control with a datagrid in it.
Here is what I would like to do
* As the width of the datagrid grows or shrinks, have the user control
adjust so that it always looks full in the user control with no
scrolls. The datagrid's columns can be hidden or shown at run time,
so I canno... more >>
setting Font property of Label control in code
Posted by David C at 2/1/2007 11:06:24 AM
This is a very basic question here. I must be missing something
here.
At run time, I am trying to set the text of the label control bold.
lblMyLabel.Font.Bold = true;
does not work since it's read only (why why why why why).
Thank you.
... more >>
Smart Client using correct webservice version
Posted by Brian Sokolnicki at 2/1/2007 9:46:46 AM
I have a question regarding versioning with a Smart Client and a Web
Service.
If we deploy an updated web service for some reason (say we rearrange the
parameters on a function call, or added a new one) before we deploy the
updated smart client, when the smart client attempts to call th... more >>
custom menustrip in C#
Posted by sreelakshmi at 2/1/2007 4:47:57 AM
Hi,
I am looking at a problem where i need to create a menu in which the
child-items (the items in the dropdown) do not have the area for icons/
images.
If you look at an xp-style menu(in a word document) or the default
working of the class System.Windows.Forms.Menustrip, the menu
dropdown ... more >>
MS Flexgrid control in .NET 1.1 Windows Froms (VS 2003)
Posted by Philip at 2/1/2007 2:08:02 AM
Hi,
is there no MS Flexgrid control in Windows Forms?
I tried using the MS Flexgrid version 6 and got a license error...
How do I use such a flexible grid in Windows Forms please?
thanks
Philip... more >>
|