| |
thread by: Mike L |
last post Nov 17 '05 by: Mike L
The user to only select items in collection of a combo box.
My combo box was "AM" and "PM" in the Items property. I want the user only
to be able to type in "AM" or "PM". Right now I can type anything in the
combo box, like "QQ". How do I force the combo box to only allow items in
the collection to be selected and/or entered?
|
thread by: LDD |
last post Nov 17 '05 by: LDD
Are there any built in time and/or date validation methods that one can make
use of in .NET?
thanks folks
LDD
|
thread by: dale zhang |
last post Nov 17 '05 by: dale zhang
Hi,
I build a web form with a 4-cell table on the top (flawlayout), followed by
some labels and textboxes (gridlayout). The web form is displayed well in
dell m60 laptop with all resolution options and DPI options. However when I
tried to run it in a dell P3 desktop, labels and textboxes overlapped each
other and they were in table area...
|
thread by: Greg |
last post Nov 17 '05 by: carion1
Is it possible to create a public Hash Table in Windows Forms?
I.e., I place the Hash Table construction in the constructor of the
form. But I would like to be able to reference it later in another
class (i.e., not reconstruct it everytime).
I have tried using the public keyword and this has had no affect.
Any ideas? Do I need to...
|
thread by: needin4mation |
last post Nov 17 '05 by: Bob Powell [MVP]
In this code:
XmlTextWriter myWriter = new XmlTextWriter(@"C:\Xmldata\myWriter.xml",
null);
Why do they have the @ at symbol? Why not just the string?
|
thread by: John Smith |
last post Nov 17 '05 by: John Smith
Hello all:
I have a databound combobox (sorted alphabetically) that I wish to have
a couple items moved to the top of the selection list so that everything
but these two items are sorted in alphabetic order. The reason being
these two items will be the most frequently used and as such would be
better on the top rather than having to scroll...
|
thread by: Gene Vital |
last post Nov 17 '05 by: Bob Powell [MVP]
What is the easiest way to get the width of a string based on font metrics?
|
| |
thread by: Gene Vital |
last post Nov 17 '05 by: Gene Vital
Hey all,
I am looking for a way to have a textbox autovalidate once the number
of characters entered is == MaxLength. As it is now you have to hit tab
to go to the next control.
|
thread by: vertigo |
last post Nov 17 '05 by: Nicholas Paldino [.NET/C# MVP]
Hello
When i tried to:
pictureBox.Size.Width = 100;
i receive:
DscFile.cs(58): Cannot modify the return value of
'System.Windows.Forms.Control.Size' because it is not a variable
Why ?
How can i change it's size ?
|
thread by: needin4mation |
last post Nov 17 '05 by: Alex Passos
Please consider this code:
XmlTextReader reader = new XmlTextReader("FileList.xml");
ListViewItem lvi = new ListViewItem();
try
{
lisInfoList.Items.Add("Starting XML file read...");
while (reader.Read())
{
|
thread by: Raed Sawalha |
last post Nov 17 '05 by: Alex Passos
I have a treeView with nested Items, I need to set for each node in tree a
specific data like following
Root---
---Node1 (here i need to attach url for each item so when user click
it display it in DHtmlDialog)
---Node2
---Node3
so my question how to set this data for each item?
|
thread by: rhaley |
last post Nov 17 '05 by: rhaley
I have a mutli threaded application that needs to update XmlAttributes
in an XmlDocument. Different objects need access to the same file at
various times. The problem is I get an IO error - "The process cannot
access the file..." - every now and then.
Is it possible to lock down this file to enable syncronous access (i.e.
if the file is...
|
thread by: needin4mation |
last post Nov 17 '05 by: gmiley
Hi,
foreach (ListViewItem item in listViewFiles.Items)
{
MessageBox.Show(item.SubItems.Text + ", " + item.SubItems.Text);
string source=item.SubItems.Text;
string destination=item.SubItems.Text;
File.Copy(source,destination,true);
item.SubItems.Text="Success";
}
|
thread by: Mike L |
last post Nov 17 '05 by: Mike L
This is for a Win form.
SP sends back the PostMark date to my datagrid, shows proper date in
datagrid. When user clicks on datagrid, the code sends the current row to
text box. The text box shows the date and 12:00:00 AM. How do I get rid of
the time?
My code below.
int rowNum = dgDealerInfo.CurrentCell.RowNumber;
|
thread by: |
last post Nov 17 '05 by: Edgar A. Poe
|
| |
thread by: Senthil |
last post Nov 17 '05 by: Jon Skeet [C# MVP]
Hi,
The need is to read each line in a text file and based on the read
data decision has to be taken whether to reposition the file pointer. The
StreamReader.Position does not give current position. But it gives position
in multiples of 1024. Also, I am not finding a way to reposition the pointer
using FileStream-StreamReader combination....
|
thread by: vertigo |
last post Nov 17 '05 by: Siva M
Hello
I have TabControl and some TabPages in it. How can i make active these
pages ?
(i have button on Page1 and after pressing that button i want to see
Page2).
Thanx
Michal
|
thread by: Chumley Walrus |
last post Nov 17 '05 by: Mark R. Dawson
This may be easier than I think, but I need to find a quick way to
change a datetime object to string, as the following
mydateobject = mydateobject.ToString();
renders the error: Cannot implicitly convert type 'string' to
'System.DateTime'
|
thread by: |
last post Nov 17 '05 by:
Not just in outlook (express) VBA, best using C# or other .NET languages.
|
thread by: Dragomir Goranov |
last post Nov 17 '05 by: Dragomir Goranov
Hello,
I use this code to add users to LDAP directory. I always get the error
"The
server is not operational". Could you please tell me what is wrong?
strServer = "localhost";
strPort = "389";
|
thread by: yaron |
last post Nov 17 '05 by: Helge Jensen
Thanks.
|
thread by: vertigo |
last post Nov 17 '05 by: Jeff Louie
Hello
I need to create some objects durring program execution - but it's names
are dynamically generated (depends on parameters). How can i do it ?
Thanx
Michal
|
thread by: needin4mation |
last post Nov 17 '05 by: needin4mation
Hi, I took the ListView control from the toolbox, put it on the form,
and when I tried to compile this (from my constructor):
listViewFiles.Columns.Add("Source",-1,HorizontalAlignment.Left);
I get an object reference not set error. The control on the form has
this created by VS:
private System.Windows.Forms.ListView listViewFiles;
|
| |
thread by: Visual Systems AB \(Martin Arvidsson\) |
last post Nov 17 '05 by: Dan Neely
Hi!
Is there a way to customize a dialogbox. I want buttons with the text:
Yes, No, Yes to all, No to all..
Also a dialogbox with a CheckBox.
Regards
Martin
|
thread by: needin4mation |
last post Nov 17 '05 by: gmiley
Hi, I read this in a book about the Xml classes in c#:
"These classes are abstract and therefore must be extended."
I just wanted to know what this statement means. I know it is not in
context, but the author gave it in such a matter that it appears
experience folks will know what it means to say a class is abstract and
extended.
...
|