|
I have a TabControl that is reordering the tabPages when I run the application. There are 10 tabs right now. In the designer, they are in the order I wish them to be. But, when I run the application, they change around a bit. I have tried adding a new tab, then remove it. Still broken. Weird.
Any ideas?
Kenny O'Dell
Prinicpal R&D Software Eng
Mettler-Toledo Inc.
Worthington, OH
|
|
|
|
|
Hello
Kenny O`Dell wrote: I have a TabControl that is reordering the tabPages when I run the application
By itself?!!
Kenny O`Dell wrote: when I run the application, they change around a bit
How?
Kenny O`Dell wrote: Still broken
Define "Broken"!!
Kenny O`Dell wrote: Any ideas?
Some code would be very helpful
Regards
|
|
|
|
|
|
Hi All.
I want do make a vstd2005 setup (windows application) that will contain in itself (embedded) all pre requisites.
What option I need to choose in the prerequisites window of the setup project?
Is the "Download prerequisites from the same location as my application"?
Thx in advance.
Best regards,
Marco Alves.
|
|
|
|
|
YOu'll need whatever your app requires. If it's a C# app, you'll need the .NET framework at least, so you'll check that as a prereq (done automatically, IIRC). If your app uses any 3rd party ActiveX controls, you'll need to distribute that. If your app requires any dlls to be installed into the GAC, you'll need to do that as well as part of the install. And so on.
Marco2250 wrote:
Is the "Download prerequisites from the same location as my application"?
That means you're putting all the prereqs (i.e. .NET framework, etc.) on your website, instead of the vendor's website (i.e. Microsoft, etc.).
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: And in this corner, the Party of Allah
The apostle Paul, modernly speaking: Epistles of Paul
Judah Himango
|
|
|
|
|
Hi Judah, thx a lot.
But, if I choose this option the pre requisites will be placed into my setup "cab" file?
thx a lot.
-- modified at 15:58 Tuesday 15th August, 2006
|
|
|
|
|
Marco2250 wrote: but, if I choose this option the pre requisites will be placed into my setup "cab" file?
Ehhh I don't think so. I don't recall very well though, you'd have to try it out.
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: And in this corner, the Party of Allah
The apostle Paul, modernly speaking: Epistles of Paul
Judah Himango
|
|
|
|
|
Hello
Judah Himango wrote: If your app uses any 3rd party ActiveX controls, you'll need to distribute that. If your app requires any dlls to be installed into the GAC, you'll need to do that as well as part of the install
I thought the deployment project does that for you by checking the dependencies, doesn't it?
Judah Himango wrote: That means you're putting all the prereqs (i.e. .NET framework, etc.) on your website
I also thought that "Same location as my application" means the same folder. What website you mean?
Regards
|
|
|
|
|
Nader Elshehabi wrote: I thought the deployment project does that for you by checking the dependencies, doesn't it?
Eh, sometimes. It can find ActiveX control dependencies, but it can't always do a proper install. Often times you'll need your installer to have the ActiveX control installer run as part of it.
Nader Elshehabi wrote: I also thought that "Same location as my application" means the same folder. What website you mean?
Yeah, that's what I meant: either the vendor's website, or your deploy location.
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: And in this corner, the Party of Allah
The apostle Paul, modernly speaking: Epistles of Paul
Judah Himango
|
|
|
|
|
Hi guys,
How do I change a double value from negative to positive. i.e. -3.14 to 3.14
Please help
sasa
|
|
|
|
|
|
double negativeDouble = 0 - positiveDouble;
|
|
|
|
|
Just for the sake of completeness...
double positiveValue = (double)Math.Abs( negativeValue );
|
|
|
|
|
Use the negation operator (-):
double x = -3.14;<br />
x = -x;
---
b { font-weight: normal; }
|
|
|
|
|
Thank you guys, I went ahead using ftemp=0-ftemp;
Appreciate the response
sasa
|
|
|
|
|
Actually, that should be:
ftemp = 0.0 - ftemp;
The value 0 is an integer value. You should use a double value to make sure that your value doesn't get converted to an integer before the calculation.
The zero value is superflous, though:
ftemp = -ftemp;
---
b { font-weight: normal; }
|
|
|
|
|
Guffa wrote: The value 0 is an integer value. You should use a double value to make sure that your value doesn't get converted to an integer before the calculation.
Just to be pedantic, the integer value (0) would be widened to a double value (0.0), not the other way around.
|
|
|
|
|
|
You've got to be kidding me!! I find it interesting to see the miriad of solutions people come up with for such a simple problem. But DAMN, the performance and memory implications of this one, in a high-use situation, are just sickening!! Good job!!
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Dave Kreskowiak wrote: But DAMN, the performance and memory implications of this one, in a high-use situation, are just sickening!
yep. Apparently there are people with so little knowledge of math, they didn't realize a simple -1 multiplication would swap the sign.
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: And in this corner, the Party of Allah
The apostle Paul, modernly speaking: Epistles of Paul
Judah Himango
|
|
|
|
|
I weep for the software of tomorrow!
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Dave Kreskowiak wrote: I weep for the software of tomorrow!
I weep for the software of today (aka VS2005)
|
|
|
|
|
Yeah, I'm feeling that pain too! I'm dying to get my hands on the SP, but causiously. It seems every other SP that comes out breaks more than it fixes...
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Judah Himango wrote: yep. Apparently there are people with so little knowledge of math, they didn't realize a simple -1 multiplication would swap the sign.
Or so little knowledge of the language that they don't realize that there is a negation operator that is specially made for just changing the sign of a number.
---
b { font-weight: normal; }
|
|
|
|
|
Judah Himango wrote: Convert it to a string, remove the first character, then parse the value from the string.
That's no moon, it's a space station. - Obi-wan Kenobi
|
|
|
|