|
please tell me how to know how many resources in a namespace
|
|
|
|
|
|
Is there a quick and simple way to scroll to the bottom of a RichTextBox control? I haven't found too many resources dealing with scroll bars. Thanks.
|
|
|
|
|
Does this help ?
textBox.Select(textBox.Text.Length, 0);
textBox.ScrollToCaret();
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
On top of what Kumar said, ScrollToCaret() only works if the RichTextBox has the focus. You might want to insert a call to .Focus() before you call ScrollToCaret() .
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi,
I am trying to grab a video clip from a movie in C# using DirectShow. I am using DirectShowNet project which I got from codeproject.com.It is working well when i am using devices like web cam etc .
I am getting problem in playing a movie which is stored on hard disk and capturing video clip from it.
An Exception is raised when SetupGraph() function is invoked from
RenderStream() function "Invalid Parameter".
I had used FilterCategory.LegacyAmFilterCategory as first argument to
DsDev.GetDevicesOfCat() function.And from the list of devices displayed by DeviceSelector class I am selecting 'File Source(async)'
|
|
|
|
|
hi all,
I need to give user name and password to windows 2000 Professional Logon Dialog using C# Application..
after that I need to access the computer without giving user name and password..
How can I do that?
|
|
|
|
|
I believe there's a dll that controls that on W2000, which you can replace with your own. As far as doing it to ANY W2000 install, I don't see how you could, the system would not be very secure if it allowed you to run code on a machine that has not been logged into. You may even have trouble because you're looking at C#, and the .NET framework may have trouble starting before anyone is logged in.
How do you want to access this computer ? Control it ? I really think you're talking about a C++ program here. You'd just end up importing so much API stuff, you're better off starting there.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I am fit with C++..
Can u tell me how to do that using C++?
I want to send values to User name and Password in "Log on to Windows" Dialog using C# or C++.
I am doing this because I can avoid entering username, password again and again..Then I can log on to machine automatically
OR Is there a another way to fullfill this?(using Windows Properties)
However my computer in a Domain..NOT in a WorkGroup.
If I am in a WorkGroup,I can easily Disable Appearing "Log on Dialog Box".
|
|
|
|
|
Can't be done.
What you should be looking into is setting up Auto Logon. See here[^]. No code required...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
hi,
Thanks a lot..
It is working
|
|
|
|
|
I am using the following code to create a graphics object (image) which i then write text to and display on the screen. When I try to resize the object's width i get an error saying that it is read only? What does this mean and how can I resize it?
m_objDrawingSurface = new Bitmap(this.ClientRectangle.Width,
this.ClientRectangle.Height, System.Drawing.Imaging.PixelFormat.Format24bppRgb);
To resize it I am trying to use:
m_objDrawingSurface.Width = this.ClientRectangle.Width;
Im trying to resize the image to match the window size when it changes.
Could someone please help to correctly change the size??
|
|
|
|
|
The property is indeed read only - a Bitmap does not allow you to change that sort of thing. You need to create a new Bitmap, use Graphics.FromImage to get a graphics object, and then draw your bitmap into the graphics object at the dimensions you want to convert it to. Bitmap.Clone also has a method that takes a size, but the size needs to be smaller, and it makes a copy of part of the image, it does not resize.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Hey,
I want to write a peice of code which can be useful to shut down my computer from C# programmer. I want to call executable responsible for shutting down computer is it possible?
|
|
|
|
|
There are API calls that do this, which you can import into C# and call. The .NET framework has nothing to do this for you. I googled for more info ( my code to do this is at home ), and this is the first link I found:
http://www.codeproject.com/csharp/timercomputershutdown.asp[^]
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
You can use the following which is actually a shell command:
System.Diagnostic.Process.Start("shutdown","/s")
For a different tactic, take a look here[^].
Regards,
Polis
Can you practice what you teach?
|
|
|
|
|
Yes, it's possible! I had the same problem a month ago
Go to http://www.mentalis.org/soft/class.qpx?id=7 download WindowsControler. To shutdown your computer you need to add WindowsController.cs to your project, add line "using Org.Mentalis.Utilities;" ....... and
WindowsController.ExitWindows(RestartOptions.ShutDown, true);
Best regards
|
|
|
|
|
can any body tell me "in very simple words" that what are the indexers. i am a just a beginner to c#. so please use very easy language.
i am athar
|
|
|
|
|
Well, I guess one could say that Indexers are just a way of allowing your Class to be used and accessed just like an array. No wonder why they are also called "virtual arrays". For a rather self-explanatory tutorial take a look here[^].
Hope this helps you get the overall picture.
Regards,
Polis
Can you practice what you teach?
|
|
|
|
|
You can imagine indexers to be like overloading [] operator in C++. They essentially allow you to treate your object like an array.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
Hi,
I'd like to create user controls like I'm used to in windows forms
is it possible or should I use something else?
I'd like to re-use my basic IU with menu buttons and load misc. lists or status usercontrols into a placeholder..
thanks,
H
|
|
|
|
|
So what you are actually saying is that you need a good tutorial what will help you with your first user control? If this is the case, take a look here[^].
Hope this helps.
Regards,
Polis
Can you practice what you teach?
|
|
|
|
|
Well, yes.. it does.. a little..
Is it possible to make a user control, visually, like the ones in Windows Forms ?
For my PocketPC app..
|
|
|
|
|
Ooops, I am sorry. I didn't notice it was for a pocket pc application. Take a look at the following links then. They are specific to the .NET Compact Framework:
Link 1[^]
Link 2[^]
Regards,
Polis
Can you practice what you teach?
|
|
|
|
|
Has anybody managed to get IIS hosted .NET remoting to work on a virtual server? I'm dammned if I can get anything other than a 404 from a remoting endpoint I know works otherwise. Have tried setting the machinename attribute in the channel configuration, but to no avail.
Anyone got any ideas?
Ryan
|
|
|
|