|
Is it possible that those two PCs have different culture-specific OS versions with different decimal seperators ('.', ',')?
I'd lost almost a day once, when I was searching for an error that only occured on my english work pc but not on my german home machine. To get around this I used overloads that take an IFormatProvider implementation and passed in a fix CulturInfo object.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
Hello,
Maybe "Double.TryParse" is what you are looking for.
Would also solve the problem with the culture information of your Laptop. (See Stefan Troschütz's post before)
double d;
if(double.TryParse(Combobox.Text,System.Globalization.NumberStyles.Float, CultureInfo.CurrentCulture, out d))
{
}
Hope that helps you.
All the best,
Martin
|
|
|
|
|
I have a code which is using org.pdfbox.pdmodel & .util. This is a code given to me. When try to compile I get "The type or namespace name 'org' could not be found (are you missing a using directive or an assembly reference?)". Could anybody, please put me out of this pain by telling me how to rectify this issue?
Many thanks
Behzad.
|
|
|
|
|
Hi friends ,
Please let me know how to disable shortcut keys to desktop in a windows application...?
for example : to disable ctrl+alt+del;alt+tab etc...
Plese let me know if u have sollution for this...it would be a really great help..
thanks in advance.
Live Life King Size
Asif
|
|
|
|
|
You *might* be able to do this using keyboard hooks (look up SetWindowsHookEx at the http://pinvoke.net website), but you really *shouldn't* do this. Those keys are reserved for the operating system; what business does an application have stopping such things?
|
|
|
|
|
I have created a login page for my project and it is working fine. After entering the login information and clicking the "Login" button of the first form,
I need to open another form where the user enters the details about his name etc, but I dont know how to activate and pass control to the next form.
Please help me and tell me by which method I will be able to redirect the user to the new form.
Many many thanks in advance.
Regards,
Mini
|
|
|
|
|
Response.Redirect is one of the many ways you could do it. Google knows them all.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
What is this Google you speak of?
led mike
|
|
|
|
|
It is that mythical beast - the 1 with one hundred zeros.
Arthur Dent - "That would explain it. All my life I've had this strange feeling that there's something big and sinister going on in the world."
Slartibartfast - "No. That's perfectly normal paranoia. Everybody in the universe gets that."
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
I have got the solution. We can use ..
{....
.....
Form Form2= new Form2();
this.AddOwnedForm(Form2);
Form2.Show();
}
at the point after where we wants the application gets redirected from Form1 to Form2.
have fun
|
|
|
|
|
hi,
u can do this using 2 methods.
1. just take one Submit button and change the text as "Login".
in the form tag set the action parameter as the page u want to open when the user click on submit button.
2. just u can use Response.Redirect("Page2.aspx") in submit button click
Regards,
Rahithi sharma
|
|
|
|
|
Google also knows the Server.Transfer() method... shhhh... it's a secret that they hide in the documentation[^].
led mike
|
|
|
|
|
led mike wrote: Google also knows the Server.Transfer() method... shhhh... it's a secret that they hide in the documentation[^].
Jedi should not reveal the secret of our success.
Arthur Dent - "That would explain it. All my life I've had this strange feeling that there's something big and sinister going on in the world."
Slartibartfast - "No. That's perfectly normal paranoia. Everybody in the universe gets that."
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Hi All
when using some Component writen in Dotnet
i succesfully get result while using it from dotnet application ,
but getting the error while using it from a vb6 application.
Cannot perform '<=' operation on System.DateTime and System.String
the component is getting xmlString and return a string
and i using a .tlb file referenced to the vb6 application
the wierd thing is (and i checked it several times on several computers)
that when dotNet Framework ver-1 installed then it work fine
but, when dotnet 2 installed then i get the message : "Cannot perform '<=' operation on System.DateTime and System.String"
what can couse the difference between the senarious.
anyone ?? need a help here...
thanks, guy
|
|
|
|
|
guygo wrote: Cannot perform '<=' operation on System.DateTime and System.String
Well, you're obviously dealing with two different datatypes, I'm guessing you want to convert the string to a datetime.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
well i know ,
but how is it working for framework one and not for framework 2
the dateformat is : yyyy-mm-ddTHH:mm:ss.fff
is this format is a known format for these platforms ?
and to remind i'm using a dotNet dll via vb6 application
guy
|
|
|
|
|
I'm having troubles trying to get my MainMenu component to display in my C# program.
I created my MainMenu object by dragging it from the Windows Form components in the .NET Toolbox onto my main Form. It looks like it is there as it is added in the
"#region Windows Form Designer generated code" area. But when I run the program, the menu items do not display and you cannot click on anything.
Can someone please help me? Thanks in advance.
|
|
|
|
|
Every type of object has the method GetHashCode(). I want to learn what the number return by GetHashCode method use by programmers. And is it releated with hash tables
karanba
|
|
|
|
|
A hash code is used to get a compact value that can be used to efficiently compare large values. A good hash code is created from all data in the value, has an even distribution over the possible hash codes, and shows a large difference in the hash code for a small change in the value.
Hash codes can be used to see if two values are different, which for example is used to compare large files. Even if they only differ by a single bit, their hash codes will be completely different.
Hash codes are used in hashtables to arrange the data so that a key can easily be found using the hash code of the key. To keep the search tree balanced, it's important that the distribution of the hash codes is even.
---
b { font-weight: normal; }
|
|
|
|
|
Thanks very much. I got the subject.
karanba
|
|
|
|
|
I have a user control with a panel on it which I paint rectangles and text on using the following method - Graphics mg = this.CallsPanel.CreateGraphics(); When I minimize or switch back and forth between other application windows, I loose the graphics. I have been trying to figure out which event to wire a re-paint function to but am not having much luck. Or, is there a way to anchor the graphics that have been painted until I invalidate and update the panel?
|
|
|
|
|
tjschilling wrote: Graphics mg = this.CallsPanel.CreateGraphics();
NEVER do this. There is no way to solve the problem you're now having. Draw in your paint event and call Invalidate to force it to occur.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
I moved the calls to my re-draw to the paint event for the user control and all is well.
Looks like you gave me what I needed.
Thanks.
|
|
|
|
|
Don't just do the re-draw in the Paint event, do all drawing there. Call the Invalidate method of the control when it needs to be redrawn.
Make sure to use the Graphics object that is supplied in the EventArgs for the event, and not create your own.
The supplied Graphics object is clipped to the area that should be redrawn, if you create a new one it won't be clipped, and you might draw on top of someone elses window.
---
b { font-weight: normal; }
|
|
|
|
|
how to generate a new label for every click event of a send button in panel in a new row in asp.net c#.please see the code below.its working but not creating new label in a new line withfirst label vissible
i am trying to write code for chating application.Please help me as soon as possible..
private void btnSend_Click(object sender, System.EventArgs e)
{
System.Web.UI.WebControls.Label lbl=new Label();
lbl.Text=entr;
Panel1.Controls.Add(lbl);
}
|
|
|
|