|
Thanks sir,
But i have never done this, can you please send me some web links or code snippets to achieve this task..
|
|
|
|
|
all it takes is a single statement, give this a try:
this.richTextBox1.Rtf=
@"{\rtf1\ansi\deff0{\fonttbl{\f0\froman Arial;}{\f1\froman\fcharset0 Arial;}{\f2\fswiss\fcharset0 Arial;}}"+
@"{\colortbl ;\red0\green0\blue0;\red255\green255\blue255;\red0\green0\blue255;}"+
@"{\*\generator Msftedit 5.41.21.2507;}\viewkind4\uc1\pard\sb60\sa40\cf1\highlight2\lang1033\b\f0\fs28 Ontvangsten in Jul-2009\b0\par"+
@"\fs20\par"+
@"\trowd\trgaph70\trbrdrl\brdrs\brdrw15\brdrcf3 \trbrdrt\brdrs\brdrw15\brdrcf3 \trbrdrr\brdrs\brdrw15\brdrcf3 \trbrdrb\brdrs\brdrw15"+
@"\brdrcf3 \trpaddl70\trpaddr70\trpaddfl3\trpaddfr3"+
@"\clcfpat3\clcbpat3\clshdng10000\clbrdrl\brdrw15\brdrs\brdrcf3\clbrdrt\brdrw15\brdrs\brdrcf3\clbrdrr\brdrw15\brdrs\brdrcf3"+
@"\clbrdrb\brdrw15\brdrs\brdrcf3 \cellx1900\clcfpat3\clcbpat3\clshdng10000\clbrdrl\brdrw15\brdrs\brdrcf3\clbrdrt\brdrw15\brdrs\brdrcf3"+
@"\clbrdrr\brdrw15\brdrs\brdrcf3\clbrdrb\brdrw15\brdrs\brdrcf3 \cellx3400\clcfpat3\clcbpat3\clshdng10000\clbrdrl\brdrw15\brdrs\brdrcf3"+
@"\clbrdrt\brdrw15\brdrs\brdrcf3\clbrdrr\brdrw15\brdrs\brdrcf3\clbrdrb\brdrw15\brdrs\brdrcf3 \cellx4900\clcfpat3\clcbpat3\clshdng10000"+
@"\clbrdrl\brdrw15\brdrs\brdrcf3\clbrdrt\brdrw15\brdrs\brdrcf3\clbrdrr\brdrw15\brdrs\brdrcf3\clbrdrb\brdrw15\brdrs\brdrcf3 \cellx6700"+
@"\clcfpat3\clcbpat3\clshdng10000\clbrdrl\brdrw15\brdrs\brdrcf3\clbrdrt\brdrw15\brdrs\brdrcf3\clbrdrr\brdrw15\brdrs\brdrcf3\clbrdrb\brdrw15"+
@"\brdrs\brdrcf3 \cellx8200\pard\intbl\sb60\sa40\qc\cf2\highlight3\b datum\b0\cell\b contant\b0\cell\b Bancontact\b0\cell\b overschrijvingen\b0"+
@"\cell\b totaal\b0\cell\row\trowd\trgaph70\trbrdrl\brdrs\brdrw15\brdrcf3 \trbrdrt\brdrs\brdrw15\brdrcf3 \trbrdrr\brdrs\brdrw15\brdrcf3 \trbrdrb"+
@"\brdrs\brdrw15\brdrcf3 \trpaddl70\trpaddr70\trpaddfl3\trpaddfr3"+
@"\clbrdrl\brdrw15\brdrs\brdrcf3\clbrdrt\brdrw15\brdrs\brdrcf3\clbrdrr\brdrw15\brdrs\brdrcf3\clbrdrb\brdrw15\brdrs\brdrcf3 "+
@"\cellx1900\clbrdrl\brdrw15\brdrs\brdrcf3\clbrdrt\brdrw15\brdrs\brdrcf3\clbrdrr\brdrw15\brdrs\brdrcf3\clbrdrb\brdrw15\brdrs"+
@"\brdrcf3 \cellx3400\clbrdrl\brdrw15\brdrs\brdrcf3\clbrdrt\brdrw15\brdrs\brdrcf3\clbrdrr\brdrw15\brdrs\brdrcf3\clbrdrb\brdrw15"+
@"\brdrs\brdrcf3 \cellx4900\clbrdrl\brdrw15\brdrs\brdrcf3\clbrdrt\brdrw15\brdrs\brdrcf3\clbrdrr\brdrw15\brdrs\brdrcf3\clbrdrb"+
@"\brdrw15\brdrs\brdrcf3 \cellx6700\clbrdrl\brdrw15\brdrs\brdrcf3\clbrdrt\brdrw15\brdrs\brdrcf3\clbrdrr\brdrw15\brdrs\brdrcf3"+
@"\clbrdrb\brdrw15\brdrs\brdrcf3 \cellx8200\pard\intbl\sb60\sa40\qr\cf1\highlight2 WO 01-Jul-2009 \cell\f1 \'80 521.00\f0\cell\f1 "+
@"\'80 769.00\f0\cell\f1 \'80 0.00\f0\cell\f1 \'80 1,290.00\f0\cell\row\trowd\trgaph70\trbrdrl\brdrs\brdrw15\brdrcf3 "+
@"\trbrdrt\brdrs\brdrw15\brdrcf3 \trbrdrr\brdrs\brdrw15\brdrcf3 \trbrdrb\brdrs\brdrw15\brdrcf3 \trpaddl70\trpaddr70\trpaddfl3\trpaddfr3"+
@"\clbrdrl\brdrw15\brdrs\brdrcf3\clbrdrt\brdrw15\brdrs\brdrcf3\clbrdrr\brdrw15\brdrs\brdrcf3\clbrdrb\brdrw15\brdrs\brdrcf3 "+
@"\cellx1900\clbrdrl\brdrw15\brdrs\brdrcf3\clbrdrt\brdrw15\brdrs\brdrcf3\clbrdrr\brdrw15\brdrs\brdrcf3\clbrdrb\brdrw15\brdrs\brdrcf3 "+
@"\cellx3400\clbrdrl\brdrw15\brdrs\brdrcf3\clbrdrt\brdrw15\brdrs\brdrcf3\clbrdrr\brdrw15\brdrs\brdrcf3\clbrdrb\brdrw15\brdrs\brdrcf3 "+
@"\cellx4900\clbrdrl\brdrw15\brdrs\brdrcf3\clbrdrt\brdrw15\brdrs\brdrcf3\clbrdrr\brdrw15\brdrs\brdrcf3\clbrdrb\brdrw15\brdrs\brdrcf3 "+
@"\cellx6700\clbrdrl\brdrw15\brdrs\brdrcf3\clbrdrt\brdrw15\brdrs\brdrcf3\clbrdrr\brdrw15\brdrs\brdrcf3\clbrdrb\brdrw15\brdrs\brdrcf3 "+
@"\cellx8200\pard\intbl\sb60\sa40\qr VR 24-Jul-2009 \cell\f1 \'80 2,878.00\f0\cell\f1 \'80 972.00\f0\cell\f1 "+
@"\'80 0.00\f0\cell\f1 \'80 3,850.00\f0\cell\row\trowd\trgaph70\trbrdrl\brdrs\brdrw15\brdrcf3 \trbrdrt\brdrs\brdrw15\brdrcf3 "+
@"\trbrdrr\brdrs\brdrw15\brdrcf3 \trbrdrb\brdrs\brdrw15\brdrcf3 \trpaddl70\trpaddr70\trpaddfl3\trpaddfr3"+
@"\clbrdrl\brdrw15\brdrs\brdrcf3\clbrdrt\brdrw15\brdrs\brdrcf3\clbrdrr\brdrw15\brdrs\brdrcf3\clbrdrb\brdrw15\brdrs\brdrcf3 "+
@"\cellx1900\clbrdrl\brdrw15\brdrs\brdrcf3\clbrdrt\brdrw15\brdrs\brdrcf3\clbrdrr\brdrw15\brdrs\brdrcf3\clbrdrb\brdrw15\brdrs\brdrcf3 "+
@"\cellx3400\clbrdrl\brdrw15\brdrs\brdrcf3\clbrdrt\brdrw15\brdrs\brdrcf3\clbrdrr\brdrw15\brdrs\brdrcf3\clbrdrb\brdrw15\brdrs\brdrcf3 "+
@"\cellx4900\clbrdrl\brdrw15\brdrs\brdrcf3\clbrdrt\brdrw15\brdrs\brdrcf3\clbrdrr\brdrw15\brdrs\brdrcf3\clbrdrb\brdrw15\brdrs\brdrcf3 "+
@"\cellx6700\clbrdrl\brdrw15\brdrs\brdrcf3\clbrdrt\brdrw15\brdrs\brdrcf3\clbrdrr\brdrw15\brdrs\brdrcf3\clbrdrb\brdrw15\brdrs\brdrcf3 "+
@"\cellx8200\pard\intbl\sb60\sa40\qr\b TOTAAL Jul-2009\b0\cell\b\f1 \'80 10,505.00\b0\f0\cell\b\f1 \'80 27,621.00\b0\f0\cell\b\f1 "+
@"\'80 3,328.00\b0\f0\cell\b\f1 \'80 41,454.00\b0\f0\cell\row\pard\cf0\highlight0\f2\par"+
@"}";
and you'll get a nice table, 4 rows, 5 columns, with headers and everything.
To make something useful, one probably has to come up with some classes that emit such RTF strings first.
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
Your example is using spaces to "indent" the cell contents to make them appear aligned. From what I've seen so far, it looks like RTB (at least the .Net wrapper) ignores horizontal alignment in table cells.
|
|
|
|
|
hi
using my program i need to read/write few files (like Ms access database,txt files ,Autocad drawing file,image files) from the server which is restricted to user.
user has no permission to read and write those files from server
i used Code Acess Security thru .Net Configuration Tool for accessing those files. it solved the problem
but when i made a setup of the Application and installed in client system
its giving error. "Access denied"
does the .net Configuration Tool which i set few permissions should present in client system also.
how can i do it
user has no permission but my application installed at user should have permissions to read and write those files.
|
|
|
|
|
It is Good to have security , but this type of Security will always cause problem for your users.Tell the Admnistrator give give them permissions to the Files.
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.somee.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
hi
i developed a software using c#
now i need to apply security for it.
what i mean is no one can decode my exe and other dlls.
and develop the similar software.
one more doubt is ...
i made a setup using dotnet
then after installing it , exe file and other dlls are installed at a location.
can any one break my exe and get the actual code what i written
|
|
|
|
|
vijaylumar wrote: can any one break my exe and get the actual code what i written
Yes.
The best you can hope for is to obfuscate your software before release - Google is a big help here.
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
|
|
|
|
|
vijaylumar wrote: what i mean is no one can decode my exe and other dlls.
and develop the similar software.
Then the computer can not decode it either so it wouldn't run, is that really what you want?vijaylumar wrote: can any one break my exe and get the actual code what i written
Sure, they just don't get the comments and local variable names back.
So, apply cheap/free obfuscation - no level of obfuscation (not even that Salamander thing) will stop an average hacker (so it's just a waste of money really), but simple obfuscation will stop some of the 16 year old kiddo's from messing around with your code too much.
Might I recommend Phoenix Protector[^]? It's free and pretty good.
|
|
|
|
|
I agree, Pheonix Protector would be your best (free) tool.
Andy
|
|
|
|
|
hey dude what is obfuscation??
|
|
|
|
|
That's when the code in the exe/dll is made as WTF-ish as possible on purpose to make reverse engineering harder
|
|
|
|
|
For this you need to obfuscate your code DLLs. Try to get some good obfuscation software for you.
|
|
|
|
|
Hi Developers.
I have used tabControl to create multiple workspaces but I cant open form in TabPage.
Can any one suggest me what should I do..?
any other method to get the same requirement done?.
after this I need to save information regarding each workspace (on application exit) to settings ,and retrive it on application start.
Thanking you...
modified on Saturday, August 8, 2009 7:40 AM
|
|
|
|
|
Hi,
setting Form.TopLevel false opens up a whole lot of possibilities.
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
Why don't you try MDI container form with multiple child forms.
|
|
|
|
|
This article [^]may be of some interest
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Hi all I am facing a problem in my application some times it appears to user that system/ application get hanged and he is unable to do ANY THING, the only option left to him that to kill the application using Task Manager. I found the reason that actually my message box is went to back of the current window due to which focus gets lost from the front.
I searched on the net and found that in my application overriding of a windows method cause such problem
this method is used to draw and display a timer/click on the MDI form rest i dont know about the functionality.
I am attaching the code if any body can help please reply as it's really confusing for me and i am not getting any solution for the same
protected override void WndProc(ref System.Windows.Forms.Message m)
{
try
{
base.WndProc(ref m);
switch (m.Msg)
{
case (int)WM_TIMER:
if (PreferencesController.IsAutoLockStart)
{
if (PreferencesController.IsSetAutoLock)
{
actHook.Start();
PreferencesController.EndTimeAutoLock = DateTime.Now.AddMinutes(PreferencesController.LockWorkStationTimeInMinute);
PreferencesController.IsSetAutoLock = false;
}
AutoLockWS();
}
if (PreferencesController.IsShowDateTime)
Main_OnNcPaint(ref m);
if (DateTime.Now.ToLocalTime().ToShortTimeString().Equals(
ConfigurationService.GetExcelMacroExecutionTime()))
ExcelFile.RunMacro();
break;
case (int)WM_NCPAINT:
if (PreferencesController.IsShowDateTime)
Main_OnNcPaint(ref m);
break;
}
}
catch (Exception ex)
{
ex.Message.ToString();
}
method called in above code is
private void Main_OnNcPaint(ref Message m)
{
paintTitleBar = m;
IntPtr hdc = GetWindowDC(m.HWnd);
Graphics g = Graphics.FromHdc(hdc);
RectangleF titleBarRectF = g.VisibleClipBounds;
int formWidth = (int)titleBarRectF.Width;
int CaptionHeight = Bounds.Height - ClientRectangle.Height;
Size CloseButtonSize = SystemInformation.CaptionButtonSize;
int X = formWidth - (CloseButtonSize.Width * 4) - 200;
int Y = 4;
int width = 200;
int height = CaptionHeight - 10;
string dateText;
if (PreferencesController.IsShowDateTimeWithSeconds)
{
dateText = DateTime.Now.ToString("dd MMM yyyy hh:mm:ss tt");
}
else
{
dateText = DateTime.Now.ToString("dd MMM yyyy hh:mm tt");
}
RectangleF timeDisplayRectF = new RectangleF(X, Y, width, height);
g.FillRectangle(new SolidBrush(Color.DarkBlue), timeDisplayRectF);
Font font = new Font(Font.FontFamily, Font.Size + 2, FontStyle.Bold);
g.DrawString(dateText, font, new SolidBrush(Color.White), timeDisplayRectF);
g.Dispose();
ReleaseDC(m.HWnd, hdc);
m.Result = IntPtr.Zero;
}
modified on Saturday, August 8, 2009 6:43 AM
|
|
|
|
|
please edit your message and put all code inside PRE tags, no one is going to read it as it is now.
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
Thanks... any view regarding problem???
|
|
|
|
|
Hi,
that code is mysterious to me. I do have two suggestions:
1.
add a font.Dispose() to clean up the font you created. Gives better memory handling.
2.
if you don't do it already, modify MessageBox.Show(someString,...) to MessageBox.Show(this, someString,...) that might solve the problem.
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
I already did that... no luck so far
|
|
|
|
|
Hi,
How can we display a web page with an embedded flash object in a webbrowser control?? Take a youtube video page as an example..
Thank you.
|
|
|
|
|
Just needed a higher macromedia flash version on my IE!
|
|
|
|
|
I am storing card displays (eg J♣) in a list box through a list <KeyValuePair<string, int> and I want to order the cards numerically from greatest value to smallest value in the list box. When I change the sorting property on the properties box to "descending", the list is sorted inverse-alphabetically (ie Q is at top and 10 is at the bottom). I want to sort the list descending numerically, by value, so that A is at the top and 2 is at the bottom. How can I do this?
|
|
|
|
|
Here is one way MSDN - ListBox.Sort Method[^].
Alternatively you can put your string and int into a class and implement the IComparable interface. Then, possibly, put them into a collection to add via the ListBox.DataSource property
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.”
|
|
|
|