Click here to Skip to main content
15,892,005 members
Home / Discussions / C#
   

C#

 
Questiontransferring images from server to winforms application - smallest possible size Pin
harleydk20-Dec-08 10:36
harleydk20-Dec-08 10:36 
AnswerRe: transferring images from server to winforms application - smallest possible size Pin
Christian Graus20-Dec-08 14:11
protectorChristian Graus20-Dec-08 14:11 
AnswerRe: transferring images from server to winforms application - smallest possible size Pin
leppie20-Dec-08 19:53
leppie20-Dec-08 19:53 
GeneralRe: transferring images from server to winforms application - smallest possible size Pin
Christian Graus20-Dec-08 23:08
protectorChristian Graus20-Dec-08 23:08 
GeneralRe: transferring images from server to winforms application - smallest possible size Pin
Mark Salsbery22-Dec-08 8:00
Mark Salsbery22-Dec-08 8:00 
QuestionHow to display the Build number in a text box? (I'm a newbie to C#) Pin
Albert Giraudi20-Dec-08 5:33
Albert Giraudi20-Dec-08 5:33 
AnswerRe: How to display the Build number in a text box? (I'm a newbie to C#) [modified] Pin
Luc Pattyn20-Dec-08 6:30
sitebuilderLuc Pattyn20-Dec-08 6:30 
AnswerRe: How to display the Build number in a text box? (I'm a newbie to C#) Pin
RobScripta20-Dec-08 15:47
professionalRobScripta20-Dec-08 15:47 
I'm also a newbie, and I use Click once for deployment. I get a publish version from Click Once and I want to display this number in the info box.

To display the publish version use the following code:

=======================================

if (System.Deployment.Application.ApplicationDeployment.IsNetworkDeployed)

{

Version version = System.Deployment.Application.ApplicationDeployment.CurrentDeployment.CurrentVersion;

string versionString = version.ToString();


}
========================================

Please notice this works only on deployed versions (IsNetworkDeployed)


The other possiblity is the assembly version. You can set the assembly version manualy in the assembly file (found as a subfile under the properties item in the solution explorer). Or you can have an automatic assembly number with the number of days since jan 1, 2000 as build number and the number of seconds (divided by two) as the revision number by [assembly: AssemblyVersion("1.0.*")]

I hope to have cleared confussion.
Questionc# login help Pin
cobalt-rose20-Dec-08 1:51
cobalt-rose20-Dec-08 1:51 
AnswerRe: c# login help Pin
N a v a n e e t h20-Dec-08 2:17
N a v a n e e t h20-Dec-08 2:17 
GeneralRe: c# login help Pin
cobalt-rose20-Dec-08 2:32
cobalt-rose20-Dec-08 2:32 
AnswerRe: c# login help Pin
Christian Graus20-Dec-08 10:14
protectorChristian Graus20-Dec-08 10:14 
AnswerRe: c# login help Pin
RobScripta20-Dec-08 16:01
professionalRobScripta20-Dec-08 16:01 
GeneralRe: c# login help Pin
cobalt-rose21-Dec-08 1:49
cobalt-rose21-Dec-08 1:49 
GeneralRe: c# login help Pin
RobScripta21-Dec-08 20:58
professionalRobScripta21-Dec-08 20:58 
GeneralRe: c# login help Pin
cobalt-rose22-Dec-08 13:19
cobalt-rose22-Dec-08 13:19 
GeneralRe: c# login help Pin
RobScripta22-Dec-08 23:49
professionalRobScripta22-Dec-08 23:49 
GeneralRe: c# login help Pin
cobalt-rose23-Dec-08 22:18
cobalt-rose23-Dec-08 22:18 
GeneralRe: c# login help Pin
RobScripta23-Dec-08 22:58
professionalRobScripta23-Dec-08 22:58 
GeneralRe: c# login help Pin
cobalt-rose24-Dec-08 1:56
cobalt-rose24-Dec-08 1:56 
GeneralRe: c# login help Pin
RobScripta24-Dec-08 3:45
professionalRobScripta24-Dec-08 3:45 
GeneralRe: c# login help Pin
cobalt-rose24-Dec-08 13:05
cobalt-rose24-Dec-08 13:05 
GeneralRe: c# login help Pin
RobScripta24-Dec-08 20:50
professionalRobScripta24-Dec-08 20:50 
QuestionDowngrading ReaderWriterLockSlim UpgradeableReadLock to simple ReadLock Pin
HosamAly19-Dec-08 23:28
HosamAly19-Dec-08 23:28 
AnswerRe: Downgrading ReaderWriterLockSlim UpgradeableReadLock to simple ReadLock Pin
N a v a n e e t h20-Dec-08 0:57
N a v a n e e t h20-Dec-08 0:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.