all groups > c# > july 2003 > threads for friday july 18
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
How do you add a printer to a w2k server using C#
Posted by ken at 7/18/2003 11:40:33 PM
Hello Everyone,
I am trying to find out how to add a printer to a windows 2000 advance
server by using C# code.
I cannot believe how bad the MSDN subscription is when it comes to searching
for .NET framework objects!! There seems to be a big supply of objects to
get all the settings after the... more >>
Bitmap for control
Posted by Ramona van Riet at 7/18/2003 11:16:43 PM
Hello, I am new to C#. I am using C#Builder Personal, from Borland. How
can I give my control a bitmap in the toolbox?
--
Ramona... more >>
Read,write a file binary
Posted by Patrik Malmström at 7/18/2003 11:15:21 PM
How do I read, write a file binary?
I want to open, say, file.exe read it in to the program, then write it out
to file2.exe.
Like file copy, anyone have a code sample?
... more >>
Unexpected lock/Monitor.Enter() behavior
Posted by Jeff Gerber at 7/18/2003 9:52:28 PM
/*
This test program will give a "Value cannot be null" error.
If the lock in this code is removed (or Monitor.Enter()) the program will
run as expected.
I have found no explaination in lock() or Monitor.Enter() documentation as
to why this occurs. I suspect that it is by design of t... more >>
Killing a thread
Posted by Hasani at 7/18/2003 8:44:33 PM
When I'm done using a thread, do I do Abort or do nothing and the run time
will kill it for me?
also, can I call Join a thread after I call Abort on that same thread?
... more >>
How do i convert string to int?
Posted by Patrik Malmström at 7/18/2003 8:06:29 PM
Yes, how do I convert string to int?
... more >>
datagrid with nested dataset
Posted by suzy at 7/18/2003 7:35:11 PM
im building a datagrid control at runtime using a dataset as the datasource
and everything was working fine.
i then needed to change my dataset to be nested data and now i don't know
how to set the DataField property of child values in the dataset.
can anyone help me please?!
thanks.
... more >>
Destroying emitted enumerations.
Posted by someone else at 7/18/2003 5:49:41 PM
I have some code that creates dynamic enumerations for use in a PropertyGrid
control. This all works perfectly but the memory usage of the program
increases quite quicly when viewing the PropertyGrids displaying these
enumerations (one of which has a few hundred items in). I believe this is
beca... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
How to stop running multiple instances of my App in C#?
Posted by PalB at 7/18/2003 5:39:56 PM
How to stop running multiple instances of my App in C#?
Thanx
... more >>
run time generated assembly temporary files...
Posted by felice pollano at 7/18/2003 4:28:17 PM
Hi all,=20
I'm generating run time an assembly with the code below:
ICodeCompiler compiler =3D codeProvider.CreateCompiler();
CompilerParameters parameters =3D new CompilerParameters();
parameters.GenerateExecutable =3D false;
parameters.MainClass =3D "MainClass";
parameters.IncludeD... more >>
Unmanaged Dll question
Posted by Priya Ghate at 7/18/2003 4:16:58 PM
Is there a way to create a class in C# from a unmanaged dll ?
Thanks,
Priya... more >>
control help
Posted by Dave Petersen at 7/18/2003 4:05:41 PM
I have 10 textboxes on my page, textbox1 - textbox10. Rather than modify
them individually, I would like to modify them with a variable something
like this:
for (int i = 0; i <= 10; i++)
{
textbox[i].text = "some text";
}
Is this possible? Would I need to create some kind of control arr... more >>
ILDASM - where is ref'd assembly?
Posted by Marty McDonald at 7/18/2003 3:03:14 PM
My assembly "A" references another of my assemblies "B". I'd like to
determine which version of "B" "A" expects. I'm using ILDASM, but I can't
find any mention of "B" in there. I'm clicking on the "manifest" icon, as
well as using ctrl-M to see the meta info. Any ideas? Thanks!
... more >>
Adding bitmap to control
Posted by Ramona van Riet at 7/18/2003 2:06:04 PM
Hello, I am new to C#. I am using C#Builder personal, from Borland. How
can I give my control a bitmap in the toolbox?
--
Ramona... more >>
.NET graphics book
Posted by andreww NO[at]SPAM crabel.com at 7/18/2003 2:01:31 PM
Does anyone have any opinion about this book:
".NET Graphics and Printing"
Peter G. Aitken
ISBN 1931097043
http://www.amazon.com/exec/obidos/ASIN/1931097046/
Can someone new to both Windows graphics and .NET pick up both at the
same time using this book?
I am particularly interested i... more >>
Looking for Dynamic Control Solution
Posted by MikeY at 7/18/2003 1:46:10 PM
Hi Everyone,
I am working in C#, windows forms.My question is this. All my button dynamic
controls properties are present and accounted for except for the"FlatStyle"
properties. I can't seem to figure out, if there is a way of using
polymorphic way (if that is a word) of doing this particular ... more >>
Exchange 2000 or 2003?
Posted by Arran Pearce at 7/18/2003 1:43:53 PM
I am wanting to create a web application which will use Microsoft Exchange
Server. We currently use Exchange 2000 but if i needed it we would upgrade
to 2003.
Is 2003 going to provide easyer programming with C# (and DotNet in general)
than 2000? If so i will wait a bit longer.
thanks for ... more >>
Masking of Text Box
Posted by Suresh at 7/18/2003 1:25:30 PM
Hi,
How to set Mask for TextBox component. For example, if a
TextBox is intended for Phone Number Data entry, how do we
enable it so that user can type using a mask like (999)>
999-9999?
Thanks
Suresh
... more >>
Java bridging
Posted by Peter Bernhardt at 7/18/2003 12:10:55 PM
I'm investigating to what extent .NET can 1) consume Java classes, and 2) be
compiled into a Java package to run in a J2EE container. I haven't been
able to find much information on this aside from Microsoft recommendation to
convert Java classes to .NET. Of course, this isn't a practical solut... more >>
One for the gurus
Posted by Alvin Bruney at 7/18/2003 10:53:56 AM
Anybody know how to call a javascript function from server side code?
This isn't as simple as it sounds really. I need to call the script after
the handler has executed which rules out attributes completely. Streaming it
via the output stream doesn't seem to work for objects or functions that
... more >>
What is the construct for creating a static array of classes?
Posted by Bill at 7/18/2003 9:45:14 AM
I would like to create a static array of classes (or structs) to be used in
populating name/value pairs in various WebForm drop down list boxes, but am
not quite sure of the construct (or rather to use structs instead of classes
in the array insofar as structs vs. classes appears to be controvers... more >>
Another try.... What to use to pass data from VB dll to C#?
Posted by Andrew Mueller at 7/18/2003 9:36:09 AM
Hello,
I tried this question prior and got no response, so thought I would try
to explain differently..
I am not sure which type of object to pass between a VB 6.0 ActiveX dll and
C#. I am wrapping a COM object because I am having issues with the types
that C# does not seem to understa... more >>
Photo negitive of a bitmap
Posted by john at 7/18/2003 8:47:57 AM
what operation can i performe on a bitmap, in C#, that
will give the visual effect of a photo negitive? I have a
bitmap on a form, and when people mouse over the bitmap,
i'd like all light colors to be dark and all dark colors
to be light.
thanks,
JOhn... more >>
Eval()
Posted by J.B. at 7/18/2003 8:22:04 AM
Hi all.
I'm rather new to C#, (just learning ;-) and i'm making my own 'helper'
library, in wich i want to
have an eval(statement) function.
Anyone know how to make this / help me out on where to start?
Thanks.
... more >>
Change Hex to Binary
Posted by ron at 7/18/2003 8:10:38 AM
Hi,
I have a 16 bit hex value contained in a string.
example="00A4"
I need to convert the hex value to binary.
I then need to return the whole binary value as a string.
example="0000000010100100"
Then need to look at each bit value to see if "1" or "0"
and return a bool indicating the resul... more >>
How to reposition the text in a button control
Posted by Buddy at 7/18/2003 8:10:04 AM
Hello,
Can someone point me to some example code that shows how
to paint the text in a button control. I basically want to
reposition the text so it does not wrap.
... more >>
adapt control array to event
Posted by gcl at 7/18/2003 8:09:25 AM
Hi,
How to associate the dynamic controls array
with its event?
For example, creating a number of button, like 100, etc..
Button arrButton[100] .....
In VB6, when u copy and paste a button
it auto create the next array and
events such as ButtonClick(Index as Integet)
how to do that... more >>
strange behaviour with indexOf and single length strings
Posted by Shukri Adams at 7/18/2003 7:08:02 AM
I'm getting a weird error with IndexOf. It only occurs if
the substring length is 1.
"aaa".IndexOf("a")
for example should return 0 , ie, it should find the
first "a" in "aaa". Instead, it return 2, the last "a".
This error does not occur in
"aaaa".IndexOf("aa")
however. Here ... more >>
Drawing Code
Posted by MikeAP at 7/18/2003 6:50:50 AM
Has anyone worked with zooming and panning in C#? Tips?... more >>
Hiding inherited members
Posted by Troy Hilbert at 7/18/2003 6:38:24 AM
I've created a class derived from NativeWindow. The public methods are
visible to consumers of my class and I don't wish them to be. How does one
hide those members?
Best
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6... more >>
spaces, pipelins etc. in a url string
Posted by minuteman NO[at]SPAM newmail.net at 7/18/2003 5:59:36 AM
Hi,
When i save a url into a string :
string myURL = @"http://www.allmusic.com/cg/amg.dll?p=amg&sql=2surfer|rosa";
but when i d/l this page :
WebClient myClient = new WebClient();
StreamReader sr = new
StreamReader(myClient.OpenRead_searchAlbum),System.Text.Encoding.Unicode);
string re... more >>
Fastest way to insert several 1000 transactions into oracle?
Posted by Chris at 7/18/2003 5:59:36 AM
i am looking for the fastest way to insert several 1000
trx int oracle. is there a faster way, then using a
DataAdapter? is there a possibilty to execute a bulk load
(or batchwise insert with transactionsize)? any
suggestions? thanks a lot!!
chris... more >>
How can i make a tabpage unvisible in tabcontrol?
Posted by Winston at 7/18/2003 5:59:25 AM
when i use tabcontrol,i find that there is no property for
the tabpage to visible or unvisible.i want make tabpage1
to visible but tabpage2 to unvisible,but beacause there
some progress need controls on tabpage2,so i can remove
tabpage2,i just want to make it unvisible.how can i make
that?... more >>
Copy Custom Objects
Posted by Jules at 7/18/2003 5:45:08 AM
I have a cutom object ex.:
public class Client
{
public string Name;
public string Id;
public Adresses Adresses;
public Client()
{
}
}
Client cl = new Client();
cl.Name = "xx";
cl.Adresses.add(adres);
....
Now I want a second client that is a copy of this first
clie... more >>
Using C# to Queue up request for a Server Program?
Posted by David at 7/18/2003 5:37:47 AM
I want to write a server program in C# that will handle a pool of
requests from another process but not be directly called by the
process. The process will place a resulting message back into the
pool to be picked up by the calling process.
Is there a way to handle this in .net & c# beyo... more >>
Stored Procedure and DataAdapter
Posted by Wayde at 7/18/2003 4:41:24 AM
Please help me if you know the answer to this. I want to
create a dataAdapter, that fills a dataSet. However, I
have a stored procedure that I want to use, that takes one
int as input. I have been trying this for a few hours now,
and have come no closer.
... more >>
Uncompressing all major file formats (zip,rar,ace,arj...)
Posted by Oliver at 7/18/2003 3:05:34 AM
Hello!
I am really stuck... I have searched the whole internet to find a dll or a
API which I can use in .NET C# to uncompress all the major archiv files but
I really didnt find anything whith suites my needs.
Do you know where to find such an api or dll?
All it needs to do is ->uncompr... more >>
finding character in string
Posted by Mike P at 7/18/2003 2:08:14 AM
I want to find a particular character in a string, and then find the
length of the string after this point in the string, so that I can do a
rightpad on it if it is of a certain length (basically I want to pad a
monetary value if it is for example 12.5, so that it becomes 12.50).
I can think o... more >>
What domain am I in?
Posted by Dave Espley at 7/18/2003 12:31:32 AM
Is there a way in C# to tell which domain a Computer is in (not the user
logged on). The code must run without a user being logged onto the box.
Basically I want the application to check the machine it is running on to
find which domain it is registered to.
Any help greatly appreciated
Da... more >>
Implement a system
Posted by msnews.microsoft.com at 7/18/2003 12:18:10 AM
Hi All,
If I want to deploy an C#+SQL2000 application to client site, does the
client computer
need to have SQL2000 server at all ? or the relevant database and tables
will be collected
during the process of creating an installer ?
Thanks
John
... more >>
|