|
I've been using the AxWebBrowser control for some time now. Lately though, it's been giving me this error message when I exit the program (after debugging).
<br />
An unhandled exception of type 'System.Reflection.TargetInvocationException' occurred in system.windows.forms.dll<br />
<br />
Additional information: Unable to get the window handle for the 'AxWebBrowser' control. Windowless ActiveX controls are not supported.<br />
Sammy
"A good friend, is like a good book: the inside is better than the cover..."
|
|
|
|
|
is it posible to catch some console input before drawing it on screen using some API functions?
thank u for help!
|
|
|
|
|
|
FileIOPermissins this class give me permissions on my application but not change permissions Physically on my drive i need to change the permissions on any folder on my drive Physically even if i close the application
|
|
|
|
|
There is nothing native in the .NET Framework to modify the Access Control Lists on Files, as far as I can find. You would have to use calls into the API to accomplish this. It would require writing up a couple dozen structure and function headers:
LookupAccountName, InitializeSecurityDescriptor, GetSecurityDescriptorDacl, GetFileSecurityN, GetFileSecurity, GetAclInformation, EqualSid, GetLengthSid, InitializeAcl, GetAce, AddAce, AddAccessAllowedAce, AddAccessDeniedAce, SetSecurityDescriptorDacl, SetFileSecurity, ...
then there's the structures that go along with them:
SECURITY_DESCRIPTOR, ACL_SIZE_INFORMATION, ACL, ACCESS_ALLOWED_ACE, ACCESS_DENIED_ACE, ACE_HEADER
RageInTheMachine9532
|
|
|
|
|
|
hi i have A Room with diementions
z=-80 to z=286
y=-66 to y=5
x=20 to x=100
i dont know what is the best type of lighting and where to put it and what is the recommended number of lighting??
|
|
|
|
|
I'm currently writing a painting method of an custom usercontrol. Is there a way to determine if the control is in designing state or at useual (runtime state) ?
public void PaintObject()
{
if (DESIGNTIME == true) DrawRectArountControl();
else DoUsualDrawing();
}
|
|
|
|
|
Sure, try using base.DesignMode().
RageInTheMachine9532
|
|
|
|
|
public void PaintObject()
{
if (true == this.DesignMode) DrawRectArountControl();
else DoUsualDrawing();
}
|
|
|
|
|
please help me, i need change a permissions folder by code not manual,i mean where permissions saved in regedit
|
|
|
|
|
Take a look at FileIOPermission class.
Mazy
"A bank is a place that will lend you money if you can prove that you don't need it." - Bob Hope
|
|
|
|
|
thank you for help me,but this class give me permissions on my application but not change permissions Physically on my drive i need to change the permissions on any folder on my drive Physically even if i close the application
|
|
|
|
|
|
What the problem really is, is that I wanted to store a function inside a namespace instead of a class, but that appearantly cannot be done. I have several very different classes witch all must use one function. I feel it would be waste of memory if I just drop the function to each class, or create an seperate class called something like MyFunctionsStoreClass that would store all the functions I might need. Is there an alternative ?
|
|
|
|
|
Yes, methods need to be inside a class. If you don't need an instance, you can add the word 'static' before the function declaration (like in 'static void blablabla()') and use it by calling ClassName.blablabla(), without the need for an instance.
Perl combines all the worst aspects of C and Lisp: a billion different sublanguages in one monolithic executable. It combines the power of C with the readability of PostScript. -- Jamie Zawinski
|
|
|
|
|
Thanks, that'll do the job.
|
|
|
|
|
In C#, yes. In IL, you can have global functions. I just include this for posterity. You're right about C#.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
In VB.NET you can also have global functions.
Perl combines all the worst aspects of C and Lisp: a billion different sublanguages in one monolithic executable. It combines the power of C with the readability of PostScript. -- Jamie Zawinski
|
|
|
|
|
Hi Guys,
I'm new to socket programming. I need to create a C# program that reads data from multiple servers at the same time or one at a time - whatever is the easiest way.
I have more than a 100 ip address and ports (from the list), If I can't connect and read from the first (IP and port) the program should go to the next IP/PORT from the list and connect and read the data. After that all data retrieved will be saved into the SQL server database.
If you could redirect me to some tutorials or samples it would be of greate help. Or if YOU could help me I would appreciate it very much.
8-( Dabuskol
|
|
|
|
|
There is actually a pretty good simple "chat" example in MSDN. I would recommend downloading it. It also never hurts to get familiar with the System.Net namespace.
|
|
|
|
|
Tom,
Do you have any specific site from MSDN regarding CHAT? I'm sorry but I really need the answer because of the pressure from my boss.
Dabuskol
|
|
|
|
|
In my MSDN Oct 03, in ".Net Samples- How To: Networking" there is a sample simply called "Chat" with documentation and suplemental information. The exact same page is available online at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpqstart/html/cpsmpnetsamples-howtonetworking.asp
I found it simply by doing a search "chat". No divine inspiration...I just knew a chat example existed somewhere.
|
|
|
|
|
Hi Tom,
You're really great with your help.
I've already created a socket program in c# and it was working fine. I just need to trap certain events (errors) while my program is running. Since I have 50(s) or more connections in 1 time I need to monitor which one is not receiving any data for a couple of mins. What I will do is disconnect that particular connection and reconnect again until everything is ok.
Do you suggest any C# Networking Book becuase i'm planning to drop by the bookstore after office so that I'll have a better idea of this matter (first time on networking thing.)
Thanks and more power to you
/dabuskol;
|
|
|
|
|
Hi everyone.
I have been trying to remove a forms captionbar, but without much success. I have tryed setting the FormBorderStyle to None, but that removes the border as well as the Captionbar, but I want to keep the border as the 3D style. Anyone got any idea how this is done without a lot of coding?
Nightcrawler
Resistance is futile - Data (ST:First Contact)
|
|
|
|