|
Hi,
I am working with C# .net. I have created a software application and the application works fine. But I am not able to launch my product as the .net framework is creating a problem. My application size is just 1MB but the framework makes it heavy. No user would like to download 30 MB from internet to run the application.
I don't understand Microsoft says the VS is framework independent then why a C# application installer needs framework.
Is there a way to remove the dependency?
Looking forward to hear a solution.
Thanks in advance
|
|
|
|
|
No, Target machine must have DNF else application wont launch. And these days almost every pc have DNF installed and even if not then your application must enough useful and attractive to force user to install DNF. But if you're selling your app then you can provide a setup of DNF alongwith the installation disk.
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN%
R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
-----------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
Waheed Ur Rehman wrote: I don't understand Microsoft says the VS is framework independent then why a C# application installer needs framework.
Managed code is not dependant of VC redists so this avoids the DLL hell.It could be ported to another OS like Linux or MAC and with almost zero touch.So .NET code is much more safer and easy to deploy than unmanaged C/C++ code.NET runtime by default is part of Vista ,Windows 7 and Windows Server System(2003,2008) and XP soon will be marked as depricated,so you needn't to worry about .NET dependencies.
Life is a stage and we are all actors!
|
|
|
|
|
Is there no solution to remove DNF 2.0 from the application. The issue is the resulting size of the application. If I embed DNF or make the user to download and install from the web the application size increases more than 20 times of the actual size of the application.
|
|
|
|
|
No. No more than you can write an MFC/VB6 application that doesn't depend on the MFC/VB6 rumtime being installed.
There is software that will compile the needed parts of the framework that are written in .net into your executable and package up the parts of the framework that are written in C++ so that the framework doesn't need to be installed. The result will be several dozen megs in size, and is probably not worth it unless you're targetting the 3.0/3.5 frameworks which are several hundred megs in size. The tools to do this also cost upwards of $1k.
Any user running a new version of windows (Vista or Later) will have 2.0 framework. IIRC w7 comes with the 3.5 framework. Any user who runs windows update in automatic mode and is running win2k or later will have the 2.0 framework, if running XP or later the 3.5 framework. That's probably >99% of windows PCs on the market. To target the rest your choices are to make them DLing a framework/runtime, or rewrite your app in pure win32 C code which calls the win32 API directly.
The latest nation. Procrastination.
|
|
|
|
|
I've set MaximizedBounds when Form's state is Maximized but that doesn't effect the form at all. I tried to set ClientSize, Size, Bounds... but nothing works. I've got a working way that is
this.WindowState = FormWindowState.Normal;
this.WindowState = FormWindowState.Maximized;
but thats raising some not required custom events and form flicks...any better way you guys know ?
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN%
R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
-----------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
I'm not sure what you're trying to accomplish or what the problem is.
If you don't want the form to be Invalidated when resized then set it's ResizeRedraw property to false - you can then use a ResizeEnd event handler to determine if you need to repaint based on your requirements and call Invalidate directly.
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
I want that when user maximize the form then it should not be in full desktop plus user can set its location when form maximize. I found MaximizedBounds, that works good as I needed but it always have to Maximize again not like just update the bounds.
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN%
R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
-----------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
Hi,
I'm trying to capture incoming data from my modem.
I tried using SerialPort but all I get are the modem commands (RING, ATA, CONNECT, etc.) and not the actual data.
How can I get the actual data?
Thank you.
|
|
|
|
|
|
I should mention that I am using my Nokia phone as a modem.
I read that page already, and I tried the ATO command to go to data mode but it doesn't work.
Thanks.
|
|
|
|
|
|
public class my
{
public int num = 0;
public string s = "";
public my()
{
this.num = 90;
}
public my(string n)
{
//how to call zero argument constructor from here?
this.s = n;
}
}
|
|
|
|
|
Modify your code like the sample:
public class my
{
public int num = 0;
public string s = "";
public my()
{
this.num = 90;
}
public my(string n):this()
{
this.s = n;
}
}
Life is a stage and we are all actors!
|
|
|
|
|
public my(string n)
:this()
{
this.s = n;
}
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
By the way, the casing of your class name is horrible, your field names are not descriptive and it's not normally a good idea to make them public.
This is how I would sketch out a class like that:
public class MyClass
{
private const int DefaultNumericValue = 90;
private const string DefaultStringValue = "";
public int NumericValue
{
get;
private set;
}
public string StringValue
{
get;
private set;
}
public MyClass()
: this(DefaultNumericValue, DefaultStringValue)
{ }
public MyClass(int numericValue)
: this(numericValue, DefaultStringValue)
{ }
public MyClass(string stringValue)
: this(DefaultNumericValue, stringValue)
{ }
public MyClass(int numericValue, string stringValue)
{
NumericValue = numericValue;
StringValue = stringValue;
}
} This stuff is a matter of personal preference, but whatever you prefer - what you posted needs attention!
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
Hello.
I work in a communications company where we maintain a library and other literary resources. I need to build a software system that manages the entire library.
What I have at the moment is a windows form that the administrator can use to manage the library. I need a system where members of staff can access a library intranet web site from their computers and check out library contents, make requests for books, etc.
Any thoughts on this? I'm hoping i won't have to discard my winform completely, at least the admin can still use it.
How do I integrate the winform into the web site please?
Thanks in advance...
Obi from Nigeria.
//obinnaaj Eof
|
|
|
|
|
Hello,
At work I have a typed dataset and in some cases much more than one typed datasets, but the problem is that when i bind the data to controls and than i come to the point where i need to do an update my boss told me that we need to kepp like a kind of log that tracks what data has been updated inserted and deleted. So what i need is how can i get the value from the typed dataset that has been changed so i can log what the data was before the logging and how the data is after the update. the same goes for delte and insert but in this case only which data has been deleted and which data has been inserted.
I hope i explained my self well any help would be greatly appreciated.
Thank you.
Regards,
Christian Pace
|
|
|
|
|
How are you updating the data?
Is it by using a method (or event handler) in your application? If so can you please post the code (just for that part).
Is it by a Stored Procedure in the Database?
Whichever it is you either need a Log file on the network/computer, or preferably some additional tables in your database for the audit trail.
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.”
|
|
|
|
|
Hi
first of all yes I have a table in the database which is taking cear of keeping the audit I'd events etc... And I'm updating the data by using the type daraset's tableadapter by doing tableadapter.endedit() and then call the tableadapter.update(....) method. Now what I need to know is that after doing the update method is there a way which I could fund out which cells or rows where modified by calling some method from the table adapter or binding source or something else?
Thank you very much
Regards,
Christian Pace
|
|
|
|
|
Take a look at How to: Check for Changed Rows (MSDN)[^].
Hope this helps.
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.”
|
|
|
|
|
I don't think you quite understood exactly what i need. The thing is that i don't need to check if there has been any changes, that i already know but what where the changes that have been made
|
|
|
|
|
I did understand. One of the links on that page leads to another which details how to get a collection of the changed rows (using HasChanges and GetChanges ). The changed rows have I think four versions, original, current, proposed and default (look up DataRowVersion ) Once you have the changed rows, you have all the information that you need to form an Update Query for the audit table ExecuteNonQuery[^]. If at all possible you should use parameterized queries.
Note that you must do this before applying the Update(), or GetChanges returns an empty dataset.
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.”
|
|
|
|
|
Yea i saw it. Thank you very much for the help and your time.
|
|
|
|
|
Hi Everyone,
I have a small application that I am developing that takes a half minute or so to load up (lot of stuff going on). I am wondering what the best way to display a "Loading" form is. For example, if you've ever used Adobe Photoshop, when you launch the program, a dialog/form shows up center screen and it tells you that its loading textures, fonts, etc. I want to do the same thing in my application.
Is the proper way to do this actually creating another form, showing that form in the main form onload event, and then destroying it after the loading process is complete?
Thanks!!
|
|
|
|