Click here to Skip to main content
15,899,474 members
Home / Discussions / C#
   

C#

 
GeneralRe: Display data from a child table in a textbox Pin
Glen Harvy18-Jul-06 20:23
Glen Harvy18-Jul-06 20:23 
GeneralRe: Display data from a child table in a textbox Pin
led mike18-Jul-06 20:56
led mike18-Jul-06 20:56 
QuestionDispose method - release resource Pin
MatejGo18-Jul-06 13:42
MatejGo18-Jul-06 13:42 
AnswerRe: Dispose method - release resource Pin
Robert Rohde18-Jul-06 18:45
Robert Rohde18-Jul-06 18:45 
GeneralRe: Dispose method - release resource Pin
MatejGo19-Jul-06 20:39
MatejGo19-Jul-06 20:39 
GeneralRe: Dispose method - release resource Pin
Robert Rohde20-Jul-06 10:49
Robert Rohde20-Jul-06 10:49 
AnswerRe: Dispose method - release resource Pin
Andrei Ungureanu18-Jul-06 19:48
Andrei Ungureanu18-Jul-06 19:48 
QuestionHosting .NET Windows Forms Controls in IE Pin
JuanAlbertoMD18-Jul-06 12:29
JuanAlbertoMD18-Jul-06 12:29 
Hello!!

I made a control which contains a RichTextBox and2 buttons.
One button open a text file and the other save a text file:

//---OPEN
OpenFileDialog open = new OpenFileDialog();
open.Filter = "Text files (*.txt)|*.txt";

if (open.ShowDialog() == DialogResult.OK)
richTextBox1.LoadFile(open.FileName);

//---SAVE
SaveFileDialog save = new SaveFileDialog();
save.Filter = "Text files (*.txt)|*.txt";

if (save.ShowDialog() == DialogResult.OK)
richTextBox1.saveFile(save.FileName);

And i want to host the control in Internet Explorer.

Then i create an html file:



RichTextBox Control


<object id="RichTextBoxControl1"
classid="http:RichTextBoxControl.dll#RichTextBoxControl.RichTextBoxCtl"
height="500" width="500" viewastext="">






And i Configure the Virtual Directory.

I open the html page and i can see the control but when i want to open a text file an exception appears:

System.Security.SecurityException: 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.

Also i configure the permissions in the .NET Framework 2.0 Configuration but the same exception appears.

Somebody knows if i am missing something.

Regards,
Alberto Martinez


AnswerRe: Hosting .NET Windows Forms Controls in IE Pin
User 171649218-Jul-06 12:47
professionalUser 171649218-Jul-06 12:47 
QuestionWCL problem Pin
-Yoyosh-18-Jul-06 12:22
-Yoyosh-18-Jul-06 12:22 
QuestionAll pipe instances are busy" when working with IpcChannel Pin
Ilia Blank18-Jul-06 9:53
Ilia Blank18-Jul-06 9:53 
Questionanimation on win form like that of MSN messenger? Pin
sinanju18-Jul-06 9:47
sinanju18-Jul-06 9:47 
AnswerRe: animation on win form like that of MSN messenger? Pin
Josh Smith18-Jul-06 9:52
Josh Smith18-Jul-06 9:52 
GeneralRe: animation on win form like that of MSN messenger? Pin
sinanju18-Jul-06 10:03
sinanju18-Jul-06 10:03 
AnswerRe: animation on win form like that of MSN messenger? Pin
leppie18-Jul-06 9:58
leppie18-Jul-06 9:58 
GeneralRe: animation on win form like that of MSN messenger? Pin
sinanju18-Jul-06 10:06
sinanju18-Jul-06 10:06 
AnswerRe: animation on win form like that of MSN messenger? Pin
sinanju18-Jul-06 10:18
sinanju18-Jul-06 10:18 
QuestionDateTime Pin
NewbProgrammer18-Jul-06 9:36
NewbProgrammer18-Jul-06 9:36 
AnswerRe: DateTime Pin
User 665818-Jul-06 9:39
User 665818-Jul-06 9:39 
AnswerRe: DateTime Pin
Josh Smith18-Jul-06 9:39
Josh Smith18-Jul-06 9:39 
AnswerIn your paint event Pin
Ennis Ray Lynch, Jr.18-Jul-06 10:38
Ennis Ray Lynch, Jr.18-Jul-06 10:38 
GeneralRe: DateTime Pin
NewbProgrammer18-Jul-06 12:13
NewbProgrammer18-Jul-06 12:13 
QuestionCopying an image from RTF to clipboard Pin
likefood18-Jul-06 7:40
likefood18-Jul-06 7:40 
QuestionMAC style window form [modified] Pin
Mike Jeferson18-Jul-06 7:33
Mike Jeferson18-Jul-06 7:33 
AnswerRe: MAC style window form Pin
likefood18-Jul-06 7:47
likefood18-Jul-06 7:47 

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.