Trigger the Paint event in System Drawing? Invalidate the current form; the OS will take care of repainting. The Update method forces the repaint.
With these events, why wouldn’t Microsoft combine Invalidate and Paint, so that you wouldn’t have to tell it to repaint, and then to force it to repaint? Painting is the slowest thing the OS does, so usually telling it to repaint, but not forcing it allows for the process to take place in the background
Assign an RGB color to a System.Drawing.Color object? Call the static method FromArgb of this class and pass it the RGB values.
Thursday, January 7, 2010
ACCESS OF NON LOCAL NAMES in COMPILER DESIGN:
ACCESS OF NON LOCAL NAMES in COMPILER DESIGN:
i. Non-local names
In a language with nested procedures (or blocks) and static scope (lexical scope), some names are neither local nor global, they are non-local names.
procedure A
real a;
procedure B
real b;
reference a; ß non-local
end B
end A;
Example: Non-local names in C
main () {
int a = 0, b=0; {
int b = 1; {
int a = 2;
print(a,b); }
{
int b = 3;
print(a,b); }
print(a,b);}
print(a,b); }
i. Block-level and Procedure-level ARs
• Each block can be considered as an in-line procedure without parameters. So we could create a new AR for each block. This is block-level AR and is very inefficient.
• In procedure-level AR method, AR is only used for a true procedure. The relative location of variables in individual blocks within a procedure can be computed and fixed at compile time.
i. Non-local names
In a language with nested procedures (or blocks) and static scope (lexical scope), some names are neither local nor global, they are non-local names.
procedure A
real a;
procedure B
real b;
reference a; ß non-local
end B
end A;
Example: Non-local names in C
main () {
int a = 0, b=0; {
int b = 1; {
int a = 2;
print(a,b); }
{
int b = 3;
print(a,b); }
print(a,b);}
print(a,b); }
i. Block-level and Procedure-level ARs
• Each block can be considered as an in-line procedure without parameters. So we could create a new AR for each block. This is block-level AR and is very inefficient.
• In procedure-level AR method, AR is only used for a true procedure. The relative location of variables in individual blocks within a procedure can be computed and fixed at compile time.
Monday, July 20, 2009
Silverlight 2.0 Hosting
Client Side:
Silverlight plug-in is installed on the Web client machine
Supported Platforms:
Operating System
Silverlight plug-in is installed on the Web client machine
Supported Platforms:
Operating System
- Windows Vista
- Windows XP SP2
- Windows 2000 Windows Server 2003
- Macintosh OS 10.4.8+ (Intel Based)
Browser
- Internet Explorer6, 7+
- Firefox 1.5+ Google Chrome
- Safari
- Firefox 1.5+
Server Side:
- Slight configuration modifications may be necessary on the Web server including Microsoft Internet Information Server (IIS), such as MIME types, so that XAML and XAP files are associated with Silverlight and downloaded correctly to the Web client machine when requested
- .Net Framework 3.5
Sunday, May 24, 2009
Set Link for Email Sending using javascript
javascript:location.href='mailto:?SUBJECT='+document.title+'&BODY='+escape(location.href);
Find time Elapsed In .net without using Timer Control
System.Diagnostics.Stopwatch calcElap= new System.Diagnostics.Stopwatch();
calcElap.Start();
//do my stuff
...
calcElap.Stop();
Response.Write("Time Elapse: " + calcElap.Elapsed.ToString());
calcElap.Start();
//do my stuff
...
calcElap.Stop();
Response.Write("Time Elapse: " + calcElap.Elapsed.ToString());
Subscribe to:
Posts (Atom)