|
You are looking for a masked edit control. There are several here in CodeProject. You should try searching the site first before asking.
For example, see this[^]
-- LuisR
Luis Alonso Ramos
Intelectix - Chihuahua, Mexico
Not much here: My CP Blog!
|
|
|
|
|
First you should not declare textbox as char because it contain only one letter but in properties MaxLength set value 3 then if the user tye more then 3 letter set e message box
the user cant write more then 3 letter if u set value 3 MsxLength
|
|
|
|
|
I have written a program which launches another application which displays a Tree. I have the handle to a window which displays a tree. using this handle I want to grab the tree. Is there a way I can do that. I now know that there is CWnd::Attach and Detach in VC++ . Is there a way to call this from C#. Is there anyother way to obtain information about this tree using the handle
Abhishek
|
|
|
|
|
As far as i know it is not possible to create a TreeView from a HWND in .NET.
All you can do is use the tree via pInvoke and SendMessage.
/cadi
24 hours is not enough
|
|
|
|
|
How do I log exceptions to SQL Server database using Enterprise Library Exception Blocks.
Any code samples available??
|
|
|
|
|
Greets all,
I want to access task data from Microsoft project 2003. I'm finding it hard to find information on how to do this on the web and was wondering if anyone has any experience doing this.
I'm looking for a starting point I guess. So far I have just seen that I can do a plug-in for excel or another Microsoft product, but I want to access Project data from my own custom application.
Would appreciate any insight you guys could give.
.:. Keno .:.
|
|
|
|
|
i need to print array datas within a schema i want. is it possible?
|
|
|
|
|
Why shouldn't it be?
modified 12-Sep-18 21:01pm.
|
|
|
|
|
is but how can i do that?
|
|
|
|
|
i need to save the data of a structure inside a textfile and read it again to get back that datas.
struct mystruct{
int num;
string name;
bitmap mybmp;
}
how could i do?
|
|
|
|
|
Use serialization. Look for the System.Runtime.Serialization namespace. There you'll find BinaryFormatter and SoapFormatter classes. Serializing and deserializing is very simple
mystruct s = new mystruct();
using (FileStream f = new FileStream("Test.bin", FileMode.Create))
{
new BinaryFormatter(f).Serialize(s);
}
using (FileStream f = new FileStream("Test.bin", FileMode.Open))
{
mystruct m = (mystruct)new BinaryFormatter(f).Deserialize(s);
}
Just make sure that the struct and all its members have the [Serializable] attribute set.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
what is [Serializable] field?
How can i create that for my own structure?
|
|
|
|
|
Just replace this
<br />
struct mystruct{<br />
int num;<br />
string name;<br />
bitmap mybmp;<br />
};<br />
with this:
<br />
[Serializable]<br />
struct mystruct{<br />
int num;<br />
string name;<br />
bitmap mybmp;<br />
};<br />
|
|
|
|
|
Hai is there anybody who can Help me?????
I want to create a window service programme which should include a user interface.
If you know please give me a help?
thank you.
|
|
|
|
|
Windows Services do not have a user interface and are often run without a user logged on. To create a Windows Service derive from the System.ServiceProcess.ServiceBase class. To write a controller for your Windows Service create a WinForms application and use the System.ServiceProcess.ServiceController class. A little searching on those classes and you should be able to find plenty of samples.
|
|
|
|
|
Hello All,
How can i dispaly the first recorde in the combobox blank when it is binded with the datasource
Regards
Hay
|
|
|
|
|
Change the dropdownstyle property to dropdownlist.
|
|
|
|
|
Yes i changed it but no impact it still dispaly the first record.
Thanks
|
|
|
|
|
|
ComboBox1.Items.Add("Washtington DC");
ComboBox1.Items.Add("second values");
ComboBox1.Items.Add("third value");
the ComboBox1.Items.Add("Washtington DC"); will be the first value in combobox when u run ur project.
But u have to fill ComboBOx in Form1_Load Event otherwise it will not works
|
|
|
|
|
Thanks for your reply
but the add method dosnt work when the combobox binded with datasource.
Hay
|
|
|
|
|
U have to fill it from DataBase or u trying to fill it manyally by filling urself.
if u not using dataBase the method Add have no way to do not work.
Or I suggeset you to open new C# Windows Application then drop one ComboBox and begin filling using Add method.
I hope this heslps you...
|
|
|
|
|
Thanks so much about your help.
The problem that i fill the combobox from the database and the add method dosnt work when the datasource work.
Thanks
Hay
|
|
|
|
|
i hope this helps u now
comboBoxState.DataBindings.Add("SelectedValue", customersDataSet1, "Customers.Region");
|
|
|
|
|
hi,
When i am filling a dataset from oracle table, I am getting an error 'Overflow OCI-22053'. This caused by the numeric field. There is the solution available in microsoft site also. But I just can't understand.
Please help me.
VS 2003
Uday Shetty
|
|
|
|