all groups > c# > january 2004 > threads for sunday january 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 29 30 31
Urgent: How to iterate all windows belonging to a particular process in C#
Posted by Vinay at 1/4/2004 11:43:59 PM
Hi,
I want to find all the windows created by a particular
process object and close them. Process class only
returns handle to Mainwindow and not other windows.
Furthermore closing mainwindow does not close all other
windows.
Can someone give pointers?
TIA,
Vinay... more >>
[REPOST] Queuing application not working
Posted by Abhishek Srivastava at 1/4/2004 10:27:50 PM
Hello All,
I am trying to implement the MQ application from quick start samples.
I am getting the following error upon running either the client or the
server.
Unhandled Exception: System.Messaging.MessageQueueException: A workgroup
install
ation computer does not support the operation.
... more >>
MSMQ In Windows Services
Posted by buddhiw NO[at]SPAM sabretch.com at 1/4/2004 10:02:42 PM
Hi
I am developing a windows service which access queue. When i add the
queue to my service and add a installer and install using the
Installutil exe. it gives a error saying that the service failed to
install because it can not determined wheather a queue with format
name exists. My services... more >>
dynamic method call
Posted by RickN at 1/4/2004 9:32:42 PM
I have some classes set up with the same name as my database tables. I'd
like to be able to access those properties dynamically in a foreach loop wo
having to do a switch case. How do I convert the tablename so it can be
used as a class name?
for example:
DataSet ds;
foreach(DataTable dt i... more >>
DataGrid format
Posted by Peter at 1/4/2004 8:50:59 PM
I have a datagrid on WinForm and I am trying to format the Grid.
I am using the following code, the code runs fine, but nothing happens =
after it runs, the datagrid does not change (with data in the grid or =
with out any data)
DataGridTableStyle gridStyle =3D new DataGridTableStyle();
... more >>
How to add a method member to a class or object in run-time?
Posted by peter at 1/4/2004 8:44:26 PM
In run-time,is there any approach to add or revise the
members,such as method or attribute ,of a class or object?
As for the object of class soapclient30 in MS soap
toolkit, after it executes the mssoapinit method,it will
have some additional methods which have been described in
WSDL f... more >>
SQL command to create new table?
Posted by Jacob at 1/4/2004 8:06:57 PM
A simple question:
I've read a couple of things that indicates I can create a new table in my
database using some SQL command. Is this correct? I would like to load a
database into a DataSet, make changes to the existing DataTable(s), add NEW
DataTable(s) if necessary and save the changes ba... more >>
Architecture Issues
Posted by Bruce Vander Werf at 1/4/2004 8:01:27 PM
Our current unmanaged architecture consists of an EXE and several
optional DLLs. The list of available DLLs is stored outside of the
EXE, and the DLLs are loaded as needed. The DLLs have identical
calling interfaces. The program dynamically links to a number of
routines in the DLL, and the DLLs,... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
"field is never assigned to" warnings
Posted by Hans Nieser at 1/4/2004 7:58:39 PM
I was wondering wether it was normal that I get "field is never assigned
to" warnings after defining a struct but not having actually referred to
it in my code yet. Is this just something I'll have to ignore or am I
doing something wrong here?
TIA... more >>
Winform datagrid Question
Posted by Phil Barber at 1/4/2004 6:48:16 PM
What event fires when a user move from one row to the next?
and How do extract the data in that row?
Thanks.
Phil.
... more >>
ulong to byte[]
Posted by Nadav at 1/4/2004 6:43:17 PM
How can a UInt64 be converted to a byte[] ????
... more >>
Process.Start fails on separate thread
Posted by Paul E Collins at 1/4/2004 6:37:48 PM
I use Process.Start to open a URL in the user's browser.
When I call the function normally, it works fine. However, when I call it
from a separate thread, I get an error: "The requested section was not
present in the activation context".
The only C# newsgroup thread dealing with this error b... more >>
Xml Serialization... Undesirable results
Posted by Trevor at 1/4/2004 6:00:37 PM
I have created a class Newsgroup which allows itself to be serialized using
Xml serialization attributes.
[Serializable]
[XmlRoot("Newsgroup")]
public class Newsgroup
{
[XmlAttribute("Name")]
public string Name;
[XmlIgnore]
public int LastArticle;
[XmlIgnore]
public int FirstArt... more >>
Stupid regex help
Posted by Austin Ehlers at 1/4/2004 3:12:13 PM
Happy new years everybody!
Alright, I've got a string, with this as an example:
Title: The title of something
Title may or may not be followed with a colon (:), dash (-), or a
space-dash ( -)
I need to extract "The title of something". Here's what I got so far:
^(Title)[:\- ]|( \-)
w... more >>
Remoting->Delegate
Posted by Nadav at 1/4/2004 3:01:13 PM
Hi,
I Wonder... Can a server-side class exposed through remoting expose a
delegate? In other words: can a client set a server-side delegate that
in-turn will be asynchronously called from the server on the client?
Thanks,
Nadav.
... more >>
double.Parse comma seperator indep.
Posted by Jesper Denmark at 1/4/2004 2:02:20 PM
Hi,
I use the double.Parse functionality to convert a number
in a text file into a double. However, while this works
fine on one computer it doesn't on another. I've found
out that it is dependent on the comma seperator settings
on the computer. Is there a way to override this - I
would... more >>
DateTime & string format question
Posted by Trevor Balcom at 1/4/2004 1:54:28 PM
Hello, I am new to C# and cannot figure out how to do something simple. How
can I build two strings out of a DateTime object? I need one string to
contain the DateTime's date in YYMMDD format. The other string should
contain the DateTime's time in HHMMSS format. Both strings should always
re... more >>
New ASP.NET 2.0 Terminology: "CROSSPOST" is a very BAD name to use
Posted by anon at 1/4/2004 1:18:30 PM
Dear Microsoft:
In your new ASP.NET 2.0 page model of being able to crosspost to another
page, it would seem that if you were to type that word in Google,
"crosspost" or "cross post", you will get endless amount of results from the
newsgroup police complaining about posters cross posting to ma... more >>
Problem with Xml Serialization
Posted by Jax at 1/4/2004 12:55:12 PM
I have a rather large class that i'm looking to serialize
to Xml.
Whenever it tries to serialize it I get this error message:
An unhandled exception of
type 'System.InvalidOperationException' occurred in
system.xml.dll
Additional information: There was an error
reflecting 'VestaQuoteV... more >>
Register GridColumnStyle in DataGrid/TableStyles/GridColumnStyles designer?
Posted by alex n at 1/4/2004 11:22:50 AM
this one already has
'add' button with drop-down menu
with
-datagridtextboxcolumn
-datagridboolcolumn
how could i put my own cols there?
... more >>
Code to find the size of an object
Posted by Jon Jagger at 1/4/2004 11:18:31 AM
I was thinking about how you can only use sizeof to find the size of an
unmanaged type. I started to wonder if there was a way to find the size of a
managed object and came up with the following. It's not guaranteed behaviour
but it seems to work. Doesn't lose verifiability either. Enjoy.
Chee... more >>
Universal "Session" Functionality?
Posted by Steve - DND at 1/4/2004 10:48:44 AM
I'm currently creating an application with an n-tier design(not separate
boxes for each layer, just separation of pres/logic/data) that will have
both a web and windows interface. I'm trying to find out if there is a way
to maintain user information and access it in either my business logic or
d... more >>
Want to see boxing/unboxing timings - is this code no good?
Posted by emma_middlebrook NO[at]SPAM fastmail.fm at 1/4/2004 9:20:22 AM
Hi
Is this class and code snippet not good enough to see the differences
between having a collection of a value type compared with having a
collection of references to a reference type (containing that same
value type)? Using a wrapper around Win32's QueryPerformanceCounter
and some tracing I... more >>
Using win32 API function in C#
Posted by dp_israel NO[at]SPAM yahoo.com at 1/4/2004 8:03:01 AM
hello everyone,
i need to use api function named RegSetKeySecurity in my C# program.
This function require ADVAPI32.DLL, but i cannot add this reference.
I tried to use Microsoft.Win32.Registry Namespace but it doesn't give
te ability to modify Security descriptors.
Please help
thanks.... more >>
display system memory graph
Posted by Abhishek Midya at 1/4/2004 6:29:07 AM
Thankyou for attending to my question.
1. I would like to know how i can display the real time
system memory as a graph.
2. How can i query which company and model number does my
motherboard belong to.
Thanks.
Abhishek Midya... more >>
temporary internet file properties
Posted by Abhishek Midya at 1/4/2004 6:25:58 AM
Thankyou for attending to my question.
I would like to know how i can simply show the source
link of the temporary internet files.
For example if there is a file called : img1.gif
in the temporary internet files folder, i want to display
the website , where this image file belongs to.
... more >>
C# random data
Posted by Maziar Aflatoun at 1/4/2004 5:34:40 AM
Hi everyone,
I have the following random string generator
public static string getAlphabets(int strLength)
{
string RandomString = "";
Random X = new Random();
for (int x=0; x < strLength; x++) RandomString +=(char)(X.Next(65, 90));
return RandomString;
}
The only pro... more >>
Minimize override?
Posted by T250 at 1/4/2004 3:57:34 AM
I would like to override the behavior of my applications Minimize button to
Hide() but can't seem to locate where Minimize is implemented in the
framework. The closest I've found is a property where one can toggle
between the application going to the tray or to the desktop but I just want
i... more >>
Adding Image file supports into .net
Posted by Dave Quigley at 1/4/2004 3:50:14 AM
Hello everyone.... Im currently starting my targa support project again for
..NET and I am wondering if there are any particular interfaces or classes
that Im supposed to extend in order to do this in a propper manner. I could
try to replicate Bitmap however I believe the problem I ran into was t... more >>
Adding event handlers
Posted by Lloyd Sheen at 1/4/2004 3:42:46 AM
Perhaps I am missing something or it does not exist. I am used to VB.NET
and when you have a windows form you can easily create a handler using the
drop down list. This does not seem to exist in VS2003 for C#. Double
clicking a control will bring up a stub for the "default" action.
Is there ... more >>
Length of wave file?
Posted by Lars Stenberg at 1/4/2004 1:10:19 AM
Hi!
Is it possible to get the length of a wave file? I just want to
calculate the length and no other shit ;)
I´d like to do it manualy instead of using any win32 api, but i
appriciate solutions in both ways.
Cheers,
Lars... more >>
CodeDom Graph from a .cs file
Posted by Ramiro_Calderón at 1/4/2004 12:03:55 AM
Hi list,
Does anybody know if there is a way to build a CodeDom Graph given a
some *.cs file? I know how to create a *.cs file from a CodeDom graph,
and I couldn't find something alike in the MSDN documentation.
Thanks in advance,
________________________
Ramiro Calderon
... more >>
|