|
It's absolutely my concern
|
|
|
|
|
AFAIK Windows Vista and Windows 7 have all versions of .NET up to 3.5 preinstalled; as 3.5 is a pure superset of 2.0 (and much larger), if you don't really need the new stuff (such as WPF), it could be advantageous to build against 2.0 as this has even better chances of being present (on XP and older), and when not will download faster. I build against 2.0 unless I really need one of the extensions...
|
|
|
|
|
Indeed, build against the lowest version you can.
Don't use the latest features unless they offer a real benefit.
|
|
|
|
|
Thank guys.
Bad news is i used WPF, then i could compile against .net 3.0 or 3.5. 3.0 is as fat as 3.5, then i compiled against .net 3.5 client profile.
However, it also took close to 10 mins to download .net 3.5 client profile, then i'm looking for better solution...
|
|
|
|
|
The options are only :
1. Release your software together with .NET Framework, so the user can install it directly.
2. If you don't want .NET Framework, write your code in C++.
3. There is a tool to make .NET EXE to native code, and it is very expensive.
So.. I prefer the first one. It is cheap and easy.
Or read this :
http://msdn.microsoft.com/en-us/library/ms994395.aspx[^]
|
|
|
|
|
No, it really isn't; stop looking for problems where none exist.
|
|
|
|
|
Hey !
I was wondering if anyone knows how to wrap up a deployment ( files .. msi, setup.exe etc etc ) into one single setup.exe. ???
Is there a 3rd party product that does this or some code that I could make use of ??
Any ideas ??
Thanks in advance ..
|
|
|
|
|
Surely it is the other way round. Everything gets wrapped up into one *.msi file.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
You can write some piece of code to zip both msi and setup.exe file into one zip file, then make an executable zip file.
I myself used ICSharpCode.SharpZipLib to zip file, then use ChilkatZipSE to do the next job.
|
|
|
|
|
That is interesting.
Could you explain the logic of that, because surely you don't need a Setup.exe, if you have an *.msi installer.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
The msi file got everything, but we still need setup.exe to as a boot trapper to detect prerequisites (.net frx, windows installer, ...).
So user should run setup.exe to perform checking prerequisites, then setup.exe call msi file to begin installation process.
|
|
|
|
|
OK, thanks.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Thanks !!! Not sure if I will do it that way but thanks .
|
|
|
|
|
UBX wrote: I was wondering if anyone knows how to wrap up a deployment ( files .. msi, setup.exe etc etc ) into one single setup.exe. ???
So you already have built a deployment package?
UBX wrote: Any ideas ??
Zip it up and include it as a resource to a new C#-project. Let the application unzip the resources again, and use the Proces class to launch the executable of the installation-package.
I are Troll
|
|
|
|
|
Yes, I already have a deployment with a setup.exe and a appname.msi file.
Was just wondering how to wrap it all into one. Wasn't sure if there were some third party tools or not ...
Just makes downloading much easier ..
|
|
|
|
|
when i load the report a pop up window appears asking for the sa password
is there any way to avoid that
|
|
|
|
|
this is happening on the same machine or other
i think just specify proper userid,pwd,server
while login to report
|
|
|
|
|
I have a Winform with some textboxes and comboboxes to search values from sqlserver,
i need to recognize when my fields are empty and users dont input anything and by mean they dont need fields,and i have to know they dont want a field or this field is a null
i am looking for the best way to handle null values in textboxes and comboboxes in c#
thanks
|
|
|
|
|
I think, there are no null in textbox/combobox.
I check it using :
if(textBox.Text.Trim().Length == 0)
{
MessageBox.Show("TextBox is empty");
}
if(comboBox.Text.Trim().Length == 0)
{
MessageBox.Show("ComboBox is empty");
}
|
|
|
|
|
i want to know how to recognize null values or not required fileds when fileds are empty
for example: u have 2 textboxes name and id ,one time u want to select DB all of members that they have no id (it means in search fields id is null field----select name, id from t1 where id = null) another time u need to select members that their id is blank----(select name from t1 where id = '';)
thanks again
|
|
|
|
|
Yes, and stancrm gave you the answer. Just replace the MessageBox with your own logic.
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
What about:
if (String.IsNullOrEmpty(textBox.Text))
{
MessageBox.Show("TextBox is empty");
}
etc.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Saeed.394 wrote: the best way to handle null values in textboxes and comboboxes in c#
It's a trivial but very important question. I can give you some references which might help you decide upon the 'best'(as I donot even know the best way ) way.
1. First take a look how you are going to handle null values in ADO.NET[^]
2. Noe it's time to create some controls which can handle null values[^]
3. One more vey important control which you may need is Nullable Datetime picker[^]. I even used in many places.You might need to tweak the code per your requirement.
Let me know if this helps you.
|
|
|
|
|
You will probably need another control for user to signify they want a null value, ie
ID |Text Box| X Search for Null ID
if user enter into text box, ignore checkbox and search for ID = 'whatevertheuserenter'. If user checked the checkbox, search for ID Is Null.
|
|
|
|
|
I was reading on using the WIA to access cameras and ran across the WPD api.
I'm having a little trouble from where to start to use this. I know that it works with XP+ and I have also downloaded the Windows SDK. Do you know of any tutorials on this API?
I know you are suppose to use
PortableDeviceApi 1.0 Type Library
PortableDeviceTypes 1.0 Type Library
Any articles or anything for C# on this would be nice..
Thanks in advance
|
|
|
|