|
Hi,
MS Outlook has a cool control that's a combobox, a textbox and a label. The combobox selection (marked with a check) shows in the label and the value goes into the textbox. The control is used to select which TYPE of phone number (home,mobile...) to allow the user to alter in the textbox.
I know I could build a similar control, but I'm hoping that the control is available in some type of common control dll. Is it? Or something similar?
thanks,
Deanna
|
|
|
|
|
I just finished my calculator in C# but i've found a bug which i don't know how to solve. When i do calculation ( 3,1-3 ) i get answer 0,0999999
rather than get the correct answer 0,1.
I heard that early versions of windows had this bug in their calculator...I will paste here some code where the problem might be,
but i am not entierly sure if it is this peace of code.
/*******************************************/
private float changeTextToNumber()
{
string text = textBox1.Text.ToString();
float returnNum = float.Parse(text);
rensa = true;
return returnNum;
}
/*******************************************/
|
|
|
|
|
|
I have no solution regarding your question, but some annotations to your code snippet.
1. You don't need to call ToString for the Text property as it already returns a string.
2. Put the call to Parse into a try block to catch exceptions if your textbox displayed no valid numeric string.
www.troschuetz.de
|
|
|
|
|
Use the decimal data type. It's a 128 bit number with 28-29 significant digits.
Marc
|
|
|
|
|
Thank you for the answers. I will try them and if/when i solve the problem i will tell you guys what was wrong.
|
|
|
|
|
Hi everyone,
I create a windows application with access database and I would create a windows installion. My problem as following :
1) Everytime a reinstall my application to client. The installer always keep say remove our old version on target computer (I need manually to remove) and then install my new vesion application.
2) Everytime I uninstall the application on my client computer. The database is removed too. I would like to keep the database on my client computer.
Is anyone know how to solve it ? I use Microsoft Visual Studio .NET 2003
Thank you
|
|
|
|
|
Inquire2you wrote:
2) Everytime I uninstall the application on my client computer. The database is removed too. I would like to keep the database on my client computer.
Set the Permanent propoerty of file in solution explorer to false.
Mazy
"One who dives deep gets the pearls,the burning desire for realization brings the goal nearer." - Babuji
|
|
|
|
|
http://sourceforge.net/projects/hypernetdb/
Those who know SharpHSQL might be interesting in this project.
Quote:
ABOUT
-----
This project was developed in order to help users that uses databases like
commercial ACCESS for small projects and then are subject to commercial
laws. This is a simple solution for a database engine that can supply
a good power to normal database tasks.
This driver is free (GPL).
|
|
|
|
|
Hi,
I am working on an Exam Application , I wonder if there is an easy way to
display mathematical expressions in VS.NET (C#). Calculation part is not
important.Main problem is displaying expressions same as in the real world.
for example
5+7
----- -> if its in the square root?
5+2
is richTextBox enough?
any articles , suggestion or solution from you , I would be glad...
Thanks...
|
|
|
|
|
I think most applications that does that, uses special fonts. I suggest you look for some, and then perhaps try manually painting it. Shouldnt be too hard
top secret xacc-ide 0.0.1
|
|
|
|
|
Hi,
im looking for a method to poll a email client such as outlook or outlook express every few minutes to see whether a new mail has arrived
any ideas
Thanks
|
|
|
|
|
|
bascially,
we are looking for a method
to find out when a new mail arrives,
when it arrives and is from a certain sender,
we then want to detach the file attachment
and use the detachment in our application
|
|
|
|
|
Hello,
I am creating an application. But now i have added a login form, which i want now to be the new startup form.
I am not sure how to change the startup form. I have tried going through all the properties, but can't seem to change it to the new login form.
Many thanks in advance
Steve
|
|
|
|
|
Could it be that you're more of a VB-person?
Ok, seriously, in C# a Windows Forms application is usually run by instantiating a form (can be anything, no special properties required) and feeding this form into Application.Run() .
This is done in a static class member called Main , also in an arbitrary class.
If you have several classes with a static Main method then you'll have to tell VS.NET which one to use.
So you just have to find the Main() method in your project, where you'll find somethng like:
Application.Run(new Form1()); and change it to
Application.Run(new NewLoginForm()); (or whatever the name of your login form class is).
Mav
|
|
|
|
|
As you said, we can write down the following code:
namespace somenamespace
{
public class form1()
{
...
static void Main()
{
Application.Run(new form2());
}
}
}
So, can I take the Main() method as an independent entrance in the form?
hello, world
|
|
|
|
|
This one is simple enough, for something like this, you DON'T change the start up form. Your main form should call the login form to get it's authentication information before showing itself.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Thanks for you help,
I am new to C#, but l think VB is much more simple at doing this.
Steve
|
|
|
|
|
No, not really. THe two languages are closely related and they both use the same classes and compile to the same IL. It only seems more easy because you're more familiar with VB...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
|
|
sorry.
In fact, I mean how to implement a registration key or serial no for a shareware.
Regardless, thank you!
|
|
|
|
|
|
Hello,
Does anyone have an example of using the RASDial or RASApi32.DLL with C#? I am looking to be able to create a VPN connection programatically from within an automation application. I need to be able to establish a VPN connection nightly and download a file from a server. I have found a VB6 example of using RASApi32.DLL and launching the DUN for the VPN configuration, but would rather work with C#.
Thanks
|
|
|
|