all groups > c# > january 2007 > threads for sunday january 14
Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
Allow Tab in a RichTextBox?
Posted by Michael A. Covington at 1/14/2007 11:22:05 PM
How do I allow the user to use the Tab key (to insert a Tab) in a
RichTextBox? The sticking point is how to get Tab to generate a KeyDown
event rather than simply moving the focus to the next control.
... more >>
Combobox with checked list box.
Posted by saurabhnsit2002 NO[at]SPAM gmail.com at 1/14/2007 9:21:13 PM
Can anyone help me about how to create combo box with its items as
checked boxes or radio buttons. This has to be done in C#. I have seen
something similar to this named custom combo boxes but they are in MFC
I have to remain constrained only in C#.
I have tried to add checked listbox in combobo... more >>
probleme with toolstrip
Posted by Mark at 1/14/2007 9:20:13 PM
Hi,
I have a toolstrip with several buttons, I can only see the image assigned
for each button in design time and not on runtime. I've tried several
different formats .bmp, .png, .ico for these buttons without any success.
Does anybody experienced this issue before? do you have any idea wh... more >>
Deployment project question
Posted by Michael A. Covington at 1/14/2007 7:54:02 PM
Greetings,
Here's a question about deploying my C# application.
My program includes a large library of data files.
As far as I can tell, data files can only be added to a deployment project
one at a time. Is there a way to add a whole folder, with all its contents
and subfolders, to a ... more >>
Calling a generic method that has a return value
Posted by Otis Mukinfus at 1/14/2007 4:04:33 PM
I've been wrestling with this for a while and can't figure it out.
I have a generic method with the following signature:
//this compiles OK
public abstract class DataMethod
{
public abstract T Select<T>();
}
I want to call it like this:
public override T Select<T>()
{
... more >>
ThreadPool.QueueUserWorkItem worker thread quit quietly?
Posted by FJY at 1/14/2007 2:09:01 PM
Hello All,
I met a strange behavior with the system threadpool. The worker thread seems
to quit in the middle of processing. Here is the code: I could see the step 1
is finished but step 2 is not finished. There was no exception. Any thoughts?
{
....
ThreadPool.QueueUserWorkItem(new Wa... more >>
Instantiate class from string
Posted by tiempotecnologia NO[at]SPAM newsgroup.nospam at 1/14/2007 1:01:39 PM
Hi
I have a string with a classname, and I need to instantiate an object of
this class.
How I can do that?
For example
formclass = "form999"
(formclass)MyNewForm = new (formclass)( );
MyNewForm.Show( );
Of course the string is assigned at runtime
Thanks In Advance
Rodrigo Juar... more >>
newbie questions on http handler
Posted by Raymond Du at 1/14/2007 10:46:24 AM
Hi,
I have questions about http handler:
(1) Does it always ends with .ashx, the articles I read said http handler is
for developers to create something to handle different kind of files
extension, but all example I saw use .ashx.
(2) It does not inherit from Page class at all. Right? If it... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
'using' statements
Posted by Ben at 1/14/2007 10:09:00 AM
Hi,
I sometimes see code where the 'using' statements at the top of the file are
located
before the namespace declaration, and sometimes they are located inside it.
For example:
using System;
using System.Collections;
namespace MyNamespace
{
...
}
and
namespace MyNamespace... more >>
How to programmatically read the body text of Outlook email?
Posted by sherifffruitfly at 1/14/2007 9:56:32 AM
Hi,
I get usage statistics emailed to me weekly, and would like to analyze
the numbers. How can I read the body text of these emails into, say, a
String instance?
Thanks,
cdj
... more >>
Disabling internet access
Posted by richard.sutcliffe NO[at]SPAM gmail.com at 1/14/2007 8:38:46 AM
I want to write a small service that will simply disable internet
access from my kids PC between certain times (to make sure they do
their homework, etc). I know I could buy any number of internet
monitoring software but I don't want to act as 'big brother'.
What would be the simplest, most r... more >>
MdiList property in VS 2005 ??
Posted by Chris Peeters at 1/14/2007 6:48:29 AM
hi,
in VS 2003 one used the MdiList-property of a menuitem to display the
Active Mdi-child windows in the menuitem.
But I can't find it nowhere in VS2005.
what is the equivalent for that in VS2005 ?
thank you
Chris
*** Sent via Developersdex http://www.developersdex.com ***... more >>
generics - constraint
Posted by Michael Moreno at 1/14/2007 6:31:39 AM
hello,
I am trying to write a generic class where the underlying type is
either an int, a float or a double:
public class CMatrix<T>: ICloneable where VarType: int, float, double
but that does not compile.
The error message is :
'int' is not a valid constraint. A type used as a cons... more >>
Window Hooks
Posted by andyblum NO[at]SPAM gmail.com at 1/14/2007 1:45:30 AM
>From my reading it is not possible to create Global Hooks for WIndow
Creation, Destroyed and Moved events in C#. I am just unclear about
the difference between a global and locals hook. Is global anything
that is not part of my application while local is anything that is? I
do know the handl... more >>
|