all groups > c# > april 2004 > threads for sunday april 11
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
ImageList for high-resolution images??
Posted by Vaughn at 4/11/2004 11:54:25 PM
Is there some way I can save images (bigger than 16x16 pixels) so they don't
reside as physical files on the HDD? I'm working on a screensaver but I want
to include all my images in my executable instead of having them reside in
the hard disk.
Since I use a pictureBox and the image comes from a ... more >>
Trying to add controls to the main Form from another class
Posted by James Dean at 4/11/2004 11:18:05 PM
I am trying to add controls(labels) to the main form from another class
without having the main form as a base class......how do i do this?
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!... more >>
Urgent date question
Posted by Dinçer at 4/11/2004 10:33:48 PM
I need to compare dates. But this way:
I get a date from database.
I need to understand if this date is newer then "6 months" or not.
What I need is get the current date,
calculate the date 6 months ago,
compare "the date from DB" & "the date 6 months ago from now"
show the result.
How ... more >>
How to run a shell command from a C# program?
Posted by moonriver at 4/11/2004 10:11:02 PM
How to run a shell command from a C# .Net program, more like the command() function in UNIX C
... more >>
Create a thumbnail from a remote image
Posted by Mike at 4/11/2004 8:43:31 PM
I've seen a few examples of creating an thumbnail from a file directly from
the server but....
does anyone know how i can grab a picture from another server (eg a seperate
image server http://myimages.com/images/001.jpg) and on the fly create a
thumbnail of that image?
a little like google ... more >>
how to solve this OnPaint problem ? ( about remote screen transmit )
Posted by ΢ÈíÐÂÎÅ×é at 4/11/2004 8:22:32 PM
i want to abtain remote screen capture on the pc in LAN.
i was suggested to transmit the changed parts only to save the bandwidth.
so i divide the screen into 10*10 parts. and now , i need to display the
remote screen on my own form. my method is use this:
Graphics c = this.createGraphics();
... more >>
Dynamic array
Posted by rozrabiak at 4/11/2004 8:20:06 PM
Hello.
I need to create dynamic array, like: "int[,] myArray = new int[,]" and
"int[] myArray2 = new int[]"
How can I do this? In Delphi it's very simple, but I don't know how can
I do this in C#.
Can anyone help mi with this?
greetings, gregory.... more >>
How to talk with an external console?
Posted by ~toki at 4/11/2004 8:19:58 PM
I have a full work app (server and client) that talk between two executables
trought Console.WriteLine(); & Console.ReadLine();
I have the source code of the server.
I need to make the client. To do this i have
Console.WriteLine("Hi server");
while (true)
{
String command = "";
try
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
multiple icons
Posted by SlasherStanley at 4/11/2004 6:53:39 PM
I have wrote a c# app and included the default app.ico file and then
compliled it.
When I create a shortcut to the application on the destop, I would like the
option of selecting from a choice of icons that are built into the file.
How do I include the icons in my application for this to wor... more >>
Help managing temporary objects
Posted by Diego F. at 4/11/2004 6:37:49 PM
I'm developing an application that uses a web service. The initial idea was
sending objects to the web service and storing during the execution in a
Hashtable, so I could get them back to the application via web methods.
Now I know that I can't store objects in a web service and I should
seria... more >>
Disable Screen Saver
Posted by Thom Little at 4/11/2004 6:24:00 PM
Using C# I can determine if the Screen Saver is enabled by ...
private RegistryKey rkScreenSaver = Registry.CurrentUser.OpenSubKey(
@"Control Panel\Desktop" );
if ( (string) rkScreenSaver.GetValue( "ScreenSaveActive" ) == "1" )
{
}
I would like to disable it with ...
private Regis... more >>
How do I set XP System Time?
Posted by Mike Kearl at 4/11/2004 5:49:48 PM
I want to set the local Date Time of the xp systems in my organization using
C# and a winform application.
From what I have read this is not an easy task anymore. You have to obtain
privlege and then set it from there.
Does anyone have a good C# example on how to do this? I want to sync my... more >>
MDI child activation behavior
Posted by KRH at 4/11/2004 5:06:03 PM
I posted this over in dotnet.framework.forms, but this is probably a better forum for it
Question: Why doesn't clicking anywhere on a child form (not just the title bar) in a MDI application activate the child in C#, as in VB.NET and almost any other Windows environment. Was this by design? I sure ... more >>
Calculating time
Posted by Philip Townsend at 4/11/2004 4:29:45 PM
I need to add together some times that are stored in a database as
seperate int values. Here is a code segment that is flawed (ts is
declared as: TimeSpan ts=new TimeSpan(0,0,0). As is, the value of ts
remains at 0:00:00. Can anybody help with this?
h=dr.GetInt32(dr.GetOrdinal("hours"));
m=dr... more >>
real newbie question on c#
Posted by Raymond Du at 4/11/2004 3:47:13 PM
Hi,
//The following c# code:
for (int i = 0; i<args.Length;i++)
{
int var1 = SomeFunction();
if (args[i] > var1)
break;
}
//Question: will i and var1 still be available outside the for loop, say
from here?
Thanks in Advance
... more >>
C# floating point consistency
Posted by news.microsoft.com at 4/11/2004 3:25:17 PM
I spent the wee hours of last night tracking down a lock-up bug that was
causing SorterObjectArray.QuickSort to loop indefinitely. It was comparing
an object with itself, and yet the IComparer function was returning -1! The
function was calculating the area of RectangleF on the object by
multip... more >>
Handling cursor drag
Posted by Jon Cosby at 4/11/2004 3:17:23 PM
I need an event handler for dragging the cursor on a PictureBox. The
existing events only include handlers for dragging and dropping objects over
the controls. I'm trying to use the MouseDown and MouseUp handlers as below,
but it never gets out of the while loop.
this.PicBox.MouseDown += n... more >>
check word length
Posted by Aaron at 4/11/2004 2:57:09 PM
DOes anyone know how to check the length of words in a string?
I want all the word in a string to be less than 100 char to prevent buffer
overflow.
Thanks.
Aaron
... more >>
Can't find a namespace in VS 2003 !!
Posted by Diego F. at 4/11/2004 12:19:27 PM
I'm trying to use a SoapFormatter, and it's supposed to be in
System.Runtime.Serialization.Formatters, but here I only have Binary
namespace and not Soap.
Regards,
Diego F.
... more >>
Browse folder component
Posted by Joshua Ellul at 4/11/2004 10:01:33 AM
Hi There,
Is there an existing browse folder component in the .net framework?
Josh
... more >>
Return Data Regex Doesn't Isolate - Yikes
Posted by Garibaldi at 4/11/2004 9:12:45 AM
Folks,
I'm having a bad regex day and can sure use your help, please..
I have a Regex expression that works fine. It's purpose is to isolate all
data from the start of a string begining with 200~ to the end of the string
but before the start of the next 200~. Here's the regex expression and ... more >>
Anonymous Delegates and Events
Posted by msnews.microsoft.com at 4/11/2004 7:55:59 AM
Once the form is activated I would like to remove the reference to the
anonymous delegate. Can I reference the delegate from within the delegate?
For example ...
form.Activated += delegate
{
wasActivated = true;
form.Activated -= ????
}
next time form is activeated, this sho... more >>
Invoke Screen Saver
Posted by Thom Little at 4/11/2004 4:16:44 AM
How do I invoke the current screen saver with C#?
Where did you find the information on how to do it?
--
-- Thom Little -- www.tlaNET.net -- Thom Little Associates, Ltd.
--
... more >>
Service starts on WinXP but not Win2K
Posted by spamtrap NO[at]SPAM tpsd.com at 4/11/2004 1:10:14 AM
I wrote a C# windows service and it will install on Win2K but won't
start. I have code in it to write to the event log but it doesn't log
anything.
I developed it on WinXP with VS and it installs and runs fine on that
WinXP system. The service is a C# remoting listener if that makes any
dif... more >>
working with queues...
Posted by Ricardo at 4/11/2004 12:19:22 AM
Hi...
I'm doing a program that analise a web page for a string, if found it
register that page, and if it found any links on that page, it follows the
link and searsh it for the string, and so on.
The problem is that I want to delimit this process to only 5 pages to be
processed at a time. ... more >>
|