all groups > c# > july 2004 > threads for tuesday july 27
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
Equvalent of "Shadows" in VB.Net?
Posted by Özden Irmak at 7/27/2004 11:39:01 PM
Hi,
I'm trying to hide an event of my custom usercontrol derived control,
something like "Shadows" in VB.Net, but although the event is hidden from
PropertyGrid, from CodeEditor I can still see/reach it. I use this code :
[EditorBrowsable(EditorBrowsableState.Never)]
[Browsable(false)]
... more >>
Dynamically loading assemblies...
Posted by Robert Vasquez at 7/27/2004 10:20:02 PM
I would like my application to be able to load modules dynamically and release them once they aren't needed. For example in c++ I would load a dll containing the required function, run it, then release the dll after it's no longer needed. What are my options in c#? From what I have read so far I ... more >>
Get Ascii value of a character
Posted by Sammut at 7/27/2004 10:01:43 PM
Hi
I am using the following=20
Text =3D Convert.ToChar(67).ToString() & this will give a "C"
How can I do the opposite that is pass a "C" and an integer value is =
returned.
Thanks
Ivan Sammut... more >>
GEt the Ascii value of a Character
Posted by Sammut at 7/27/2004 9:59:11 PM
Hi,
I am using the following code to get the unicode for a specific number
... more >>
Installed Microsoft DirectX 9.0 SDK (Summer 2004) but can't refere
Posted by ammd at 7/27/2004 8:36:04 PM
Hi, I installed Microsoft DirectX 9.0 SDK (Summer 2004) but when I create a project and try to add the necessary references I can't find them. Does anybody know where to look for them? BTW, I have VS 2002. Don't know if there's an incompatibility issue. Thanks. ... more >>
using .Net usercontrols in unmanaged code?
Posted by sandip at 7/27/2004 8:20:27 PM
Hi,
Is there a way to use user controls (or any other type of library) to
use in unmanaged code say C++ ?
Is this possible?
tia,
Sandip Shahane
... more >>
Help on string
Posted by SnakeS at 7/27/2004 7:23:40 PM
Hi,
I want modify a string as "112233445566" in
"11:22:33:44:55:66"
which is the best method?
Using a RegExp? and if yes how?
Thanks in advance
... more >>
System won't reboot with my program running
Posted by Jefferson Cowart at 7/27/2004 7:22:16 PM
I've got a C# program that seems to be adept at preventing the system from rebooting. If it is running when you tell the system to reboot it closes and then somehow stops the reboot from happening. Once the program has quit you can reboot the system just fine. The basic structure of the program is a... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
crystalreportviewer always null
Posted by jordanm NO[at]SPAM 37.com at 7/27/2004 6:47:14 PM
Hi,
I've declared the statement below in my form and somehow
crystalReportViewer1 is always null. Is there anything wrong with the
statement?
private CrystalDecisions.Windows.Forms.CrystalReportViewer
crystalReportViewer1;
Thanks.
Regards,
Jordan... more >>
EBCDIC to ASCII
Posted by Chris H. at 7/27/2004 6:41:52 PM
Is there an easy way to convert a string that is in EBCDIC to ASCII
... more >>
create asp.net web root directory?
Posted by mei xiao at 7/27/2004 5:57:12 PM
Hi,
I want to install a simple web service using IIS, how can I create a
directory under Inetpub/wwwroot/ and configure it into a web application
root directory using the install program instead of manually? Thank you very
much.
-May
... more >>
Very strange error
Posted by Alberto at 7/27/2004 4:57:31 PM
I have this store procedure to insert orders in the 'Orders' table of
NorthWind (SQL Server 2000):
CREATE PROCEDURE NuevoPedido
(
@CustomerID nchar(5),
@EmployeeID int,
@OrderDate DateTime,
@RequiredDate DateTime,
@ShipVia int,
@Freight money,
@ShipName nvarchar(40),
@Sh... more >>
Serialization problem
Posted by Picho at 7/27/2004 4:01:50 PM
Hi all.
Trying to serialize and desirialize an object. the object is transfered as a
byte[] using a web service to the client. the client then has to deserialize
the byte[] to an object and work with it.
the object has a not-so-complicated graph constructed from several classes i
made and f... more >>
threads and garbage collection
Posted by Sunny at 7/27/2004 3:59:25 PM
Hi all,
Does any one knows, if I create a thread in a method and start some
processing in it, what happens when this thread object goes out of
scope. Is it garbage collected (I assume yes, as it is a regular object
and there is no reference to it). If it is, what happens with the
executed... more >>
Is it possible to build a generic runtime C# expression evaluation engine?
Posted by Jeffrey Ganping Chen at 7/27/2004 3:49:29 PM
I'm trying to build a generic runtime C# expression evaluation engine to
allow the user to evaluate any C# code blocks at runtime within the
application's context. For example,
obj4.p4 = obj1.m1() + obj2.m2(p1, p2) - Class3.m3()
or
if (obj1.p1 > obj2.m2())
{
obj3.do()
}
where obj... more >>
compile web service?
Posted by mei xiao at 7/27/2004 3:47:47 PM
Hi,
I have two files Service1.asmx, Service1.asmx.cs under WebService1 directory
and I can compile it fine into a dll and put it into the bin directory, but
if I change the name of the directory into WebService2, then it won't work.
What is the problem? Thank you.
-May
... more >>
Difference between Assembly and Module?
Posted by Sky Sigal at 7/27/2004 3:41:33 PM
Uh...a bit ashamed to admit this now that I have been programming in C# for
a while...but I still don't clearly understand from the documentation what
the difference between an Assembly and a Module, and when I would use
anything else than Assembly for reflection purposes...
Assembly is the ac... more >>
dll's and webhosting limitations
Posted by Robert Blackwell at 7/27/2004 3:38:22 PM
What's ths scoop with dlls and webhosting.
My current host doesnt really say much. Just that Register COM / DLL are
supported.
This other hosting company I'm looking at says Custom DLL Components are
supported but only upto 3 on their "best" plan.
Are "Register COM / DLL" the same thing as "C... more >>
How to get dataset row state?
Posted by Fico at 7/27/2004 3:17:44 PM
How to get dataset row state? new/modified/deleted?
... more >>
Using C# to get the free/busy status of user
Posted by Jeff at 7/27/2004 2:57:04 PM
Hello,
I am using the following C# code to get the freeBusy status of a user. However, the
getFreeBusy function is returning null. The code is part of a service I have
running on my local machine which is in the same domain as Exchange server (2003).
Does anyone have any suggestions? Thank you.... more >>
Generics in .NET 2.0 SUCK
Posted by Ruediger Klaehn at 7/27/2004 2:47:18 PM
Sorry about the harsh language, but I have to vent my anger to somebody who
actually understands what I am talking about. Complaining to my girlfriend
is not going to produce any meaningful results other than straining our
relationship...
I just downloaded Visual C# Express Edition to mess wit... more >>
GDI color vs GDI+ color
Posted by pixel at 7/27/2004 2:31:30 PM
hi
GDI ExtFloodFill doesn't "see" GDI+ colors
..ToArgb() doesn't work at all
any suggestions
br
pixel
sample code
Graphics
gIm = Graphics.FromImage(im);
gIm.DrawEllipse(new Pen(Color.Red), 10, 10, 50, 50);
IntPtr
hIm = gIm.GetHdc(),
hBitmap = CreateCompatibl... more >>
window handle already exists
Posted by René Iversen at 7/27/2004 2:16:09 PM
Hi,
I've begun programming C# a few days ago, and now I'm experiencing a problem
I really don't understand.
I've create a new Windows Application project in Visual Studio .NET and my
Main method looks like this:
public static void Main( string[] args )
{
ProgramFrame pf = new ProgramF... more >>
noobie: copy data in a constructor
Posted by Christoph Boget at 7/27/2004 1:57:24 PM
Let's say I have the following class:
Class MyClass {
int prop1;
string prop2;
public MyClass() {
}
public MyClass(MyClass myClass) {
}
}
Is there an easier way of copying the data from the
myClass object passed to the second constructor
detailed above than the followi... more >>
How to kill a thread?
Posted by Hardy Wang at 7/27/2004 1:36:09 PM
Hi,
I have a windows form application, and there are 2 buttons in the form. In
first button's click event I have code like:
Thread t = new Thread(new ThreadStart(fileProcessor));
t.Start();
To run a lengthy processing.
I hope I can manully terminate this thread when I click the second button... more >>
Upgrading from Framework 1.0 to 1.1 - is it easy?
Posted by Bastian at 7/27/2004 1:14:05 PM
Hi,
I am still coding everything in the 1.0 framework. I really want to upgrade
to 1.1 but I've been too afraid to do this :)
- I am afraid that all my 1.0 coded applications will stop running when
compiled. Is this true? Do I have to recompile every application for it to
work again? Or can... more >>
Exited Program Won't Die
Posted by Laszlo Szijarto at 7/27/2004 12:56:26 PM
Thank you in advance for our help.
I have a program that, when the user exits out (X-closes the form), the
progam still appears to be running under Task Manager (Processes). I've
tried all kinds of things, making sure I set all my objects to null in the
form disposal method, etc. Nothing wor... more >>
putting string into MemoryStream
Posted by Donovan at 7/27/2004 12:11:18 PM
I can't believe this is causing me as much difficulty as it is, but I have
an Infragistics UltraTreeview control that I want to persist whatever the
user has in the tree. It has a method SaveAsXml which puts the contents into
a MemoryStream, which I convert to a string for persistance (I know
In... more >>
Closing the form
Posted by Nenad Dobrilovic at 7/27/2004 12:06:14 PM
Hi,
is there any way to find out how form was closed (by calling it's method
Close() or by clicking on the 'close' button in control box)?
Also, can I close the form in that way that Cloing/Closed events are not
triggered?... more >>
ComboBox SelectedIndex = -1 not working
Posted by ScottO at 7/27/2004 11:35:27 AM
I would like the user to have to select something in a
System.Windows.Forms.ComboBox.
private void MyForm_Load(object sender, System.EventArgs e)
{
...
comboBox.DataSource = data;
comboBox.SelectedIndex = -1;
...
}
Above code does work.
Any thoughts?
... more >>
Restricting Certain Processes/Programs from running
Posted by mjw10120 NO[at]SPAM bellsouth.net at 7/27/2004 11:12:08 AM
Hi,
I'm making a program that basically restricts Microsoft Access from
being opened or ran on all of the company computers (sometimes we need
exclusive access to a database to make changes... that becomes a
problem when we have 50 people who all have Access open and never seem
to hear the an... more >>
Removing items from FormCollection gives error
Posted by Mike at 7/27/2004 11:06:05 AM
Hi! I implemeted Forms colection described in this link:
http://support.microsoft.com/default.aspx?scid=kb%3Ben-us%3B815707
I need to loop through the collectionbase and based on form's tag either close the form or do something else.
foreach(Form myForm in Forms)
{
if(myForm.Tag != AppC... more >>
Lengthy operation in Win Form application
Posted by Hardy Wang at 7/27/2004 10:56:41 AM
Hi,
I have a win form application, when a button is clicked, a lengthy
operation will be triggered. During the time program is still running, this
application seems not to be able to response to other actions. When I switch
to other window, and switch back to my application, all I can see is... more >>
learning to go from vb.net to c#
Posted by Josh Golden at 7/27/2004 10:54:20 AM
I've been using VB.NET for about 2 years now and I am reasonably comfortable
with the syntax of the .net framework. I've seen people comment that it's
easy to go from one to the other with just a few hours or so of reading.
But I seem to get confused right away LOL. Are there any good sites, wh... more >>
digit input only in text box
Posted by David at 7/27/2004 10:03:27 AM
hello, little newbie question,
i'm tring to create textbox control with ability do write there only
digits'.
i tried to check at -left focus- event, but it's not that i really want, i
want not to be able even to write to control anything but digits'...
how can i do that? or there can i find a... more >>
Regex
Posted by Naveed Anwar Kharadi at 7/27/2004 10:00:40 AM
Hi people !!!
I want to write a regular expression that fails when it finds two =
consecutive slashes (//) in the provided data.
E.g.=20
Data =3D "asdf//fghkj"
Regex.IsMatch(Data) returns false.... more >>
C# and SMTP
Posted by Jay at 7/27/2004 9:50:11 AM
I'm using a C# console program to connect to my smtp server and send a
simple email message to show my class. Does anyone know why some email
servers do not accept the message that I'm trying to send?
I just have the basics in the message:
To Receipients
From address
Subject
Body
Do I... more >>
Using VB.Net or C#, utilizing the clipboard object, how to copy an MS Excel graphic from the clipboard to an image control and obtain its source refer
Posted by TC at 7/27/2004 9:39:21 AM
Hello,
Here is what I'm trying to do:
-- Make sure both MS Excel and MS Word are running
-- Create an Excel chart
-- Save the Excel file
-- Copy the Excel chart onto the clipboard using Ctrl + C
-- Go to Word and look under Edit > Paste Special
-- Note there is a source reference and an o... more >>
Hooking the Print To File filename
Posted by paulc NO[at]SPAM cap.emap.co.uk at 7/27/2004 9:10:58 AM
I create a print job in .NET which is a virtual postscript printer device,
and is redirected to file. A dialog popups up asking me for a filename when
I send a print job to this device.
I want to
1) hook this so that I can supply a default filename, maybe even suppress
the dialog altoge... more >>
A newbie question
Posted by utdr NO[at]SPAM hotmail.com at 7/27/2004 7:51:46 AM
Hello,
I've got a small and probably naive question.
I have two variables of data type double.
Let's say:
x == 4340999.99;
y == 4300000;
When you do x-y in Calc for example, you get: 40999.99
But when you do it in C# you get: 40999.990000000224
Huh? Why? How can I get the exact resul... more >>
Removing events
Posted by Bob Rundle at 7/27/2004 7:01:24 AM
I have the following code, which appears to be working. However it doesn't
look right. The part I am wondering about is the logic in
DisconnectEvents(). This logic creates a new delegate and then expects to
find that delegate in the list of event handlers.
What is the proper way of writing ... more >>
C# Resource Lists
Posted by peter NO[at]SPAM mclinn.com at 7/27/2004 6:25:42 AM
Hi,
I've been programming in VB(& net) for about 5 years now and have
decided that I want to make the change to csharp now. Okay, you can
stop smiling now. LOL. However I do not have a list of good c#
webpage refrences.
Here is a list of what I'm looking for:
1. A webpages with so... more >>
Create a component to run it remotely
Posted by Mark Goldin at 7/27/2004 5:48:31 AM
I need to create a component that I can invoke remotely.
That component will run an external program on the same remote box (pgpmail)
that will
write a file down to that box.
Can somebody help, please?
... more >>
Determining Hard Drive Serial Number
Posted by daniel.shanyfelt NO[at]SPAM srs.gov at 7/27/2004 5:12:28 AM
Does anyone know how to determine the physical hard drive serial
number? I found a GetVolumeInformation function in C++ but wanted a
comparable function in VB.net or C#.
Thanks
Dan Shanyfelt... more >>
How do I remove my Key from the crypto service provider?
Posted by BuddyWork at 7/27/2004 3:07:02 AM
Hello,
Basically because the key is installed in the CSP when
compiling the code the first time. Then the next time I
compile the code the strong name file is not required
because it gets its from the CSP, but if I want to remove
it from the CSP for security reasons, how do I do this.
... more >>
Getting ConnectionString from Server Explorer's UIHierarhyItem
Posted by Predrag Tomasevic at 7/27/2004 2:30:17 AM
What I want is simply to get connectionString related to currently selected
DataConnection from ServerExplorer.
When I select item from Server Explorer => right click => Properties,
Property window displays that type of current node is IDispDataVwDataConn. I
found this interface in VS7DataProj... more >>
Do I really need VisualStudio to compile CSharp programs / command line tools ?
Posted by petsmirn NO[at]SPAM email.com at 7/27/2004 1:35:35 AM
Sorry for this newbie question but as far as I heard one need at least VisualStudio to develop
CSharp applications. Is this correct?
Are there otherwise some command line tools like javac.exe and java.exe in the java world?
Does soemone know a good "CSharp guide for java programmers"?
Pete... more >>
|