all groups > c# > february 2006 > threads for saturday february 4
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
OpenFileDialog that can select folders?
Posted by Michael A. Covington at 2/4/2006 10:18:44 PM
Is there any way to hack OpenFileDialog (either in .NET 2.0 or in Win32)
that will allow the user to select a folder rather than a file? Better yet,
multiselect them.
I know about FolderBrowserDialog, but it's not satisfactory because it
doesn't show or follow shortcuts, and also because u... more >>
Unusual characters in XML document cause xml load problem
Posted by Joe at 2/4/2006 10:09:03 PM
Hi,
I want to save some URLs into a XML formatted document.
I find out that its having some problems due to some of the characters used
in the URL.
Is there a quick way to get around that? Thanks.
Here are some of the URL characters in the parameters
www.site.com/='N+Ss+Volume'&sym... more >>
Another Form1_Load function?
Posted by Joe at 2/4/2006 9:12:57 PM
Is there another Form1_Load function?
I need to call a function to exit but I want to have it called right after
the User interface have been loaded and appeared on screen. Right now the
Load function doesn't load the User interface to be viewable and the code I
call the exit function in ... more >>
How to have a reference to an object in a class?
Posted by Richard Lewis Haggard at 2/4/2006 9:07:35 PM
Is it possible to put a reference to an object inside of a class? If so,
what is the syntax? The reason I want to do this is so that I can make a
copy of the original object, make modifications to the copy and then, if the
modifications are acceptable, reload the original object with the conte... more >>
How to make a console app. keep running without using Console.Readline
Posted by nadeem_far NO[at]SPAM yahoo.com at 2/4/2006 8:06:45 PM
Hello All,
These days I am working on a console application that will register for
certain events and do some processing based on the event notification.
Now, all the objects are being created in main(). Once the main exists
the program ends.
Here is what I want to do.
Is there any way... more >>
Interface question
Posted by Patrick at 2/4/2006 7:59:46 PM
Hello all,
I have a bunch of classes that implement the same static methods (same
name and same parameters).
However, their return types are different because they return an IList of
different types. I'm looking for a way to generically call these methods
without knowing the Type at runtim... more >>
Advised way to sync to threads
Posted by chris.dannemiller NO[at]SPAM gmail.com at 2/4/2006 7:00:58 PM
What is the advised way to sync to threads one is the primary thread
that handles rendering, and a secondary thread that occasionally
updates the data the render thread uses. I have tried a few things like
the Interlocked routines but they don't work like they did in MFC.
... more >>
best method of reading XML and adding data to ListView
Posted by Joe at 2/4/2006 5:49:51 PM
Anyone can suggest the best method of reading XML and adding data to
ListView?
Here is the xml data structure::
<xml>
<site>
<url>http://www.yahoo.com</url>
<lastupdate></lastupdate>
<check>1</check>
</site>
<site>
<url>http://www.yahoo.com</url>
<lastupdate></lastup... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Formatting datetime
Posted by Joe at 2/4/2006 4:20:31 PM
I need to format the DateTime into such format "yyyymmdd HH:mm"
how do you do that?
... more >>
ListView Control access
Posted by Joe at 2/4/2006 4:19:29 PM
I set up two columns in listview.
I use Add to add items, but how do I access the second column? and add text?
... more >>
Jagged and Multi-Dimensional Array Declaration Subtleties
Posted by Alan Foxmore at 2/4/2006 3:41:24 PM
Hi everyone,
I'm new to C# and I was hoping I could get some clarification on the
syntax for jagged and multidimensional arrays.
Here is my question:
The following syntax is correct for declaring a multi-dimensional
array:
int[,] v = {{ 3, 6, 4 },
{ 2, 8, 1 }};
... more >>
about concurent access : event/timer
Posted by # Cyrille37 # at 2/4/2006 2:47:32 PM
Hello,
I've got a method which could be called by a UI Event and a Timer.
I would like to be shure that not 2 concurents calls append.
I don't know if I can use System.Threading.Monitor.
And if System.Threading.Monitor is the right method, which object I've to
Monitoring ?
Here is a p... more >>
Uninitialized data-binding
Posted by Viraptor at 2/4/2006 1:55:49 PM
Hello
I've created a form with 2 listboxes. Both have data-binding. First one
is "normal", 1:1 view of table. Second is filled using parameter from
the first one.
this.xxxTableAdapter.Fill(this.mainDataSet.XXX,
(int)this.BindingContext[yyyBindingSource, "id"].Current);
When I do it in Form... more >>
c# key sequence
Posted by jpierson NO[at]SPAM gmail.com at 2/4/2006 1:07:09 PM
Hi,
I'm trying to simulate a break sequence to a serial device ctrl +
pause/break
I tried it with limited succcess using this
SendKeys.SendWait("^{BREAK}")
I'm putting this code under a button click event,I think it may have
something to do with a keyboard hook but i'm not sure how to go... more >>
Suppression of incorrect warnings.
Posted by Peter Ritchie at 2/4/2006 12:15:39 PM
Does anyone know how to suppress a specific warning for a line or block of
code in C#? C++ has a nice facility to disable a warning for a block of code
with #pragma for warnings that are incorrect or don't apply.
For example, the following code generates an CS0628 because CS0628 makes an
i... more >>
string.Empty or String.Empty or ""?
Posted by Charlie NO[at]SPAM CBFC at 2/4/2006 12:10:29 PM
Hi:
Is there any difference between string.Empty and String.Empty? And what is
the benefit of using it over "".
Thanks,
Charlie
... more >>
Uninstall previous version
Posted by chris.dannemiller NO[at]SPAM gmail.com at 2/4/2006 11:58:34 AM
The software I am developing is targeted to users with minimal computer
skills is it possible with the installer to setup up the following
logic.
Detect if previous version is installed, If So ask the user if they
wish to uninstall the previous version.
- Christopher M. Dannemiller.
... more >>
Help combinging 3 numbers into 1 with bitwise operatioons
Posted by john conwell at 2/4/2006 10:00:05 AM
I have 3 5-digit numbers that i'd like to combine into one 15 digit number,
and later rip back into the original 3 5-digit numbers.
I know i can do this easily with some string manipulations, but i'm pretty
sure i can do the same thing with some bitwise operation like bit shifting or
someth... more >>
VS 2K5 freezing up on you?
Posted by Brett Romero at 2/4/2006 9:57:09 AM
Starting yesterday evening, VS2K5 starting doing this thing were it
will spike the cpu at 100% for a few seconds then every thing is fine
and then another spike. It just keeps going like that cycle over and
over. I'll be typing or something and everything freezes and the cpu
is at 100%. I kno... more >>
picturebox image does not have a Location ??
Posted by **Developer** at 2/4/2006 9:03:06 AM
During debug I noticed that a picturebox image does not have a Location
Is the image object always located at the upper left of the clientsize of
the picturebox.
If the picturebox clientsize is bigger then the image size the background
always shows at the lower and/or right??
If the cli... more >>
C# Control
Posted by Greg at 2/4/2006 8:37:25 AM
Can a custom control DLL develped in C# be used in any .NET project e.g.
C++/VB?
Also, any ideas on the best ways to share GUI controls among both Web Forms
and Windows Forms app? i.e. is there any way to avoid having to develop the
same control twice, one for Windows and one for Web?
--... more >>
Best place for global constants
Posted by Dave at 2/4/2006 3:39:46 AM
If I have some constants I want to use throughout my application, how should
I implement that?
const string USA = "US"
const string CANADA = "CA"
etc.... more >>
Winforms printing
Posted by Code Monkey at 2/4/2006 3:11:23 AM
I have a winform application in c#. I've worked out how to print a
single page to a printer. I cannot, however, work out how to print more
than 1 page.
Can anyone help and maybe provide a small code snippet?
Thanks in advance...
... more >>
Generics, use mathematical operatos on type parameter
Posted by Jock at 2/4/2006 12:00:00 AM
Hi all,
I would like to use mathematical operators (*, +, etc) on a generic
parameter, see the code below:
public class TestGenerics<T> where ???
{
private T d;
public TestGenerics(int a)
{
d = a * 3;
}
}
Is this possible?
If... more >>
C# & XP Taskbar grouping
Posted by hohrin at 2/4/2006 12:00:00 AM
Hopefully someone here will be able to point me in the right direction
In my C# application I have several forms which get a taskbar butto
when open. These buttons appear correctly with proper form name an
application icon. however when the taskbar automatically groups th
buttons together, ... more >>
|