all groups > c# > november 2003 > threads for wednesday november 5
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
question
Posted by MJ at 11/5/2003 11:25:42 PM
Hi,
I am just getting used to using C# to create GUIs for scientific apps (I
have been using Fortran for several years). I want to create an application
that allows a user to draw a flow chart like schematic that will then be
used to calculate thermodynamic properties. Is there a good book o... more >>
TripleDES String Encrypt/Decrypt Problem
Posted by wkodie NO[at]SPAM yahoo.com at 11/5/2003 9:58:32 PM
I'm having trouble encrypting/decrypting a simple string using the
System.Security.Cryptography.TripleDESCryptoServiceProvider, etc...
The encryption works, but the decryption does not properly decrypt
several of the first few characters.
Here's the code:
class TMyCipher
{
public str... more >>
serializing graphics objects for sending to the clipboard
Posted by Lon at 11/5/2003 9:38:47 PM
Hello,
Does anyone have any thoughts on copying graphics objects
to the system clipboard? Specifically, I have a simple
class that contains a GraphicsPath, a Pen, and Brush
object. I'd like to be able to copy an instance of this
class to the system clipboard and retrieve it later.
Un... more >>
problem with managmentobject properties changing
Posted by palouf at 11/5/2003 9:27:20 PM
Hi to all,
i try to modify my network params dynamically. I can't manage to do it.
does smbdy knows what i'm doing wrong ?
string[] temp = new string[1];
ManagementObjectSearcher ms = new
ManagementObjectSearcher("SELECT * FROM
Win32_NetworkAdapterConfiguration");
... more >>
four-way splitter
Posted by Andre Loker at 11/5/2003 8:53:17 PM
Hi!
For my current application I'm looking for a four-way-(cross) splitter
control (as often seen in 3D-editors). The .NET Splitter-class is (IIRC)
only a two-way splitter. Does anyone know such a four-way-splitter control?
Regards,
Andre Loker
... more >>
ArrayList and Struct
Posted by Ching-Lung at 11/5/2003 8:44:19 PM
Hi,
The code:
class Row
{
public int m_Id;
public string m_Name;
public Row(int id, string name)
{
m_Id = id;
m_Name = name;
}
}
class Table
{
public ArrayList m_Table;
public Table()
{
Row row1 = new Row(5, "hello");
Row row2 = new Row... more >>
Question about serialization w/ class inheritence.
Posted by Hasani at 11/5/2003 7:28:47 PM
If I have a base class that is derived from many classes, and I want to make
all the classes serializable. Is there a way I can do this from the base
class or must I add [Serializable()] to every class, even if it's parent
class has the [Serializable()] attribute.
I'm thinking no from what I've ... more >>
About CSharp Decompiler
Posted by YangHua at 11/5/2003 7:26:19 PM
Hi, all
I am looking for a decompiler for C# for personal use. Can anyone introduce
some non-comercial decomplier here?
Thanks in advance.
Tony
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Word Doc interface
Posted by maheshwari at 11/5/2003 6:58:17 PM
Hi
Can you please help with some info on how to open
existing word documents / merge two word documents from a
C# program ?
My user will select 2 or many word docs and i have to
create a c# exe which add all word docs to one word
document.
Thanks in Advance
Maheshwari
... more >>
free md5 class
Posted by Mullin Yu at 11/5/2003 6:54:31 PM
any free md5 class available for getting the hash for a given string
... more >>
Null event stupidity?
Posted by kcline17 NO[at]SPAM hotmail.com at 11/5/2003 6:06:34 PM
Why, oh why is it necessary to test an event for null before raising
it?
Why isn't that case handled automatically, instead of forcing
developers to write three lines of wasted boilerplate code every time
an event is raised:
if (SomethingChanged != null) // wasted code
{ ... more >>
Quest: Building C# Client/Server CAsyncSocket(MFC) like class...
Posted by lewi at 11/5/2003 6:02:43 PM
I started an unmanaged VC++ dlg app that I want to play arround with socket
for Peer to Peer app on my local LAN and I got it connected up the the app
is the same on both computer and creates a listener socket, one(1 Max user
for now) Server socket connection on acception of listener, and 1 clien... more >>
Events and Tree like collections :: Would love to hear you opinion!
Posted by Sasha at 11/5/2003 5:47:42 PM
Hi everyone,
Here is my problem:
I have the following classes:
- DataNode - this class is designed to hold some data and will be contained
in a tree like data structure DataTree. When DataNode is changed, it raises
"Changed" event. The class has a reference to the DataNode it is being
cont... more >>
DataGrid - showing 'null'
Posted by Chankama at 11/5/2003 4:48:55 PM
Hi. Is there a way to make a datagrid display the word "Null" (or something
similar to that effect - as long as its not just a blank) in the
corresponding cell whenever the data value of particular (row, column) is
set to null?.. There is no guarantee that the "type" of the column is a
string. I... more >>
Where can you find docs on the layout of a c# program
Posted by george r smith at 11/5/2003 4:48:00 PM
Saw a term "global scope in a program" so where is this global scope and I
guess that brings up the question where can I find the the definition of the
layout of a C# program like:
using System;
namespace
class 1
class 2
main etc
... more >>
Scheduling in .Net C#
Posted by Muscha at 11/5/2003 4:29:20 PM
Hi,
In our application we need to have a high performance scheduling framework.
We want to be able to say for item 21 do an update on such and such time. We
will have around 1 million items of this kind with different scheduling
time, so not all will be updated per hour. Some will be per hour ... more >>
Size dimentions of a MessageBox
Posted by john at 11/5/2003 4:21:34 PM
does anyone know the height and width of a Win32
messagebox, with and without an icon?
thanks,
John... more >>
printing a dataset or xml file
Posted by Marco Martin at 11/5/2003 4:17:00 PM
Hi all,
I'm opening an xml file in c# and storing it in a dataset for use inside a
datagrid (Windows application). After, I'm going to modify and print the
data. I tried a test print of the datagrid itself and it doesn't look very
pretty. I also tried opening the file into Excel and printin... more >>
Repost: Isolation In AppDomain - How to prevent the main AppDomain to crash when another AppDomain Crashes??????
Posted by José Joye at 11/5/2003 3:51:04 PM
I have a windows service where I create another appdomains. In the newly
created AppDomain, I make use of a C library. If I issue an Abort(1) within
this library, it simply hard stop my main AppDomain!!!!!!!!!!!!How could I
prevent my main AppDomain to stop when the other stopped?Thanks a lot,Jo... more >>
C# XIRR function
Posted by Giri at 11/5/2003 3:42:43 PM
Does anyone know if there is a XIRR function in the Framework somewhere? Or,
if not, maybe a link to something that I could convert into a function..
Thanks
... more >>
Visual Studio debugging
Posted by erik.reiter NO[at]SPAM intel.com at 11/5/2003 3:32:17 PM
I have written an add in to the IDE that fires an event to check for
processes that have started up that are in a user specified list. If
one of them is found it will attach the debugger to the process. This
works great when the client and my server drone are the same machine,
but as soon as I... more >>
Accessing GUI from threads
Posted by Ray Mitchell at 11/5/2003 2:30:38 PM
In my main dialog, which opens when my application starts
and never closes until the application completes, I have a
list box. My assembly also contains several threads. I
would like to write to the list box from my main
application as well as all the other threads. In my main
applicati... more >>
File Move URGENT!
Posted by Chris Calhoun at 11/5/2003 2:25:35 PM
If I copy or move a file and the file already exisits how do I overwrite the
old file or rename the new one ?
Thanks in Advance.
... more >>
A problem about DirectoryEntry.Properties
Posted by wang.qiang at 11/5/2003 2:00:10 PM
I can't list the key-value pairs at runtime.The pairs list can not be
retrieved.
below is what I wrote
DirectoryEntry nodeAdmin = de.Children.Find("IISAdmin","IIsWebVirtualDir")
// ,nodePrinters = de.Children.Find("Printers","IIsWebVirtualDir");
// IEnumerator enA = nodeAdmin.Propertie... more >>
DataSet.Fill() When Column Value is Space
Posted by mgage NO[at]SPAM talx.com at 11/5/2003 1:53:25 PM
I am trying to populate DataSets with results from SQL queries.
Usually, to that end, the DataSet.Fill method works fine. If however
the table includes a character field populated with a space, the
DataSet throws an exception. I assume that the restriction is because
of the DataSet's use of X... more >>
xml (newbie)
Posted by Duncan Winn at 11/5/2003 1:17:32 PM
How do you load an xml doc in C#???
... more >>
doubt
Posted by Baskar RajaSekharan at 11/5/2003 1:07:30 PM
In C-sharp, I wnat to know whether the Component is compiled in Debug Mode
or Run Mode through Code. How is it possible?
Is there any way to Access the Config file and check? Please let me know
with example
... more >>
Find with Reflection the interfaces a class implements
Posted by Cezar at 11/5/2003 1:04:13 PM
Hello,
Can anyone please help me with this matter.
I try to find the interfaces implemented by a class using
Reflection.
e.g:
public class A : InterfaceB, InterfaceC
how can I get (the info about) the "custom" interfaces InterfaceB
and InterfaceC ?
Thank you,
Cezar... more >>
Get only local methods of a class with Reflection
Posted by Cezar at 11/5/2003 12:59:13 PM
Hi,
Does anyone know how to get the list of local declared method
of a class using Reflection.
I didn't see a flag like %IsLocal% for MethodInfo...
The code I use now returns all method, locally declared and inherited
<snip>
MethodInfo [] methodsInfo = cl.GetMethods();
forea... more >>
Fixed length String
Posted by maheshk at 11/5/2003 12:53:26 PM
Hi,
How do create fixed length strings in c#, which is possible in VB6.0.
i.e.
dim str as string*10
Is there anyway to handle this.
regards,
Mahesh.K
... more >>
AppDomain and delegate... How?????
Posted by José Joye at 11/5/2003 12:37:34 PM
I have created a new AppDomain from within my window Service.
I need to pass some delegates to an instance of a class loaded in the other
appDomain.
With the way I currently do it, the delegates get called. HOWEVER, in the
second appDomain and not
in my main AppDomain.
The class that contain... more >>
specifying lib option for Compiler.Compile
Posted by dax NO[at]SPAM hotmail.com at 11/5/2003 12:13:49 PM
Hi,
Inside my program, I'm trying to call Microsoft.CSharp.Compiler.Compile to
compile another c# program. I'm having a hard time figuring out what the
syntax is to pass as the lib option. I need to specify 2 directory
locations for the lib option. The documentation seems to indicate using
... more >>
Adding Property like bool
Posted by Champika Nirosh at 11/5/2003 12:13:28 PM
Hi All,
I want to add a property to a user control with three or four option to
select how can I do it. I mean what type it should be to have a combo box
type get a combo box selection option.
If you take boolean type property it allow the user to select true/ false as
the control get added... more >>
How to combine events?
Posted by 2003et at 11/5/2003 12:12:21 PM
I have to use a panel in win form. This panel is hidden at the left and when
you move your mouse there, the panel slides in to the form (to right)...
Like the VS.NET's toolbox bar at the left...
Now I did my panel and set the events. When MouseHover event occurs, it
slides in...
If I put ... more >>
doubt
Posted by Baskar RajaSekharan at 11/5/2003 11:58:31 AM
Hi,
Please let me know, In c-sharp, it's possible to use the Same method for
using multiple purpose ie Sending More than one Parameter, or Parameter with
different type etc without Overloading...
... more >>
Passsing an array from derived name
Posted by rbrown NO[at]SPAM allstate.com at 11/5/2003 11:57:25 AM
I have a situation where I have a method that I need to call. One of
the parameters of this method is a string[]. There are potentially
several string arrays that I could pass. Based on other information,
I can derive the name of the string array to pass to the called
method. But I can't fig... more >>
Stop Thread
Posted by Osvaldo Bisignano at 11/5/2003 11:43:04 AM
When I press a button, I start a new Exe file as a new Thread.
When the mainform of that exe closes, i thought the thread was over.=20
When and How shoud i terminate the subprocess?... more >>
Send file attachment
Posted by Jacques at 11/5/2003 11:38:56 AM
Hello All,
This sends an email message OK. But, how do I
attach a file?
// create server SMTP with port 25
string ServSMTP = "mycompany.com";
string sFrom = "support@mycompany.com";
string sTo = "webmaster@bmycompany.com";
string sSubject = "Subject Test";
string sMessage =... more >>
Stored procedure parameter output value
Posted by Steven at 11/5/2003 11:38:04 AM
I'm calling a stored procedure which has an output parameter of type int.
Once the stored procedure is executed, I want to check the value of the
parameter in case it is null. However, when the a null value is returned I
don't seem to be able to detect it.
Any help would be greatly appreciated... more >>
Receive biztalk request sample aspx please
Posted by Daniel Rimmelzwaan at 11/5/2003 11:29:50 AM
I want to send a biztalk document to an aspx page, and I need to see some
sample code, because I just can't make it work. I have a port with transport
type HTTP, pointing to my aspx page, something like
http://myserver/mypage.aspx. From there it gets blurry, because I just can't
figure out how t... more >>
How to check version of an installed COM DLL
Posted by jwexqm NO[at]SPAM hotmail.com at 11/5/2003 11:12:59 AM
I'm using a COM DLL from a C# application via an interop wrapper
generated by 'tlbimp.exe'. That all works fine, I can fire off methods
and things happen as they should.
My issue is that I want my application to check both that the COM DLL
is registered on the system and its version is accepta... more >>
VB -> C# code
Posted by Chris Becker at 11/5/2003 10:51:07 AM
Could someone please tell me what the C# equivalent of this VB.NET code is:
Dim aPropInfo() As System.Reflection.PropertyInfo
aPropInfo = GetType(System.Drawing.Color).GetProperties
This is what I came up with:
Color dummy = new Color();
System.Reflection.PropertyInfo[] aPropInfo ... more >>
Webservice Urgent help required
Posted by Vidya at 11/5/2003 10:28:49 AM
Class in the System.Collection.Specialized namespace like
NameValueCollection that is defined as a parameter in one
of the Webmethod causes a reflection error at runtime and
gives InvalidOperationException and forces to implement
Add method.My webservice class is not extending or trying
to... more >>
Assembly.CreateInstance
Posted by Osvaldo Bisignano at 11/5/2003 10:27:13 AM
I'm using Assembly.CreateInstance (3rd overload) to create an instance =
of one of the types included on that dll.
But what the hell are the bindingflags? I get this exception:
MissingMethodException
Constructor not Found on class ...
Source: mscorlib
TargetSite:System.Object =
CreateInst... more >>
How To Create Transparent Windows Controls
Posted by 2003et at 11/5/2003 10:23:57 AM
How To Create Transparent Windows Controls?
Thanks
... more >>
Unable to get the project file from the web server
Posted by David N at 11/5/2003 10:14:56 AM
I got a solution that contains about 30 projects, three of which cannot be
open. When I open the project, I always receive the error message "Unable
to get the project file from the Web Server"
My machine is running Windows 2003. My colleagues are using the same
hardware and software as I d... more >>
Regular expressions question
Posted by Carlos_Guzmán_Álvarez at 11/5/2003 10:09:31 AM
Hello:
I need to extract named parameters from a SQL command using regular
expressions, for example:
select * from TEST_TABLE_01 where VARCHAR_FIELD = @varchar_field or
CHAR_FIELD = @char_field";
has 2 named parameters @varchar_field and @char_field, but this
select * from TEST_TABLE... more >>
Strange behaviour ...
Posted by Jacek Jurkowski at 11/5/2003 9:52:39 AM
My code:
public class aaa
{
public void ShowWelcomeWindow()
{
Form welcome = new Form();
try
{
welcome.ShowDialog();
}
catch(ThreadAbortException)
{
// No exception ...
}
finally
... more >>
How can I get a list of system COM references?
Posted by Bryan at 11/5/2003 9:27:08 AM
This is for a utility that I am writing to update all of our Excel reports.
I currently have a form with a couple list boxes and browse buttons. One
browse button allows the user to add the XLS files they want to update and
inserts the paths into the corresponding list box. The second browse butt... more >>
partial types
Posted by news.microsoft.com at 11/5/2003 9:24:26 AM
This is gona be fun with code generators, constructors all over the show. I
remove my constructor from the wizard code (winform generator) and dispose
method and put it into my own partial cuz im maintaining it now. So what
does the winform designer do? Readd it? Sory but I just had nothing but... more >>
DataGrid/ComboBox custom column problems
Posted by billybobc2002 NO[at]SPAM yahoo.com at 11/5/2003 9:02:27 AM
Hello,
I know this has been discussed a lot already because I've been searching
around for information the last few weeks.
I'm trying to implement a DataGridComboBoxColumn class. I've found
several examples on the web. They all seem to have problems, though
that I've been unable to resol... more >>
How to parse decimal number input from form ?
Posted by News charter at 11/5/2003 8:51:51 AM
I have a form that I need to pass the sales tax. Works great if sales tax is
an interger.
When I try to parse the sales tax with decimal place with Int32.Parse method
I get exception.
The sale tax field is input 7.5
when I pass this field to Int32.Parse(salesTax.Text)
What is the availa... more >>
Cannot pass %s as ref or out, because %s is a marshal-by-reference class
Posted by Max at 11/5/2003 8:41:56 AM
public class Entity : System.Windows.Forms.Label
{
....
protected System.Drawing.Point lastMousePosition;
....
}
public class Flow : Entity
{
....
protected override void OnMouseMove( System.Windows.Forms.MouseEventArgs
e )
{
int deltaX = MousePosition.X - lastMousePosi... more >>
HTML TreeView: How to articles?
Posted by Charlie NO[at]SPAM CBFC at 11/5/2003 8:39:38 AM
Hi:
I would like to implement a TreeView Control in a web page. Is this done
with scripting or does it require an ActiveX control? Can someone point me
in right direction?
Thanks,
Charlie
... more >>
How to build Installer for Windows Service
Posted by DBT at 11/5/2003 8:34:18 AM
When I add an Install project to my Windows Service project everything
compiles and it works okay.
The problem is the Installer only writes the files to disk, but doesn't
actually install the service. Thus I must manually use InstallUtil.exe to
install the service.
I thought the installer h... more >>
spellcheck
Posted by Liz at 11/5/2003 7:44:33 AM
There is a need to use "spellcheck" in our application.
Can anyone point me in the right direction/give me a clue
of how to go about this.
Liz... more >>
redimension arrays of Interface objects
Posted by Kurt Lange at 11/5/2003 7:09:48 AM
HI,
how to redimension an array in c#, and preserve it's
contents (without using arraylist).
In visual basic it...
Dim I_interfaceArray() as I_interface = new I_interface()
{objInterface}
Redim Preserve I_interfaceArray(2)
but I don't find a way to do this in C#.
c#....
I_inter... more >>
Change Font.Size
Posted by vstudio NO[at]SPAM web.de at 11/5/2003 5:06:36 AM
Hi all,
how can i change the Font Size of the Text in my Label.
I will change it dynamic in the code.
I tryed:
int number = 11;
label1.Font.Size = number;
But this is not possible because Size is Write-Protected.
There is only a Get-Method and no Set.
Plz Help... more >>
Textwriter problem
Posted by rmoolenaar NO[at]SPAM dolfijn.nl at 11/5/2003 4:09:52 AM
Hi,
My colleague implemented a class overwriting TextWriter. What he tried
to do was logging to the event logger and logging to console. As you
can see in the code below, the part of 'logging to console' will not
work. However, I could not explain the results when I ran the code.
It seems t... more >>
Application_End never executes
Posted by Pedro Duque at 11/5/2003 3:45:53 AM
I've created a .net web service in c#.
When there is no open session i need to free some
resources.
So, I've place the code on the Global.Application_End
member.
Unffortunatly it seems that the code is never executed (at
least when i debug it).
Help anyone?... more >>
Help please: trying to edit column in a datagrid
Posted by amine at 11/5/2003 2:17:02 AM
Hi,
I would like to edit a row in the datagrid after it has
been loaded. I can remove and add a new row but I can't
figure out how to just edit an existing row.
I am also trying to figure out a way to add images to a
datagrid cell. any help is very appreciated
Thank you... more >>
Running App from Network Issue
Posted by Buddy at 11/5/2003 12:35:13 AM
Hello,
I have an application that references about 40 assemblies
(approx 80MB in total). I've installed the application on
the network share and given a client PC full trust access.
When I launch the application from the network it takes
approx 4 minutes to startup, I've done network tr... more >>
circular ref. problems.
Posted by Jesper at 11/5/2003 12:28:10 AM
Hi,
From my main form I instantiate a usercontrol on a panel.
How can I invoke functionality in my main form from
events generated in my usercontrol?
Is it possible to furnish the usercontrol with an
eventhandler in my main form?
Do I have to seperate out the functionality I want to
... more >>
|