|
Thank you for the response. But here i am having around 50-60 controls now and the number is again going to increase. Do you think its a good idea to load as many number of controls on the form and keep its visible property false? The requirement is something as that of how Microsoft Dynamics work. We have one default page with left and main content panels that holds the user-controls which keep changing as per the button clicked...
|
|
|
|
|
I want to create my own 'URL' in a RichTextBox. when a user types [[LinkName]], it should display as a link.
Example
The documents with name [[The road to C#]] and [[An introduction to C#]] are very interesting.
How can this be created in a C# RichTextBox and how can I add a ClickEvent.
Thanks!
modified on Saturday, January 10, 2009 6:13 AM
|
|
|
|
|
You can do this by tweaking the registry, without lots of coding;
Hope this helps
I are troll
|
|
|
|
|
Thanks for this reply. It already helps me a bit.
Does anyone know if it is also possible to do whithin the application code (so without tweaking the registry)?
|
|
|
|
|
Hi!
Does this article[^] help?
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
Looks very good. I will look into it.
Thanks!
|
|
|
|
|
Is there any way other than Abort to terminate a thread.
How can i Suspend or resume Asynchronous threads
|
|
|
|
|
thenewbee wrote: Is there any way other than Abort to terminate a thread
In normal situation the thread execution ends when the method you passed for ThreadStart has finished.
thenewbee wrote: How can i Suspend or resume Asynchronous threads
You can call Sleep inside the thread. If you need to synchronize separate threads, see for example Join method and lock statement
|
|
|
|
|
Hi,
IMO the best ever summary of all you ever wanted to know about threads is here.[^]
|
|
|
|
|
That was an excellent link! Immediately added it favourites
|
|
|
|
|
is there anyways to know the assembly name ? eg. i added a reference of another project, now i want to know that project assembly name...any way ?
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)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
If you know a type or have instantiated an object from the assembly you can get it's AssemblyQualifiedName , for example:
someObject.GetType().AssemblyQualifiedName
Is that what you were looking for?
|
|
|
|
|
yes but it dont have exactly what i want...i mean i have to parse that string to get the assembly name.
its format is like
Object's Full Name, Assembly Name, Version, Culture, PublicKeyToken
thanks
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)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
So do you need only the name? If so, if I remember correctly, you could use:
SomeObject.GetType().Assembly.ManifestModule.Name
|
|
|
|
|
hehe, we are just near
http://www.codeproject.com/script/Forums/View.aspx?fid=1649&msg=2873796[^]
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)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
sorry for double post but i got, its in
object.GetType().Assembly.GetName().Name
thanks you mate
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)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
Exactly
You're welcome
Mika
|
|
|
|
|
hello,
i am using c#.net in vs 2008.
can anybody say me why the error occured while using System.Drawing.Printing?
I want to print Custom size paper in dot matrix pnrinter for billing purpose. But it print in a4 size paper. so i change my code to the following but this did not work.
Please help me.
The code i use are
PrintDialog pd = new PrintDialog();
PageSetupDialog psd = new PageSetupDialog();
PrintDocument pdoc = new PrintDocument();
PaperSize ps = new PaperSize();
psd.PageSettings = new PageSettings();
psd.PrinterSettings = new PrinterSettings();
bool flag = false;
foreach (PaperSize ps1 in psd.PrinterSettings.PaperSizes)
{
if (ps1.PaperName.Contains("Custom"))
{
ps = ps1;
flag = true;
}
}
if (flag)
{
ps.Height = 5;
ps.Width = 3;
psd.PageSettings.PaperSize = ps;
printDocument1.DefaultPageSettings = psd.PageSettings;
printDocument1.PrinterSettings = psd.PrinterSettings;
pd.Document = printDocument1;
if (pd.ShowDialog() == DialogResult.OK)
printDocument1.Print();
}
I wating for replu.
|
|
|
|
|
Member 3330658 wrote: can anybody say me why the error occured while using System.Drawing.Printing
What was the error and where did it occur?
One possible problem you have is your paper size (5/3). Size is given in hundredths of an inch, so that would be quite small paper size.
|
|
|
|
|
thanks for responding me,
i am getting error while altering the height and width of the papersize object.
actually i want the height dynamically assigned by any variable containg the size of the line to be printed.
I want to print the bill in the dot matrix printer. with contineous paper feed.
thanks in advance.
|
|
|
|
|
Okay, but what's the error?
|
|
|
|
|
here the error occured. in the line ps.Height = 5;
the error is
PaperSize cannot be changed unless the Kind property is set to Custom.
i tried the code below
the error did not occure but the width and height of the paper did not changed in the print dialog and while printing.
ps = new PaperSize("Custom Size", 2, 2);
ps.Height = 2;
ps.Width = 2;
please help me i have pursed my job here............................
|
|
|
|
|
|
i want to convert date time to a string representation
e.g. 30/12/2009 -- 30 day of December two thousand nine
Ferron
|
|
|
|
|
Its very simple...
stringVariable = Convert.ToString(MyDate);
Software Development & Web Development is my addiction. I am a Visual C# 2.0 and ASP.NET 2.0 Developer and working in Visual Studio 2005 using Dot Net Framework 2.0.
Email: bottomless.wisdom@hotmail.com
Web: http://bottomless-wisdom.spaces.live.com
|
|
|
|