all groups > dotnet windows forms > january 2007
Filter by week: 1 2 3 4 5
Window Form Localization
Posted by Baskar at 1/31/2007 8:55:00 PM
Hi,
I have developed an application, now want to localize my application
according to regional and language option what user has selected in the OS.
To do this, Do i need to edit each and every label & captions of Form
controls to specific language?. I do not know the equivalent words for the ... more >>
Problems Firing an Event Handler
Posted by shookim NO[at]SPAM gmail.com at 1/31/2007 2:42:35 PM
I am trying to populate a combobox and then fire an indexchanged event
handler. My combobox populates fine, the problem is when it gets to
the datasource object (cmbClient.DataSource = ds), it immediately goes
to the event handler (SelectedIndexChanged), which later causes an
error. This is my ... more >>
Closing Event
Posted by Steven Spencer (Spinalogic) at 1/31/2007 11:23:13 AM
Gday,
I'm a java developer turned .net developer, and I'm unfamiliar with some
concepts, especially the event loop.
We have a form in which upon closing needs to save a significant amount of
data, and perform some thread cleanup etc for long running tasks. We have
added a handler to the... more >>
Excel grid control in Visual Studio 2005 app
Posted by Any User at 1/31/2007 10:44:58 AM
Hello
I have an Excel spreadsheet, that holds some tabular data, and a macro,
that exports it daily do SQL Server 2000 table.
Now I want to build VS2005 application, that embeds Excel grid, that is
connected directly to SQL Server.
I've seen such application (unfortunately closed source... more >>
.NET property names and translation
Posted by John Allen at 1/31/2007 9:30:51 AM
Hi there,
Does anyone know if the standard "PropertyGrid" control is (foreign)
language sensitive. If I display an object in the control, and my object has
the native .NET "Size" struct as a property (which also contains its own
""Width" and "Height" members), will someone running my app o... more >>
Get Culture Info from Language Name
Posted by lucky at 1/31/2007 3:29:07 AM
hi guys,
right now i'm going through System.Globalization Namespace. and i
found very intersting class there called CultureInfo.
i was trying to get cultureInfo on the basis of name but i didnt find
the way to do it. for example, if i pass the language name
"Danish","German",Russian", i'm sup... more >>
Clickonce deployment and XML Files at Runtime
Posted by robin9876 NO[at]SPAM hotmail.com at 1/31/2007 3:04:29 AM
In a windows form application that is deployed using the clickonce
method, the application needs to load a XML file at runtime.
How can the XML file be deployed and then is referenced in code at
runtime?
... more >>
GetPositionFromCharIndex(int index) in RichTextBox v.s. TextBox
Posted by JamesDastard NO[at]SPAM gmail.com at 1/30/2007 11:12:38 PM
Dear all,
I found the GetPositionFromCharIndex(int index) is a little different
from that in TextBox. And I have a question.
Explain:
If the length of TextBox & RichTextBox are both 2.
textBox1.GetPositionFromCharIndex(2) -> invalid, return 0.
textBox1.GetPositionFromCharIndex(1... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Alternatives to the Web Browser control
Posted by Brian Simmons at 1/30/2007 7:46:13 PM
Hi All,
Curious to see if anyone has experience or knows about any alternative
components to using the WebBrowser control.
I found this component:
http://www.syncfusion.com/products/htmlui/windows/default.aspx
Essential HTMLUI
Does pretty much everything that I'd be looking for, just ki... more >>
How to use c# to access the names that defined in excels?
Posted by marxi at 1/30/2007 5:21:01 PM
Hi:
I would like to use c# to access the names that defined in components
axspreedsheet. But I can not accomplish. why? the code like the followings:
System.Collections.IEnumerator myEnumerator =
Spreadsheet1.Names.GetEnumerator();
Console.WriteLine("The Array contai... more >>
Checkbox Text property not using new value.
Posted by Gavin Sullivan at 1/30/2007 2:51:26 PM
Hi,
I have a Checkbox on a form that I've set the Text property of. On the
designer it shows the correct text, in the Form partial class it show the
correct value, but when run, the old value that I changed from is still
appearing!!! I can find nowhere else in the code where this property... more >>
How can I build an app that can have Add-on built for it??
Posted by iKiLL at 1/30/2007 11:03:11 AM
Hi All,
As the subject suggests.
I am attempting to build a C# application from with in VS2005 that can have
add ons built for it to give it additional functionality.
It will be a Windows Mobile 5 application using CF2.0.
I know this might be a tall order but I was hoping s... more >>
datagridview as part of UserControl - error from designer: object reference not set to....
Posted by Oli at 1/30/2007 9:43:06 AM
I have written a simple UserControl that consists of a datagridview
and two buttons that control the scrolling of the grid.
All is fine and dandy - .....nearly ;)
The datagridview that's on the UserControl is actually exposed as a
property: "Grid" - this is a quick and dirty (suitable here... more >>
RichTextBox text on MDI Parent form Undo Redo etc
Posted by Jenbo at 1/30/2007 7:50:16 AM
I have a richtextbox sitting on a tab control on a child form under
the MDI parent. I have undo, redo, cut etc controls on a toolbar on
the same tab control, I can code these no problem as the richtextbox
text property is not blanking so the canundo method is fine to use. I
have these method... more >>
DataConnection wizard in application
Posted by Jakob Lithner at 1/30/2007 4:02:00 AM
I need to let the users change data connection in runtime.
I tried to let them specify the SQL connection string by hand, but it is
quite complicated to remember and an error is fatal.
I read somewhere that it should be possible to use the inbuilt connection
wizard used by the Visual Studio ... more >>
dynamic bound controls
Posted by Hergass at 1/30/2007 12:08:00 AM
Hi
I try to create a few dynamic bound combobox controls, but as soon as i
select a value from one of the controls, all the other controls are change to
the value witch i've selected.
how can I make each combo ack by itself?
Thanks in advance
Y. Hergass
... more >>
How to check for changes on the BindingSource/DataView, before they are poppulated to Datatables
Posted by buddha_bg at 1/29/2007 9:58:16 PM
Hi there,
It's a simple and common scenario, i have a data entry form with two
buttons at bottom 'Apply changes' and 'Cancel'. I use Datasets.
I want to enable/disable these buttons, depending on, if the user has
made a single change to the data in some visual control.
How do i check if there... more >>
Creating an exception viewer control
Posted by John Pouliezos at 1/29/2007 8:59:40 PM
Hi... any ideas on how to get a grip on the winforms control used by the
..net to show the details of an exception ?... more >>
switching between code and winform
Posted by .:Alex:. at 1/29/2007 12:28:26 PM
Hello,
I have this very annoying problem. for example I have a class , a
partial class of a Form. When I modify some code in this class and I switch
to the Form, I have to wait some time to refresh the control. It's very
interesting because I don't modify a param regarding the form...
... more >>
DataGridView sample for filtering and browsing through data
Posted by olympus_mons NO[at]SPAM gmx.de at 1/29/2007 10:59:24 AM
Hi,
I'm sorry if this is obvious, but as I'm just starting my C# adventure
with VS2005 I dare to ask:
Can somebody point me to a C#-sample showing what are the best
techniques to:
- present a window with e.g. a combobox with data from a lookup-tabe
and a simple text field and an empty D... more >>
Adjusting button height by font size
Posted by Bilz at 1/29/2007 10:33:30 AM
All,
I came across some code that doesn't work very well. It adjusts the
size of a button based on the font that we use. The font can be
adjusted by the user.
using (Graphics g = this._btnClose.CreateGraphics())
{
this._btnClose.Height = (int)(g.MeasureString(this._btnClose.Text,
... more >>
help me to create an array of controls at runtime
Posted by Philip at 1/29/2007 9:05:00 AM
Hi,
I have built a control consisting of two listboxes and a button. The idea is
that I populat ethe list on the left, and the user selects items that are
added to the listbox on the right. This list is exposed by my user control as
an array.
I want to bve able to add multiple controls a... more >>
Force IE to re-read the registry
Posted by Karin at 1/29/2007 7:14:01 AM
Does anybody knows if there's possible to force Internet Explorer to re-read
the registry for Internet Options?
I have built an Windows Forms application which changes proxy-settings in
the registry
(HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet
Settings). The appli... more >>
Property sheet and property pages in winforms
Posted by Thomas at 1/29/2007 3:02:07 AM
hi,
I want to create a wizard based application in .net (winforms)
In MFC/Win32 same can be achieved using property sheets and property
pages.
Whats the equivalent in .net?
regards,
Sachin
... more >>
SplitContainer
Posted by Steve Randall at 1/29/2007 2:19:01 AM
In products like the new version of Outlook the splitter bars contain a
series of 'dots' in the middle to indicate and highlight the splitter bar. I
see this is not available using the SplitContainer control in Visual Studio.
Is it possible to draw these 'dots' on the splitter bar? I have tri... more >>
RunWorkerCompleted call from worker thread in VB CCW
Posted by Dicky at 1/28/2007 10:20:00 PM
I have a .net library with backgroundWorker object, and it is working fine in
..net environment. Then I exposes the library to VB application to call. Using
standard Callable COM Wrapper (CCW) method, the method can be called, but I
notice that backgroundWorker_RunWorkerCompleted() method will... more >>
Steps Involved in transforming the code to MSIL
Posted by Ravi at 1/28/2007 9:56:01 PM
Hi All
i am new to this group, i would like to know the steps that CLR takes to
convert the code to MSIL.
Thanks
--
ravib... more >>
Form Icon
Posted by Craig at 1/28/2007 6:07:00 PM
Hi
If you have a form where the FormBorderStyle=Sizable and no icon is assigned
to the form; you get the WindowsForms 'generic' icon.
Is there a way to remove the 'generic' icon and have no icon displayed?
I tried setting the Icon property to Null in code but this didn't have any
ef... more >>
Binding to combo and checkbox not synching
Posted by Flomo Togba Kwele at 1/28/2007 4:19:04 PM
I have some comboxes and checkboxes on a UserControl, all of which are
bound to a BindingSource.
When I bound the bindingsource to the checkbox Checked property and
the user accepted the default (unchecked, false), the bindingsource
blew in the EndEdit event of the bindingsource on a null valu... more >>
Random numbers weird behavior
Posted by rlueneberg NO[at]SPAM gmail.com at 1/28/2007 4:22:55 AM
I want to output a string of random integers with 20 rows and 20 cols
separated by comma.
The problem I am having is that it is always printing the same number
like below:
6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,
6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,
6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,... more >>
simple path problem
Posted by Patrick F at 1/28/2007 4:11:01 AM
How do you get the path to the folder the program is in.
Lets say i have something like this:
c:\programs\myprogram\another folder\program.exe
now in my program i want to get the path,
c:\programs\myprogram\another folder\
I tried something like:
System.IO.Path.GetFullPath("\\")
but... more >>
Starting from ....
Posted by Gabriel at 1/27/2007 5:20:20 PM
Hello,
A very small question, how set the starting form in a Winforms projects (VS
2005, C#2.0).
I check in the project properties but I didn't see a way to select a form to
start.
Regards,
... more >>
windows xp proffesional
Posted by MEngstudent_07 at 1/27/2007 5:12:02 PM
im having trouble booting my windows xp professional it gets to the loading
screen and then just goes blank, it seems to only start up in safe mode and
after trying to re-install xp 3times and checking for driver errors (repaired
sm bus controller ) loaded Nvidia drivers im lost for what to d... more >>
simple combobox question
Posted by Patrick F at 1/27/2007 6:15:01 AM
Hello, just a simple comboboxquestion. i am using Visual Studio 2005 and .NET
2.0.
I have a combobox on the form and i want that combobox to be locked, so the
user can select a value, but the user cannot change the values inside of the
combobox.
Like a normal dropdown list on a internet webp... more >>
DirectoryInfo - How To Get Name in Proper Case?
Posted by Jeff Gaines at 1/27/2007 5:20:35 AM
I am writing an app where I want to save a directory path, provided it
exists.
If a user enters a path 'c:\temp' I can set up a new DirectoryInfo and
check it exists. Unfortunately the data inside the DirectoryInfo returns
the path as 'c:\temp' whereas it is actually 'C:\Temp'.
Case insens... more >>
Non-proportional (non Rectangular) resizing
Posted by GraGra33 at 1/26/2007 9:47:12 PM
Hi all...
I have developed an application for managing a very large resource of
artist's paintings and posts them to a web site. The application works well.
I'm trying to reduce the complexity of having to work with photoshop and
integrate one feature into the application > Distortion Transfor... more >>
Creating a web form to insert records into an SQL Server 2000 database
Posted by asp.net Newbie at 1/26/2007 1:48:32 PM
Hi all, I am completely new to ASP.Net and have a question regarding
ASP.Net 2.0. I want to create a custom web page that's only function
is to insert new records into a database. I want to have serveral
textboxes for user input and then a button. On button click I want the
data from the te... more >>
Studio 2005 and the ".Designer" file...?!? Code practice in properties.
Posted by Seth Gecko at 1/26/2007 9:18:34 AM
Hi
I have a created a custom usercontrol which inherites an Excel like
usercontrol. In this usercontrol I have a custom property called
SpreadTemplate, which is an enum with (at the moment) two members
called None and Pipeline.
When I set this property at design time it sets up the activesh... more >>
Using files in a ClickOnce Deployment
Posted by robin9876 NO[at]SPAM hotmail.com at 1/26/2007 8:48:31 AM
In a Windows application in VS 2005 VB.Net I have a XML file that needs
to be used in the application on the client pc. How do I reference this
file in code as it is not copied to the same location as the
application file?
... more >>
WinForm app write to command line
Posted by kh at 1/26/2007 1:48:00 AM
If my winform app is started with command line arguments i need to be able to
execute some code and then write back to the command line from where the app
was started. is this possible?
thanks
kh... more >>
DataGridView
Posted by Victor Rodriguez at 1/26/2007 12:05:16 AM
What's the best way to change the current record selected on a DatagridView
control using code in VB.NET 2005/C#.NET 2005?
Thanks,
Victor
... more >>
How to make a DataGridViewComboBox column more reactive?
Posted by Massimo at 1/25/2007 9:09:16 PM
I'm developing an application where there's a DataGridView and one of its
columns is of DataGridViewComboBox type. The combo box behaves as it should,
but I find it's a little too unfriendly to users, because of its very
lazy-looking behaviour.
I, as an user of the application, would like t... more >>
Form.Dispose method
Posted by Max2006 at 1/25/2007 5:21:36 PM
Hi,
Considering the fact that Form.Dispose method is implemented in the Designer
partial class, what would be the best way to have my own Dispose logic?
I assume that I should not modify the designer code and I am not sure how to
implement a Dispose method for my form.
Thank... more >>
ComboBox updating data source via look-up table
Posted by Dave S. at 1/25/2007 2:32:04 PM
Hi - first post and not quite sure which board to post to as it involves
windows forms and data access .... sorry if wrong one chosen!
I am developing a database project for my small vehicle trading business,
and thus have a cars table and (among others) a colours table. I use a combo
box ... more >>
constraint programming
Posted by Pieter at 1/25/2007 1:06:52 PM
Hi,
How can I include contraints in VB.NET (Windows Forms, 2.0), using Objects
with Propertys?
I need several property's be recalculated when others change, but not in a
straightforward way: When A is changed, B has to change, but when B changes,
A has to change (or C or ...).
Untill no... more >>
Design Question: onChange Event populating a second list box
Posted by Paul Hadfield at 1/25/2007 9:43:20 AM
I'm looking for thoughts on the "correct" design for this problem (DotNet
2.0 - in winforms). I've got two combo boxes (combo1 and combo2), both are
populating via database calls (using a separate DB handler class). "combo1"
contains a list of countries and is fairly static, it can be added... more >>
Form Transparent areas, regions and Windows 2000
Posted by Antonio Bruno at 1/25/2007 8:46:03 AM
Hi,
I'm implementing irregular shaped Windows Forms using the Region property in
..Net 2.0 (I'm not using TransparentKey to account for color depths > 16bpp)
I build the region mask adding 1 pixel high rectangles until all the area I
want to be transparent is covered (this tecnique is pre... more >>
Data Replication from Windows Form to SQL Server
Posted by robin9876 NO[at]SPAM hotmail.com at 1/25/2007 8:17:42 AM
In VS.Net 2005 Is it possible to replicate data between a windows form
and a SQL 2005 database?
... more >>
AJAX technology within WebBrowser control?
Posted by JezB at 1/25/2007 8:10:49 AM
Does anyone know if AJAX technology can be employed within a WebBrowser
control running in a rich client application ?
If so, what's the best way to attach AJAX libraries and tap into their
functions? And does this add any issues to deployment of the application ?
... more >>
DateTimePicker Fast Data entry problem
Posted by WoodenSWord at 1/25/2007 7:44:03 AM
Hello,
When i enter a date in datetimepicker (vb 2005) i have to press to key "/"
or the key right to get from day to month and then to year. That can be a
major drawback for fast data entry. I want to type just the day and the month
and the year.no other characters
Is there anyway to ov... more >>
|