|
You could use a label/textbox/... with a script font, i.e. a font resembling handwriting.
Examples: Bickley Script, Blackadder ITC, Brush Script MT, Edwardian Script ITC,
Fine Hand, Freestyle Script, Gigi, and many more.
|
|
|
|
|
Hello
How can I export data from excel and import to sql server with c#?
thank you
t
|
|
|
|
|
You can open an OLEDB connection to read the data from Excel. If you are using SQL-Server 2005 then there is a SqlBulkCopy task that allows you to stream-in a DataReader instance.
|
|
|
|
|
|
In that case you will need to set up a SqlCommand instance and execute for each row in the Excel DataReader.
|
|
|
|
|
I want to know that is it possible to convert Text to handwriting graphics programatically.
If Yes then tell me how to start with it.
|
|
|
|
|
There are fonts that look like cursive writing. HansHand and Monotype Corsiva come to mind.
Try rendering the text with one of these fonts.
Cheers,
Vıkram.
Déjà moo - The feeling that you've seen this bull before.
Join the CP group at NationStates. Password: byalmightybob
|
|
|
|
|
can you give 2/3 lines of code .
I want to know how to use fonts. please
|
|
|
|
|
Check out the DrawString method on the Graphics object.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
MessageBox.Show(Convert.ToString(1/3));
I dont want it to be rounded to 0!
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
MessageBox.Show(Convert.ToString((float)1/3));
sorry
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
Better to go with double s. If precision really matters (eg: dealing with money) go for decimal .
Cheers,
Vıkram.
Déjà moo - The feeling that you've seen this bull before.
Join the CP group at NationStates. Password: byalmightybob
|
|
|
|
|
Or do like this:
MessageBox.Show(Convert.ToString(1.0/3.0));
Regards,
Arun Kumar.A
|
|
|
|
|
Hi,
Im Using C# With ASP.net,im having a textbox And One number button and one text button,actually what i need means if i click number button means the textbox should accept only the numbers and text button means the textbox should accept only letters,for accepting only number and text i have wrote script for that one how should i call this function and change the functionality of the textbox..Help me..
rgrds
Kanna...
|
|
|
|
|
Hello,
I would inherit my TextBoxSpecial, which has all the features of only accepting numbers or letters. Then give it Property for switching to the mode you whant it to be.
This could be a enum for example:
public enum ModeTextBox
{
numbers= 0,
letters= 1,
}
private ModeTextBox _mode= ModeTextBox.numbers;
public ModeTextBox Mode
{
get
{
return _mode;
}
set
{
_mode = value;
}
}
This property can than be set from your button click event!
Hope it helps!
All the bset,
Martin
|
|
|
|
|
Hello,
I'm allways interested in a feedback, specially if my suggestion doesn't get your or somebody elses acceptance.
All the best,
Martin
|
|
|
|
|
Hi,
I have a user control with a property of type Hashtable. When using a propertygrid control to edit this property at design time, the Collection Editor shows, but all buttons (including the Add button) are disabled.
how to enable the add/Remove buttons for adding entries in hashtable in design time??
Thanks
Tushar.
|
|
|
|
|
hi all,
i want to Update my Windows application from client's side, i mean after the application has installed on clients machine if my client wants to update the application he should be able to update,
i don't know how to do this,
i have done in several ways by using ClickOnce but left with many errors and finally left using that tooo,
i don't know why but when i apply the same process to a sample application its working but when i use the same ClickOnce process to my actual application its not installing in my system.
Thnx in advance
prashanth
prashanth,
s/w Engineer,
Syfnosys.
|
|
|
|
|
hi, i want to remove a sequence of termination characters from network incoming message.
Assume the bytes recieved after encoding is "Data*Data*Data\0\0\0\0\0\0\0\0\0\0\0\0\0\0" i want to remove the all \0
|
|
|
|
|
you can use string.Remove(int index) and string.IndexOf(string value) to get the index of the "\0"s and remove it...
or you can use the string.Replace(string oldValue, string newValue) like this:
<br />
string message = "Data*Data*Data\0\0\0\0\0\0\0\0\0\0\0\0\0\0";<br />
message = message.Replace(@"\0", "");<br />
|
|
|
|
|
thanks for your reply, but i'm did it now and it doesn't work, but i tried another solution
Info = Info.Replace('\0',' ');
Info = Info.Trim();
for any one who wants to know thank you skatzteyp
|
|
|
|
|
oh yeah... '\0' is supposed to be an escaped character so treating it as string can't do the job... so using char solves it..
|
|
|
|
|
Darkman_nofear wrote: thanks for your reply, but i'm did it now and it doesn't work, but i tried another solution
Info = Info.Replace('\0',' ');
Info = Info.Trim();
The problem was that the escape code was not recognised as the string was prepended with @. You don't have to replace with spaces, just use:
Info = Info.Replace("\0", String.Empty);
---
single minded; short sighted; long gone;
|
|
|
|
|
Hi... I created a MDI application and the parent form is trying to read a binary file and stored it in public 2D array, aiData[10240, 12]. I have a child form which will draw a graph from the data that is stored earlier on and I associated this draw method with the Paint() of the child form. The problem is when I tried to open a another binary file, the old graph is overwritten by the new data. So how can I keep the old graph while having the new graph displayed in another child form?
thanks.
|
|
|
|
|
You would be better off separating the data out as it seems to be entwined with the presentation logic here. Take a look at the MVC pattern to see how this could help you.
Deja View - the feeling that you've seen this post before.
|
|
|
|