TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
David Jensi
NA
1
772
exception UnauthorizedAccessException
Apr 2 2015 4:44 PM
Please help, does not work.
SerialPort serial = new SerialPort("COM4", 9600);
Timer timer = new Timer();
public Form1()
{
InitializeComponent();
timer.Interval=5;
timer.Tick += new EventHandler(aktivuj);
}
public void aktivuj(object sender,EventArgs e)
{
string s;
Invalidate();
serial.Open();
serial.Write(textBox1.Text.ToString());
s = serial.ReadLine();
serial.Close();
label1.Text = s;
}
When I run the program occurs exception UnauthorizedAccessException.
Reply
Answers (
1
)
.aspx page to pdf conversion in c#
How to disable datagridview default seleceted row.