all groups > dotnet windows forms > april 2006 > threads for april 22 - 28, 2006
Filter by week: 1 2 3 4 5
Error creating window handle - possible causes?
Posted by illegal.prime NO[at]SPAM gmail.com at 4/28/2006 4:37:38 PM
So I've taken a perusal through google groups looking for possible
causes of this error.
I've seen answers varying from:
- creating too many Form objects
- creating too many MenuItems in your Forms
- a combination of the above two
- something to do with setting the style on a control
So, ... more >>
Updating ContextMenu MenuItems depending on location of right click
Posted by illegal.prime NO[at]SPAM gmail.com at 4/28/2006 2:52:22 PM
Hey all, I'm getting a weird bug, where I will add sub menu items to a
menu item in my context menu and sometimes the sub menu items appear
and sometimes they don't.
I can see from my logging that the code is successfully using the
MenuItems.Add to add the sub menu - is there anything that mig... more >>
RSS Feed
Posted by VJ at 4/28/2006 1:46:24 PM
Now that I have learnt about RSS feeds... is that a good way to exchange
data in a B2B situation? or Rss Feed is for only news feeds... Can
someone... is RSS every used in WinForms situations or only ASP
situations...
What our clients mainly do is use webmethod, get the data and display it ... more >>
How to Screate Skin For Vb Form
Posted by hasmukh hapra at 4/28/2006 7:49:23 AM
Hello Everyone,
I have a requirement of writing a WinForm application that should
support
"SKINS" for the UI. On applying a skin, the look and feel of the
application
can change drastically. Even the size and shape of the Main window and
its
child controls can change.
I have NO idea abou... more >>
Expose class members (how to)
Posted by Toco at 4/28/2006 7:11:02 AM
Hello. I have write a class file with some methods I wish to expose. For
example I have a windows form which should call a method from another class
file. I think this has something to do with inheritance, no? Maybe the
windows form will need to inherit from class file? I use C# 05. Than... more >>
Manipulating a bound datagridview
Posted by korey99 at 4/28/2006 6:49:25 AM
Hi-
I'm working on an application that has a datagridview bound to a
datatable, backed by an Access database, through a bindingsource. I
have buttons to add and remove rows, and handlers for those buttons.
My question is, what is the proper/commonly accepted way to (for
example) remove the... more >>
ClickOnce: How to change the config file once we deploy on the ser
Posted by Satish Babu Dasari at 4/28/2006 6:33:02 AM
Hi,
I have problem in updating the config file.
We are using the ClickOnce technology to deploy the C# windows forms
applications. After deploying to the server, if we want to change the keys in
the app.exe.config.deploy file, it is not giving the erorr at the time of
modifying the file.... more >>
Implicit conversion warning
Posted by Jared at 4/28/2006 12:00:00 AM
Hi,
I keep getting warnings for cloning string arrays and arrays of objects.
Should this feature just be disabled? or is ther a correct way of copying
structure.
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
XML String
Posted by Martin at 4/28/2006 12:00:00 AM
how do I create a XmlDocument object or a XmlDocumentFragment object or a
XmlNode objekt from a string?
I get a string like that:
<Node>
<ChildNode>Value</ChildNode>
</Node>
in a variable of type string. now I want to parse this string with xml
objects in order to get less work. is it... more >>
Color Dialog
Posted by tmoeller at 4/27/2006 11:35:01 PM
Hi,
when using this code:
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button2.Click
Dim MyDialog As New ColorDialog()
MyDialog.AllowFullOpen = False
MyDialog.ShowHelp = True
MyDialog.Color = TextBox1.ForeColor
If (MyDialog.ShowDialog()... more >>
Print command with ""
Posted by tmoeller at 4/27/2006 11:31:01 PM
Hi,
my program uses the Print command like
Print(a, "Language=" & language)
to print a textline in my text file.
In the text file I need a format like
Language="my language"
How do I get the additional quotation marks?
Regards
Thomas... more >>
App.config file
Posted by msnews.microsoft.com at 4/27/2006 10:06:08 PM
I am having a heck of a time trying to figure out how to get a setting in a
referenced assembly/dll from the exe's app.config file. In other words, I
have an assembly called AcmeApp.exe which contains an app.config file. This
exe references a dll AcmeHelper.dll which I am trying to read a
... more >>
Physical path of a virtual directory
Posted by Meena at 4/27/2006 5:49:10 PM
I have a WinForms application that has to get physical path for a virtual
directory. Which class should I use to achieve this ? I know the name of the
virtual directory for which I need to get the physical location.
Thanks,
Meena
... more >>
Disable Context Menu
Posted by Jared at 4/27/2006 3:04:05 PM
Hi,
Is this best way to disable defualt context menu for win form?
Me.Textbox1.ContextMenu = New System.Windows.Forms.ContextMenu
... more >>
Window Form Security Question
Posted by Sammy at 4/27/2006 12:59:01 PM
I am trying to set a buttons visibility on a C# Windows Application - form.
If the user who is logged onto the computer - running the app (on the clients
computer) is a member of a particluar active directory group, then I want the
button visible, otherwise it should be invisible...
I have... more >>
How to get rid of the designer
Posted by Greg at 4/27/2006 12:34:34 PM
I want to add some custom methods to the DataGridView class, so I inherit
from it.
When I click on the .cs file in the solution explorer I get a designer.
How can I get rid of it? I just want to edit code without right-clicking and
selecting "View code".
Is there any point for using the desig... more >>
Display custom images
Posted by Bala Nagarajan at 4/27/2006 12:33:17 PM
Hello,
I am developing a tool (in Windows Forms .NET 1.1) which uses a
OpenFileDialog component to browse file in the local hard drive. I want to
be able to show some folders in the OpenFileDialog with a different image.
These folders are unique to the tool and has a defined folder ... more >>
Changing from DropDown to DropDownList
Posted by Marty at 4/27/2006 10:38:08 AM
Why does my field not save when I change the control from DropDown to
DropDownList? I used the data from wizard. Thanks.
... more >>
Connecting to a remote Web Service Error, help plz
Posted by Mr. Ali Hasan at 4/27/2006 9:33:02 AM
There's a problem in my windows application that calls a remote web service's
method, when it tries to connect to the webservice it displays this error:
"The request failed with HTTP status 407: Proxy Authentication Required (
The ISA Server requires authorization to fulfill the request. Acces... more >>
Tab control and each tab its own class
Posted by Richard Lewis Haggard at 4/27/2006 9:04:41 AM
It seems as though the default behavior for a tab control is for the parent
form to get all of the messages for all of the pages in the tab control. Is
there an easy way around this? I've got an application UI where the desired
behavior is a large set of tabs with each tab containing its own s... more >>
Splash Screen in C#
Posted by T. Schissler at 4/27/2006 7:27:01 AM
In VB.Net I can add a Splash-Screen as a new Item to my Project and set in
the Project Properties to use it as a Splash Screen. But I did neither find
the Splash Screen Template nor the corresponding Project Property in C#. How
can I set a Splashscreen in C#? I can't beleve, VB.Net is more pow... more >>
Vererben eines eigenen Forms
Posted by Andreas at 4/27/2006 7:03:09 AM
Bei meinem VB.Net (2003 Standard) Projekt habe ich mehrer Fenster mit
fast dem selben Inhalt. Nun m=F6chte ich alle gemeinsamen Eigenschaften
in einem, wenn m=F6glich abstrakten, "Vater-Form" erzeugen. Dabei
m=F6chte ich auch GroupBox's verwenden, in welche die abgeleiteten Forms
jedoch weitere ... more >>
accessing methods in user control
Posted by poppy at 4/27/2006 3:29:02 AM
Basically when auser clicks on a button on my form I want my user control to
be loaded
"ctlAddProject controlAddProject;Controls.Add(controlAddProject);"
which is easy enough.
Now there is a public method called doBind(string fName) on the control
which I want to call from the parent form... more >>
Amazing invisible TreeNode
Posted by Marius Horak at 4/27/2006 1:51:14 AM
I have a custom control with two treeviews.
The idea is the if a user double clicks on a node in TreeView A a new
node is added to TreeView B. But when the first node is added it does
not show on in TreeView B, Nodes.Count is 1. Nothing helps, nor Refresh
no DoEvents. When a next node is added b... more >>
Running .exe gui in a windows form container
Posted by Gerry at 4/26/2006 10:10:50 PM
I need to display two VB6 applications side by side within a single
'windows manager'
My thought is that I could use a split screen form, using the 2.0
framework and visual studio 2005, that display the UI of each of the
VB6 apps within some control or container on the windows form.
The obv... more >>
Automatic Text property at design time
Posted by Dario C at 4/26/2006 8:37:08 PM
Hi,
when we place a label or textbox or other controls from the toolbox on the
form at design time, the Text property of the control automatically contains
the name of the class and an incrementing number after it (label1, textbox3,
etc).
I have a UserControl and I want to modify this stri... more >>
How to handle menus?
Posted by Robert Schneider at 4/26/2006 4:57:39 PM
I'm creating an application that has should have a style like VS.NET.
What I would like to know is what is the best way to handle menus, tool bars
and context menus. How can this be done? The menus are dynamic so they have
to be determined with each click. But how does it work?
Let's take ... more >>
Adding a User Control closes VS.NET
Posted by joelcochran NO[at]SPAM gmail.com at 4/26/2006 12:36:13 PM
I am running VS.NET 2005. I have created a UserControl and added it to
my toolbox. When I try to drag it onto a Form, Visual Studio closes
immediately with no reported errors.
I've added the UC to a new solution, I have the project in the
solution, and am referencing the Project output in th... more >>
Error Installing Windows Service- Please Help
Posted by Steve, Putman at 4/26/2006 11:11:05 AM
I am getting an error whild installing the Windows Service from Command
Prompt or from Process.Start command in vb.net.
C:\>installutil C:\Program Files\SomeDirectory\WindowsServices.exe /u
Error Is
Microsoft (R) .NET Framework Installation utility Version 2.0.50727.42
Copyright (c) Micro... more >>
Deployment with ClickOnce
Posted by smartin NO[at]SPAM aastra.com at 4/26/2006 9:26:56 AM
Is it possible to deploy application via clickonce without signing
manifest ? I have the problem since we are deploying an application
from Linux and the process mage.exe is not running in Linux
environnement. So we are not able (as far as i have understood
clickonce techno) to make modification... more >>
Datagrid Combo Box - Newby question
Posted by Richard Harris at 4/25/2006 4:25:29 PM
Hi,
Can anyone tell me if it is possible to have a column of combo boxes on a
windows forms datagrid? I'm sure it is possible, but I have looked on the
internet and can't find much information on how to do it?
Thanks
Richard
... more >>
How does one create a rounded window?
Posted by zorro at 4/25/2006 10:20:23 AM
Hello,
I want to have a window skin with rounded corners and where the
system's usual window frame is hidden, like in Windows Media Player.
Can I do this with Windows.Forms? Is it just a matter of setting some
property, like "myframe.visibility=false"?
nu-b
... more >>
How to get a Terminal Server Client Name in vb.net
Posted by Jim Bob at 4/25/2006 7:51:59 AM
I know how to get a computer name in VB.net such as:
' Get Computername
Dim host As IPHostEntry = Dns.GetHostByName(Environment.MachineName)
lbHostName.Text = host.HostName.ToString
However, I need to get a Terminal Server Client Name for a session
running on a Terminal server. Does anyo... more >>
TextBox.IsInputKey
Posted by UdiBenSenior NO[at]SPAM gmail.com at 4/25/2006 5:34:27 AM
Hi,
I have a class derived from richrext box that overrides IsInputKey.
I would like to handle 'Enter' in my derived class, without forwarding
it to the base (RichTextBox) - thus preventing from the base to print
the '\n'.
I tried to return false from IsInputKey but it didn't work.
What am... more >>
CausesValidation and ControlBox
Posted by pa.singer NO[at]SPAM verizon.net at 4/25/2006 4:47:07 AM
Developing a windows application with VB.Net under VS 2005. I am
wondering if anyone knows how I can prevent validation events from
firing if the user clicks on the control box close button to exit a
form. I do not want to set the CausesValidation property on all of the
form controls to False ... more >>
Image Editor for Winforms
Posted by shah.hemalata NO[at]SPAM gmail.com at 4/25/2006 4:40:21 AM
Hi All
I am new to Winforms.
I have the following requirment based on Winforms:
1.User should select a Image
2. User should be allowed to crop the image. he can just select a part
of what he wants of that image and the selected image should be stored.
Is anyone aware of how this can be a... more >>
TextBox insertion point
Posted by kh at 4/25/2006 12:34:01 AM
hi. i have a control derived from TextBox. how can i set this up such that
all text is always selected (i.e. the insertion point is never shown). i was
hoping for an OnEnteringEdit method or similar but no such luck. do i just
need to capture mouse clicks or are there multiple methods of enter... more >>
ListBox: SetBounds - missing height???
Posted by Buddhist.CHinA NO[at]SPAM gmail.com at 4/24/2006 7:26:31 PM
Hi guys, when I used SetBounds to change a listBox's size, I found sth
interesting. But I was wondering whan happened.
For example, I wrote,
this.listBox1.SetBounds( 10, 10, 100, 300);
// x, y, width, height
After that, I got the size of listBox1. Howev... more >>
Controlling scrollbars
Posted by sb at 4/24/2006 6:11:36 PM
Let's say you have a simple UserControl (2.0 framework) with the following
two settings changed from their default:
AutoScrollMinSize = 16384;
AutoScroll = true;
Once those are set, is there a way to also set the LargeChange and
SmallChange properties of the horizontal/vertical sc... more >>
Experienced Opinion Wanted Regarding Web Services and Url Referenc
Posted by dave at 4/24/2006 5:12:01 PM
We have a winform application. We are using ClickOnce for deployment.
Currently we can reference the web service through
http://localhost/testws/bob.asmx
When we deploy however we want this reference pointing towards a production
server. Currently we have the URL Behavior set to Dynamic (w... more >>
Tab not advancing to next control...
Posted by NFXBeats NO[at]SPAM gmail.com at 4/24/2006 4:05:41 PM
I have a winform dialog that has several text boxes and a couple
buttons. When I invoke this dialog via another winform app, it works
fine.
This particular winform app is "COM Visible" so that I can use it in a
legacy Delphi app.
Whenever I invoke the dialog via COM, everything functions e... more >>
MDAC 2.8
Posted by John at 4/24/2006 1:03:52 PM
Hi,
Please if you can read and help me in this questions, as I am beginner in
programming. I am using ADO connection to MS Access database (DAO is not an
option) in VB.NET 2005 project and I have to setup deployment of program.
1. Do you reccomend installation of MDAC 2.8 on user computer?... more >>
WinForm in IE - Slow Load Times w/ Interface
Posted by Spam Catcher at 4/24/2006 12:13:53 PM
Hi all,
I've added a shared remoting interface to WinForm in IE control. Since
adding the DLL, load times have double - it takes ~2 minutes to load. The
DLL is 16K and only contains shared interfaces.
I checked the Fusion binding log (as well as my own custom logging),
initial load takes... more >>
Is there an easy way to copy a portion of a page design from one project to another????
Posted by Hexman at 4/24/2006 11:18:36 AM
Hi All,
I've been designing/coding small segments of an application in various
projects. Now after getting the design, settings and positioning of
various controls in these 'partial' projects, I want to copy those
controls to my 'real' project pages.
For instance, I have a group box with ... more >>
Resizing and Relocating controls on a Form
Posted by FredC at 4/24/2006 8:36:02 AM
I have three "strip chart" style graphs on a form. They are located at the
top middle and bottom of the form and the cover the entire form. They are
achored to the top, left and right. When the from is maximized I get an empty
gap at the bottom and when the from is resized smaller then the de... more >>
ErrorProvider/BindingSource Problem
Posted by Jason at 4/24/2006 8:26:02 AM
Hi,
I'm trying to drop a strongly-typed DataSet onto a form, attach a
BindingSource to one of the tables as well as an ErrorProvider. The control
contains a set of TextBoxes which I bind to columns within the columns within
the same table I bind the BindingSource and ErrorProvider too.
... more >>
problem about reaching to the public member of the parent form
Posted by kkirtac at 4/24/2006 8:15:02 AM
hi, i have a MdiParent form 'Form1' , and the MdiChild of this form 'Form2' .
i have already done the initialization like form2 = new Form2( );
form2->MdiParent = this;
when i try to reach the public member of the parent form 'Form1' from Form2
like temp = Form1::member; it gives error...so ... more >>
set form position fixed
Posted by sajin at 4/24/2006 7:16:59 AM
Hi All,
I have a windows form (vb .net 2005) , after loading the form i can
move the form here and there in the screen , i want that to be not done
, meaaning that the customer could not move the form even if they move
it should not go
Thanks
Sajin
... more >>
How to track current index in the textbox string
Posted by Fiaz Ali Saleemi at 4/24/2006 6:51:24 AM
Hi All
I have developed a custom user control for onscreen Keyboard functionality.
When user clicks any button then it should act accordingly and add the
appropriate character into the string or do the appropriate action(Delete,
Backspace etc).
Now if user sets cursor in the middle of the str... more >>
Popup Control
Posted by kh at 4/24/2006 4:09:02 AM
hi. for my custom control i would like an editor to popup when the user
clicks a button, similar to the way the calendar opens in the DateTimePicker
control. the editor will need to float above the Control containing my custom
control (e.g. a Form) and not be clipped. what would be the best wa... more >>
EnableVisualStyles.manifest loadxml transformNode
Posted by Johan at 4/24/2006 2:30:02 AM
Hi!
This was originally posted in microsoft.public.dotnet.xml, but I guess that
was the wrong forum. Sorry for the repost!
Anyway, I have a problem with my app which is mixed .NET and native code. The
problem is of course with the well-known buggy EnableVisualStyles.
Now, at first I calle... more >>
How to avoid selecting column header row in DataGridView????
Posted by Hexman at 4/24/2006 1:08:04 AM
Hello All,
I have a DataGridView that I want to use only for item selection. I
have set the following properties on the dgv.
MultiSelect = False
ReadOnly = True
RowHeadersVisible = False
SelectionMode = FullRowSelect
I'm using the DataGridView SelectionChanged Event to perform some
ca... more >>
set the parent property of a treenode in treeview control
Posted by giannik at 4/23/2006 10:40:01 AM
How can I set the parent property of a treenode in vb.net after i have
populated the treeview with nodes to give the hierachical view?
for instance :
onode.parent= Parentnode
I cannot do this now because it is a read only property.
--
MySignature... more >>
Clipboard GetData with UTF-8 EURO Sign produces wrong output
Posted by Pierre Arnaud at 4/22/2006 4:12:05 PM
Hi,
I am currently trying to read the contents of the Clipboard from
a WinForms application. I am specifically interested in the "HTML
Format" format which gets stored into the clipboard when I copy
a fragment of text containing the EURO character (Unicode 20AC)
in Word.
When calling DataO... more >>
Creating 4 window quadrants in an MDI
Posted by G at 4/22/2006 3:20:12 PM
Hi there,
I'm new to the MDI functionality and wanted to know if there is a way
to subdivide an MDI into 4 separate quadrants where when a window in
one quadrant is maximized it will only fill the quadrant and not the
rest of the MDI.
It would be a bonus if there where a way to have a verti... more >>
ListView Question...
Posted by Steve Randall at 4/22/2006 10:59:02 AM
I have a listview control containing a number of columns.
When I populate the listview columns with data I want to size each column
according to the following rules:
1. If the width of the data is greater than the width of the column header's
title then size the column to be the width of the... more >>
|