|
You'll need a third party installer tool to do this, such as InnoSetup, InstallShield, Wise Package Studio, .... The setup project that's in Visual Studio is a very basic one and doesn't lend itself to customization very well.
|
|
|
|
|
Thankyou dave sir,
actually first i made my setup file with .net system defined wizards only. but higher authority want me to change those wizards with our company logo,....
using installshield we can achieve this?
actualy am very new to deployment.
Thankyou very much.
|
|
|
|
|
Wait, wait, wait.... Are you saying that you still want (can) use the Setup and Deployment Wizard to generate the MSI installer, but you want to change the images in the template used to generate the MSI project?? So, all future uses of the Setup and Deployment Wizard will generate an MSI with your company logo??
|
|
|
|
|
Can we change the shape of button from Square to any other
i want to make my project attractive by changing the shape of windows button in c# net
|
|
|
|
|
Underneath all the hoohaa of buttons, they are just two pictures - one up and one down. So it depends on exactly you want to do.
You can create your own user control that mimicks the button behaviour, but is shapped any way you please. A quick google should give you some help on irregular shapped controls.
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
HI There is not a simple way to create a button for that you just use a picture box and use image for it
|
|
|
|
|
Hi,
About a week ago I asked how to create a nice order page and Yusuf.A[^] answered me nicely. My problem now is how do I put editboxes on it for the user to fill with the desired quantities? He doesn't need to fill all the lines and the empty lines WON'T be stored in the order table of course.
Thanks,
Dirso.
Thanks,
Dirso
|
|
|
|
|
I am using WorkflowMarkupSerializer to save a statemachine workflow - it saves the states OK, but does not keep their positions. The code to write the workflow is here:
using (XmlWriter xmlWriter = XmlWriter.Create(fileName))
{
WorkflowMarkupSerializer markupSerializer
= new WorkflowMarkupSerializer();
markupSerializer.Serialize(xmlWriter, workflow);
}
The code to read the workflow is:
DesignerSerializationManager dsm
= new DesignerSerializationManager();
using (dsm.CreateSession())
{
using (XmlReader xmlReader
= XmlReader.Create(fileName))
{
WorkflowMarkupSerializer markupSerializer
= new WorkflowMarkupSerializer();
workflow = markupSerializer.Deserialize(
dsm, xmlReader) as Activity;
if (dsm.Errors.Count > 0)
{
WorkflowMarkupSerializationException error
= dsm.Errors[0]
as WorkflowMarkupSerializationException;
throw error;
}
}
}
Does anyone know how to save the positions of the states?
|
|
|
|
|
OK I have found an answer at the following link[^]
Search for: .layout
|
|
|
|
|
I'm creating a code editor with syntax highlighting and need help with the regular expressions. I've read a couple pages about it but can't figure out the exact way to do what I want.
For now, I only need support for comments and keywords like 'if', 'else', and so on. For the comments I created the following pattern:
string commentPattern = @"%.*";
It means that it matches everything to the right of, and including, the '%' character. This should be colored green. This works fine. The next pattern is for the keywords and looks like this:
string syntaxPattern = @"(\bif\b)|(\bwhile\b)|(\bclassdef\b)|(\bproperties\b)|(\bend\b)|(\bmethods\b)|(\bfunction\b)|(\belse\b)|(\bfor\b)";
It means it matches any of these words. These keywords are colored blue. It works fine too. BUT, when I run these two patterns parallell the keywords are colored blue even if they are in a comment. How can I create a pattern that doesn't color the keywords blue if there is a '%' character to the left of them???
Thanks for help!
|
|
|
|
|
Probably it can be done in regular expressions themselves, but if I were you, I'd consider making your highligher a bit more intelligent. Parse your code chunk by chunk, word by word, then once you find a comment, you will just move to next line, when you find a keyword, you will move to next word etc. It can come handy for more complicated cases.
Other way is of course parsing the text, which would be probably to complicated for your needs.
|
|
|
|
|
Thanks for your reply. Can you perhaps give a little more detail on this approach?
|
|
|
|
|
Lets say you have:
<br />
int x; % foo<br />
% bar<br />
x = 5; %x = 5<br />
Your rules:
keyword = 'int'
ident = Everything that starts with _ or letter and has letters,digits,_ after that
comment = Starts with % to newline.
Now you write simple lexer that will scan letter by letter, trying to fit what you have to as many possibilities as you can. When no possibilites are left, you go back one letter, and find first one that fits. So, for our example would be:
buffer: what it can be:
'i' int or ident
'in' int or ident
'int' int or ident
'int ' nothing. Go back 1 letter
'int' first rule that fits is keyword int, so it's int
' ' fits nothing from beggining, so ignore it
'x' fits ident
'x ' fits nothing, go back
...
So generally, you will get lists of tokens, their start and end position, so you just color them .
|
|
|
|
|
Thanks for your help. I'll take a look at it!
|
|
|
|
|
Hi,
How can i sleep a thread for ever and how to continue the thread which is sleeping for ever?
I need to use in pause and play.
Thankyou
YPKI
|
|
|
|
|
Infinite wait is not the best option in most cases, timeout can be handy.
And for your problem, you could use ManualResetEvent.
Msdn[^]
|
|
|
|
|
I agree, ManualResetEvent is IMHO the best solution. In your case you might not need a timeout, however, because a long pause does not indicate an exceptional case (if you are making a "play/pause" sort of functionality).
But remember to implement IDisposable in your class, and signal the ManualResetEvent before Disposing to make sure that your background thread ends also, otherwise you will end up waiting forever.
|
|
|
|
|
I am having following code in delphi language.
i want to convert it into C#
The delphi contains CreateOleObject method. but in .net we are not having such method. how to convert it.
code:
//set com port
Comet := CreateOleObject('Comteck.xy');
Comet.ComPort := "COM1";
I wamt to Use that 'Comteck.xy' file compulsary. please help me.
Thanks in advance
gaurav
|
|
|
|
|
Right click your project in VS and select "Add reference". Then select your COM object from the list of installed objects. .Net will create a managed wrapper class (RCW) which you can use to instantiate the object and access it like it was a managed object.
|
|
|
|
|
How to create a generic FTP Uploader windows Service which could upload Multiple Files at Different Folders to Differeent FTP Locations?
|
|
|
|
|
There are multiple "hows" possible. Simplest would be to write a batchfile that uses the FTP command, and execute that
I are troll
|
|
|
|
|
Hi,
I have a media center that is activated by a remote control.
My computer uses dual monitors, and I would like to make it so that the secondary monitor turns off when I start up the media software.
Ive found working examples that turn off both monitors, does anyone know of a good example that will turn just one off?
Cheers,
Mark Brock
"We're definitely not going to make a G or a PG version of this. It's not PillowfightCraft." -- Chris Metzen
Click here to view my blog
|
|
|
|
|
|
I'm developing a countdown timee that will support Pause function and I'm wondering that how can I get the passed milliseconds from Timer. I'm not sure that it is possible but perhaps it might possible through API.
I do not want timer calls tick event after each millisecond, what I want is once I set Interval(eg. 5000) then if I call Pause just after 3000 passed then when resume it should start with 3000. It would be easily possible if I can get the Timer passed millisecond...
any idea guys or any other way ?
edited
this helped me
Environment.TickCount
thanks all of you guys
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
modified on Thursday, April 9, 2009 8:54 AM
|
|
|
|
|
You could use DateTime.Now and subtract one from another to give you a timespan. Timers I don't believe allow you to access their internals.
DateTime has a resolution of about 15ms I believe.
Regards,
Rob Philpott.
|
|
|
|