all groups > c# > may 2005 > threads for tuesday may 10
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
Missing control properties
Posted by steve bull at 5/10/2005 10:43:46 PM
I have created a control with a property BoxStyle, an enum, which is in a dll Graphics2D.dll. Normally when the editor
picks everything up it will give me context help eg. NewControls.ColorComboBox.BoxStyle.fullBox prompting at each step.
When I remove the reference to the dll and add it agai... more >>
passing define into a build
Posted by alex at 5/10/2005 10:32:48 PM
I'm compiling a c# csproj project from the command line. However, I'd
like to pass in different defines to that project for different times
that I build it. I don't see any parameters on devenv command line
interface that seem to allow this. Should I be using something else
to compile the csp... more >>
Adding Items to the combobox from the second form
Posted by Raghavendra Mudugal at 5/10/2005 9:14:05 PM
Hello,
I have two forms (Form1 and Form2) . Form1 contains one Combobox and a button
which calls the second form on on_click event. In second form I have a
textbox and
a button. on click of this button i want to add a item in the Form1's
combobox.
How do i do this using c# in windows app... more >>
Sending DateTime to other platforms question.
Posted by Naveen Mukkelli at 5/10/2005 7:06:01 PM
Hi,
I'm writing a server applicaiton using C# and .NET Framework.
This server sends out time to all the clients. The clients are expected to
be
written in various platforms for example, Delphi, VB 6.0, C/C++, Java etc.
How I can send the DateTime from .NET Framework to all these oth... more >>
Mouse Events in other applications
Posted by wesmanjunk NO[at]SPAM hotmail.com at 5/10/2005 6:28:53 PM
Does anyone know how to generate mouse click in another application?
using C# and Windows XP..
The Idea it to click ok buttons on a form where you know the position
of all the buttons, or you can train the mouse on the correct
locations. oh the other application may or may not be dotnet
Tha... more >>
Open Form from Name #3
Posted by vbdev at 5/10/2005 6:10:46 PM
Hi,
This is my 3rd post on the issue, but I am getting closer to a solution:
I have 1 project with 50 winforms name test01 to test50. These forms have a
public method named: MyVal
Right now I have the following code (where fName holds the form name):
string st = "init";
if (fName == ... more >>
NetworkStream Write Not Failing
Posted by Srinivas R. Loka at 5/10/2005 5:18:20 PM
I have a TCP server to which a number of mobile devices connect. If a device
disconnects(mostly no clean close as they usually lose cell coverage or
shutdown), and the server then tries to send data using the
Networkstream.Write method, its NOT throwing an exception. I am using the
TCPClient... more >>
The price of the Express Edition
Posted by Michel Racicot at 5/10/2005 4:35:47 PM
Did Microsoft announced date and price for Visual C# Express edition?
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
a sql question
Posted by Vicky via DotNetMonster.com at 5/10/2005 4:06:18 PM
Hi, I have a sql question need help. Thanks!
below code works,
------------------------------------------------------------------
mySelectQuery = "Insert into Performance4 (FUNDID, FUNDDATE,[RETURN]
,NAV,FINAL,SOURCE,Periodicity)"+
"VALUES (20222, '" + valDate + "'" +",0.6012," + valNa... more >>
ListBox Question
Posted by Scott at 5/10/2005 3:46:01 PM
Hi,
I have a relatively simple question. I created a blank project, and put a
listbox on the form. Then in the "Form1_Load" function I added one line of
code.
listBox1.Items.Add("Scott");
When I compile and run the program it runs, but the listbox appears to have
an item (I can hig... more >>
TODO task comments not working?
Posted by Brett at 5/10/2005 3:23:36 PM
I'm using VS.NET 2003 with C#. When I type
// TODO something here
It never appears in my Task List window. I've saved the CS file and also
built the project. Still nothing.
Any suggestions?
Thanks,
Brett
... more >>
Newby String Question
Posted by Fred Nelson at 5/10/2005 2:46:30 PM
Hi:
I'm a VB.NET programmer who has made amazing progress in the C# world in
about two weeks.
I've come accross something that I can't figure out - I've checked MSDN and
Google extensively so I'm obviously not looking in the right area.
In VB.NET there is a simple function to tell if one ... more >>
AD Octet String
Posted by AstroDrabb at 5/10/2005 2:03:10 PM
I am trying to update some Active Directory attributes in C#. The C# app creates new computer objects and then populates some attributes. However, I am having problems with one attribute named netbootGUID, which is of type Octet String in AD. I haven't been able to find any working examples on th... more >>
MidB in VB vs GetBytes in C#?
Posted by cloudx at 5/10/2005 1:48:15 PM
Hi there,
I have got the following piece of VB code to be translated to C#, I used
System.Text.Encoding.Default.GetBytes(myStr, 1, 10, aBytes, 0) but the result
of aBytes is different from what I have got in VB, please help! Thanks!
VB code:
Dim mystr As String
mystr = "<PURCHASE_O... more >>
How to create unique file names?
Posted by Brett at 5/10/2005 12:18:35 PM
I need to create unique file names while in a loop. Each interaction will
produce a file name. Also, there may be 10 threads, each with its own loop
producing files, all going at the same time. The files are actually images
being created by a special printer driver.
I thought using a lon... more >>
PLS HELP: How to find ot if text fits a texbox/combobox
Posted by MuZZy at 5/10/2005 12:08:08 PM
Hi,
I need to add a tooltip to a textbox, but only if text doesn't fit the
textbox. So i need to somehow find out if text length is bigger than
width of a box. The problem i have is more generic, i need to add this
functionality to different tyes of controls/user controls, but i coud
star... more >>
I know, I know; but...
Posted by StillStuckOnJava at 5/10/2005 10:58:03 AM
I could never get a solution to my delimma, so I'm trying in a last
(hopefully not futile) attempt to get past this damned issue!!! I would
REALLY appreciate someone helping my dumb-ass out here.
Alright, I have an asp.net program I started writing. I created a class
called tank, with some ... more >>
I come from a Java background - so i have just one lame question :
Posted by DAn at 5/10/2005 10:56:07 AM
Hi,
I would like to know if there is a C# version of a servlet, or of J2EE
equivalent.
If not how do i write in C# a small "servlet" that simply parses some HTML
code into text, that in turn interfaces with a database, does the .NET
platform support these operations, or is there a speci... more >>
Determine if Windows need to be mirrored
Posted by kenoyer130 NO[at]SPAM gmail.com at 5/10/2005 10:34:09 AM
We have a small application that will be localized world-wide. I have
everything set up so that the application correctly mirrors (flips from
left to right to right to left). My issue now is how do I determine if
the Window's regional setting are set so that my application should be
Right-to-lef... more >>
ADOX CatalogClass - File release
Posted by Randy at 5/10/2005 9:51:52 AM
Hello,
I'm creating an Access file with the following code, but later...it won't
let me erase
it after creating it. How can I close the file after creating
it?
//this is how I create the file
ADOX.CatalogClass cat = new ADOX.CatalogClass();
cat.Create("Provider=Microsoft.Jet.OLEDB.4.0;" +... more >>
System.Web.Mail to send out email from desktop app
Posted by David Cho at 5/10/2005 9:38:37 AM
I am having trouble using System.Web.Mail to send emails from a desktop
application. The following is my code.
MailMessage _mail = new MailMessage();
_mail.From = "me@myemail.com";
_mail.To = "you@youremail.com";
_mail.Subject = "howdy";
_mail.Body = "how's your dad?";
_mail.BodyFormat =... more >>
reference a dll in GAC from command line
Posted by Leo2005 at 5/10/2005 9:10:05 AM
Hello,
I have a doubt. I would greatly appreciate it if somebody could help me out.
I created a dll(xyz.dll) and installed it in the GAC using GACUtil.exe. Now,
I want to use the dll for my application(abc.exe). Both the compilation and
running of the application is done thru command line... more >>
Are Graphics objects unmanaged?
Posted by David Veeneman at 5/10/2005 9:01:38 AM
I've just read an article that says that GDI+ Graphics objects (such as the
Pen object) are unmanaged, and that the programmer must explicitly call
Dispose() on these objects in order to release membory allocated for them.
Is that correct? I haven't seen anything like that in any other GDI+
... more >>
Print Labels C#
Posted by ooooscar at 5/10/2005 8:15:35 AM
I'd like to make an application to print labels. I have to print an image
and text, the label size is 10cm x 5 cm. I'm wandering how to do it in c#.
My first thought is to make an acrobat "form" with the image and text, but I
have to send a date in the label so I need to open the pdf and send the... more >>
Copy/Paste multiple objects
Posted by Greg at 5/10/2005 8:06:07 AM
Hi all,
Is there a way to copy multiple objects into the clipboard and then paste
them?
What I want to achive is to be able to copy UI controls (textedits,
dropdowns, etc) from one form and paste them into another form.
Your help is much appriciated. Thanks in advance,
Greg.
... more >>
Columns (size)
Posted by juli jul at 5/10/2005 7:24:37 AM
Hello,
I have 2 columns in list view and I want them to spread over all the
area of the list view (to see only the 2 columns -no extra space of list
view)
How can I do it?
Thank you very much!
*** Sent via Developersdex http://www.developersdex.com ***... more >>
vb to c#
Posted by Newbie at 5/10/2005 5:28:03 AM
Hello!
I need help in converting the vb code below to c#. Thanks in advance.
' SELECT THE LAST_PROJECT NUMBER FROM PA_CONTROL
sLPN = "SELECT Convert(last_project_no,'US7ASCII') FROM pa_control FOR
UPDATE "
Set rsLPN = db.Execute (sLPN)
While not rsLPN.EOF
Session("LPN")=""
lpn... more >>
Array from large number - how to
Posted by kilsoft NO[at]SPAM gmail.com at 5/10/2005 4:54:18 AM
I am creating a web form to generate a calculation based on a 2 digit
input from a user. Depending on their input it creates an array prefix
of numbers. The 2nd part of the array comes from an access database
where it holds the next available number. This is where the problem
sets in, when I pu... more >>
Simple anagram algorithm?
Posted by pryce at 5/10/2005 3:02:08 AM
I need an algorithm to create all possible anagrams from a given word. It
should be quite straight-foreward, but I can't seem to get my head around
it... :-(
- any suggestions?
Thanx in advance,
Pryce... more >>
unable to get message from exception - help reqd.
Posted by Niranjan at 5/10/2005 2:30:06 AM
I am having a peculiar problem.
i have a servicedcomponent class1.method1 with a method (more than 18
parameters). i am calling this from another serviced component called
class2.method.
When an exception is thrown from class1.method1, the Exception.Message is
not visible. when class1.me... more >>
Problem in Including Crystal Reports Decision while making a setup
Posted by Himanshu Saxena at 5/10/2005 2:12:09 AM
hi,
this is regarding the Problem in Including Crystal Reports Decision while
making a setup project.
when i make a new setup project to make the setup kit for my c# exe then due
to its dependency for crystal reports, its automatically includes the crystal
report assembly. and at end i fin... more >>
Running a C# program w/GUI through a web browser
Posted by Magnus Gran-Jansen at 5/10/2005 1:12:07 AM
Hi,
I have many thousand lines of C# code that uses System.Windows.* frequently,
so it has a lot of GUI. This program processes data that is located on the
local machine and displays a graphical representation of this. I wish for
users to be able to use this program through the Internet, w... more >>
string test
Posted by Green at 5/10/2005 1:09:19 AM
Hi, All
According to C#.Net
string s = "foo";
string z = "foo";
s and z gonna share the same memory location, correct me if I am wrong. If
it is correct, how can I prove this. Is there any tool can show me the
memory location.
Thanks in advance!
... more >>
Report program
Posted by groast at 5/10/2005 12:16:02 AM
Hi,
I'm trying to create a simple program that can create report using the VS
C#. But since i'm new in c# hence i got a lot of confusion.
Is there any suggestion or even better an example of such code ? I'm
thinking that the area where the user manipulate the report should be a form
whi... more >>
Optional values?
Posted by Özden Irmak at 5/10/2005 12:00:00 AM
Hi,
In my C# applicaiton, I use ADOX to reach and check the user permissions in
my Access database. To do this, there is a function named "GetPermissions".
This function gets 3 arguments where the 3rd one is optional. But the C#
compiler doesn't accept giving only 2 parameters and whatever ... more >>
Need more than 64 bits for mask - Long data type
Posted by Richard Dixson at 5/10/2005 12:00:00 AM
I have a need for a variable to hold a bitwise mask that can exceed 64
possible values. What is the best way to do this using C#?
For example, currently I have a variable called optionsMask that is defined
as a Long. Then I set the constants like this:
public const long BLACK = 0L; ... more >>
How to compute age
Posted by ad at 5/10/2005 12:00:00 AM
How to compute the age of a person?
For example, a person with birthday of 1964/09/25.
How to compute his age with c#?
... more >>
FxCop does anyone use it ?
Posted by Søren Reinke at 5/10/2005 12:00:00 AM
Hi there
I have played around a bit with FxCop.
Does anyone use it ? Some of the warning/errors it gives are okay, when
there are implementation errors, but i think it is annoying it keeps
complaining about how i case my variables and more.
What is your oppinion about the program ?
... more >>
Book on OO programming and C#
Posted by Ginello at 5/10/2005 12:00:00 AM
Hi guys,
could you please recommend a good book on OO programming with c#? I'm an
advanced user and I'd need something thorough and detailed.
Thanks in advance for your answers,
Gino
--
Saluti,
Ginello
... more >>
Bad performance of .NET drawing
Posted by Boni at 5/10/2005 12:00:00 AM
Dear all,
I have about 500 rectangles on the picturebox, and if I take one with the
move and move I MUST clear the whole picture and redraw, which takes about
1-2 second. The rectangles are drawen with FillRectangle(.). Is there a
better way to have the whole rendering much faster. (I have ... more >>
Text only progress bar
Posted by Tamir Khason at 5/10/2005 12:00:00 AM
Someone ever did textmode progress bar (as like as it in Unix enviroment,
e.g. WGet ?)
Please advice if it possible at all to build it. Is it possible to clear
previouse string that sent to output command window? Etc.
TNX
... more >>
How to convert a string to DateTime
Posted by ad at 5/10/2005 12:00:00 AM
I have a string
string dd="1992/12/03",
How to convert dd to DateTime type?
... more >>
Database concurrency
Posted by The Crow at 5/10/2005 12:00:00 AM
we are developing an ASP.NET application with SqlServer at backend..
there are an supplier and about 3000 customer, and each customer has about
3-4 users. they are selling mobile phone counters.
while a sale occurs, we are selecting customers stock amount, if it is
bigger then sale amount,... more >>
Embedd an executable
Posted by Johan at 5/10/2005 12:00:00 AM
Hi
I was wondering if it's possible to embedd a command-line executable into my
project and call it from there.
The way I'm running now is with an external exe-file and calling it with
System.Diagnostics.Process and it works just fine but it would be great if I
could embedd the exe-file int... more >>
What is the funciton to get system datetime
Posted by ad at 5/10/2005 12:00:00 AM
Hi,
What is the funciton to get the BIOS's date and time?
... more >>
How to sign interops?
Posted by Boni at 5/10/2005 12:00:00 AM
Dear all,
I have a bunch of COM objects, which I want to use in the signed assembly.
But at the compile time I have gote a error "XXX is unsigned can't link" (or
something like this). Now I use tlbimp XXX.dll /keyfile:YYY.snk this
generates a file, which I add as a reference to my project.
B... more >>
Not Freeing Memory ( Reading Images)
Posted by Dundy at 5/10/2005 12:00:00 AM
Hi,
Are there any know bugs with reading images from file and not freeing the
object after?
We are reading numerouse image scans, which are in .PNG format and finding
that the garbage collector is not freeing the memory after reading the
images.
Any help would be most appreciated,
... more >>
any one who have the C# 2.0 's document ?
Posted by Kylin at 5/10/2005 12:00:00 AM
please give me a download website ..
--
FireCrow Studio
Kylin Garden
EMail:gaotianpu@gmail.com
ICQ:156134382
... more >>
Keyboard capture problem
Posted by Emil at 5/10/2005 12:00:00 AM
I've written a simple application. It consists of main window, menu and a
label. I added event handler to the main form (KeyDown), so when I push a
key on the keyboard, then it's key code should be displayed using a label
(label.Text = e.KeyCode). It works fine with "A", "B" etc. but when I pr... more >>
Get the icon from an exe file
Posted by Andrei Pociu at 5/10/2005 12:00:00 AM
Hello,
I posted a similar message a few days before but now things have changed a
bit: I'm simply trying to get the icon of an exe file (I have the path).
Till now I only managed to get the icons associated with file types (such as
doc, zip, etc.) which is fairly different from what I want.
... more >>
remove from dataset
Posted by Hrvoje Voda at 5/10/2005 12:00:00 AM
How to remove data from dataSet using store procedure ?
Hrcko
... more >>
Moving a tree node up/down
Posted by Tim Nelson at 5/10/2005 12:00:00 AM
Is there a simple way to "switch" treenode with one above or below it on
the same level? Since prevnode and nextnode are read-only, the only way
I can think to do it is to get the tree node collection for my branch of
the tree, remove them all and then re-add them in a different order.
Any i... more >>
How to ...
Posted by Jacek Jurkowski at 5/10/2005 12:00:00 AM
Im using table adapter to retrieve some data
from clients table (Vs.Net 2005). There is
a column "Name" char(50) with value "Mark".
Table adapter is filling a data table but the value
isn't just "Mark" but "Mark"+46 white spaces ...
How to specify that ADO net should parse string
values with T... more >>
|