all groups > c# > july 2004 > threads for monday july 19
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
FolderBrowseDialog without WinApi
Posted by Yura Tigiev at 7/19/2004 10:51:17 PM
Hello!
Is it possible to write (classical windows with My computers, My Desctop,
My networks Places end etc ) FolderBrowseDialog without use WinApi?
If yes, can you send source code ?
Yuri
... more >>
Message based system with datagrids
Posted by msnews.microsoft.com at 7/19/2004 10:23:05 PM
I am new to C# (coming from java) and I am confused about how to properly
work with datagrids.
The application I am working on is a message based system where properties
aren't changed in direct response to edits on the front end.
For example, setting the status of an order from active to pa... more >>
2 Questions - one about memory usuage and the other about files
Posted by lurker NO[at]SPAM night.com at 7/19/2004 8:48:03 PM
If a compiled exe project is under 400kb, why does it take up 15Mb when
running? Is this normal?
If not, how do I restrict the amount of memory it can consume?
Secondly, does anyone have a bit of code that will traverse a directory
structure and return the name of the oldest file?
Thank... more >>
off topic: looking for advice on Blog servers
Posted by jm at 7/19/2004 8:44:56 PM
Sorry for the off-topic post, but I would love to hear the advice of the
members of this forum. We are looking to implement an internal blog
server. It needs to run on MS platforms. So far, I'm thinking about
DasBlog, and .Text. Are there any others that I should look at? Does
anyon... more >>
Set DateTime value to null
Posted by news.microsoft.com at 7/19/2004 7:34:24 PM
Hello,
I have DateTime property.
How can I set this value to null?
I try DBNull.Value but it doesn't work.
Thanks a lot,
Ruslan
... more >>
Nullable numeric types
Posted by Gawel at 7/19/2004 7:22:01 PM
Hajo,
I need numeric types with possibility of setting them to null.
I consider SqlInt64 instead of int64, SqlInt32 instead of Int32 and so on.
I see only advantages. There are any disadvantages ???
thanks in advance
Gawel... more >>
Building GUI with C
Posted by Radith Silva at 7/19/2004 7:12:50 PM
SORRY; I'M SURE IT'S THE WRONG FORUM; BUT I'M SURE Y'ALL WOULD KNOW THE
ANSWER!!!
Hi;
I was just wondering if you could build GUI's in C (original C). From
what I've seen, the programs made in C just run on DOS in it's command
prompt. I mean it doesn't pop out of DOS (like when you run IE) ... more >>
New bie to C#
Posted by Rene J. Pajaron at 7/19/2004 6:53:08 PM
Hello Everyone,
Can I use MySQL with C#? What data access do I have to use and how?
--
---
Regards,
Rene J. Pajaron
RPSoftware Associates
Philippines
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Integer String Formating not Working?
Posted by msnews.microsoft.com at 7/19/2004 6:51:14 PM
Very simple goal ... to string format an int with commas.
I have
int x = 12000
If I use
x.ToString("N")
I get 12,000.00
So I tried x.ToString("0,0")
I get 12,000. That's great!
But then if x is 1, I get "01"
That's not good ;-(
Tried a bunch of other stuff ... but don't... more >>
Graphics 2D path question
Posted by damiensawyer NO[at]SPAM yahoo.com.au at 7/19/2004 6:43:06 PM
Hi,
I am creating a control. The control needs to be non-rectangular.
I am creating a graphics path and then adding two overlapping ellipses
to it using the addEllipse method.
I then set this.region ('this' being the control) to a new region,
passing my graphicspath object into the regio... more >>
function pointer
Posted by Lance Johnson at 7/19/2004 6:00:35 PM
I'm using an external DLL that expects the address of a function for a
callback. How can I go about getting the address of a function I have?
Thanks for any help in this.
Lance Johnson
... more >>
How can I make SmtpMail.Send bring up Outlook email client?
Posted by Ed Sutton at 7/19/2004 5:21:29 PM
How can I show the email client UI so the user can send the attachment
to the desired recipient. I get an exception if I leave the
MailMessage.To property blank. Is there any way to do this?
I found a Microsoft example that uses mapi32.dll that can do this. But
I can nopt make the SmtpMai... more >>
Rant: .NET Component Vendors
Posted by Chien Lau at 7/19/2004 4:36:30 PM
I had a situation occur today that's happened a number of times before
and I'd like to get your take on it:
Imagine... You're developing a WinForms app for a client that includes
the use charts. So you purchase a .NET charting component, design the app,
and deliver it to the customer. ... more >>
Clarify: Managed vs. Unmanaged
Posted by James McNellis at 7/19/2004 4:32:05 PM
I think that I grasp the general concept of managed vs. unmanaged code, but
I wanted to know if someone might have a link to a good article, white
paper, or reference containing a good, clear definition of the two.
Thanks.
James.
... more >>
RS232 communication
Posted by AlirezaH at 7/19/2004 3:23:45 PM
Any sample program for rs232 communication?
... more >>
Two panels on one form with a Splitter. Works?
Posted by BBM at 7/19/2004 3:03:04 PM
I'm trying to set up a form with two panels divided by a Splitter control.
I can make the Splitter work in the situations described in the documentation (Listbox or TreeView on left w/Dock set to Left, Panel on right of form w/ Dock set to Fill, Splitter between them set w/ Dock set to Left. W... more >>
SNMP retrive information from router
Posted by Tamir Khason at 7/19/2004 2:30:04 PM
I wrote the program to get information regarding connected devices to other
device by using SNMP.
This works fine all time I'm using localhost, BUT when I'm connection to
real router it stuck in reading subtree items. All I need it to get external
IP and MAC addresses of all devices connected to... more >>
Remoting ON the server.....
Posted by Chester West at 7/19/2004 2:23:24 PM
I'm starting to think this is not possible....
I've got a Singleton remote object created/registered. I can access the
object, modify data, etc., to my hearts content, just as long as I access it
from a remote machine.....THIS MAKES REMOTING relatively useless for me.
The object is register... more >>
Validating an XML document against a DTD file
Posted by A at 7/19/2004 2:08:48 PM
Hi all!
I would like to ask you guys regarding validating an xml document against a
dtd file...
I'm not quite familiar manipulating xml and I was assigned to do a program
that could document some stuff using the DocBook format.
Any articles that you might suggest, I would gladly appreciat... more >>
Form refresh/redraw issue
Posted by Ollie at 7/19/2004 12:54:12 PM
Hi,
I'm new to C# so please be patient with me.
Ok, I have a small app that analyses the content of about 10,000 log files.
The application works fine and outputs the expected results. But I need a
form that displays the status of the job it is running so the guy's using it
now it is workin... more >>
Where Is It From?
Posted by hifchan NO[at]SPAM yahoo.com at 7/19/2004 12:30:04 PM
Tring to use Sockets, following examples from online doc. Got his
error for
Async_Send_Receive
The type or namespace name 'Async_Send_Receive' could not be found
(are you missing a using directive or an assembly reference?)
I can not find it anywhere from the library.
Anyone know w... more >>
Timer dispose does not end thread
Posted by Amadej at 7/19/2004 12:29:34 PM
Hello everyone
I have a beginner's questions about the System.Threading.Timer class
behavior. I have been observing the thread count with Windows Task
Manger and noticed that timers, after being disposed, do not seem to
end their thread after the timers stop working).
For instance, when makin... more >>
Web Service
Posted by Lubos at 7/19/2004 12:13:49 PM
Hi,
When I create in VS2003 new WebApplication and then I add new file
WebService1.asmx with function "login" in this application, how can I create
new instance WebService1.login in my WebApllication form without
specifikacion full path of this WebService1 (for example
"http://localhost/webserv... more >>
Urgent Re: Property Grids
Posted by ananthr NO[at]SPAM gmail.com at 7/19/2004 12:03:48 PM
Hi,
Is it possible for the property grid to display data (within the same
section) in different fonts, at the same time. For e.g
If I have a section called ‘Foo' in the property grid which has 2
properties say ‘bar' and ‘baz'
I would like to display the value of the property ‘bar' in italic... more >>
Window drawn from thread not updating
Posted by Claire at 7/19/2004 11:55:59 AM
My progress window is created by a secondary thread and then updated by it
while a file is uploaded. There's an avi animation control on there that
should show the move file avi. Plus a progress bar.
Im having problems as the screen isn't being redrawn properly. If I call
DoEvents each time then... more >>
C# Browser with HTA permissions ~ JOB request ~ Earn praise & cash.
Posted by jOs at 7/19/2004 11:20:17 AM
Attention all coders,
I have posted a job on rentacoder. It is on topic for this newsgroup.
If any of you are able to do it, you might as well log on and get paid.
Thanks for considering this work request, I am willing to pay for work
done and would like to hear from people who can do it.
... more >>
.cs File Not Updating
Posted by Jeff Johnson at 7/19/2004 11:16:00 AM
I'm suddenly having a problem with my .cs file.
I can update the .aspx file and see the changes in the browser, but any
changes to the associated .cs file don't appear when I try to view in the
browser. I've even tried simple Response.Write commands and nothing.
Has anyone had this experien... more >>
Regular Expression Performance
Posted by Phil396 at 7/19/2004 11:10:50 AM
I have a long string I will perform multiple
searches on. If I convert the string to lower case
and perform the regex search will that help
the perfomance of the application ?
Any Regex performance tips would help, except
creating Regex Assemblies. I have enough information
on that subje... more >>
How to send a mail without smpt ?
Posted by Heinz Z. at 7/19/2004 11:04:44 AM
Hello,
I need a function to send a mail from a winform application. I don't belive,
that I can use smtp, because I neither know the mail address of the sender
nor the smtp server (or can it be "localhost" ?). I only want to set the
receiver mail address (it's me), the subject and the body text... more >>
open/save filedialog woes
Posted by Pat Richey at 7/19/2004 11:03:45 AM
i'm trying to make an open and a save file dialog that allows you to open/save
various formats, but when you change the extension you want to filter the file
list disappears [1] until you leave the current directory. here's the code
for the save box:
SaveFileDialog sfd = new SaveFileDialog... more >>
How to set ReadOnly attribute of some property of one instance not one class
Posted by Alan at 7/19/2004 10:59:44 AM
Hi all,
I have one class including one collection. I use propertygrid to display and
edit its properties.
I'm trying to use reflection to change the status of one element to be
readonly, for example the first element in this collection.The result is
that all of elements changed. I guess the Rea... more >>
DateTime AddMinutes Format Issue
Posted by Fritz Switzer at 7/19/2004 10:29:43 AM
I'd like to have a string assigned the value of a
DateTime.AddMinutes(amount) so that the string is formatted in "HH:MM"
format.
For example:
DateTime.Now.AddMinutes(30) returns "00:30"
DateTime.Now.AddMinutes(90) returns "1:30" or "01:30"
DateTime.Now.AdMinutes(-45)) returns "-00:... more >>
Howto convert a byte array to double array.
Posted by kevinniu at 7/19/2004 10:08:12 AM
Hi everyone,
In c#, what is the fastest way(include unsafe) to
convert a array of bytes(which really contains the
bytes of a double array) to a arry of double.
thanks
kn
... more >>
Strategy Pattern problem (or casting problem)
Posted by philippe.sillon NO[at]SPAM bell.ca at 7/19/2004 10:05:48 AM
Hi,
I have a problem to implemente the strategy pattern. the problem come
from that a method take different arguments type (object in interface
and String / Int in implemented class).
When price3 instance call getPrice, the method invoked is the one of
PriceRule abstract class. But, I want ... more >>
windows message queue and breaking out of thread
Posted by Claire at 7/19/2004 9:29:08 AM
(Relative newby)
Ive a secondary thread reading files from a serial port.
Ive also got a form with a progress bar informing the user on the status of
downloading the file. The progress delegate is called from the context of
the thread.
The form works fine if it's the topmost window but if it ev... more >>
Local Users and Groups
Posted by Jason at 7/19/2004 9:15:29 AM
Hi
How would i programmatically create a windows user group? i.e. Right mouse
click on my computer -> System Tools -> Local Users and Groups -> Group ->
New group. How would i create such a group in C#?
once done with the above, how would i give the above group access to a
particular path i... more >>
Control array
Posted by Beeeeeeeeeeeeves at 7/19/2004 7:50:02 AM
Sorry if this is an oft-posted question, but what is the C# equivalent of having a control array in VB6?
I know multiple controls can share the same event unlike VB6 ... if I want to enumerate over some radio buttons, say... do I just have to add them to a collection via code?
... more >>
Help with simple UML diagram
Posted by Bobstar at 7/19/2004 5:30:01 AM
Hello
Don't know if this is the correct group, but I saw alot of others UML posts (so please redirect me if im posting in a wrong group)
Anyway, I'm new to uml and need a little help to get the over the startup difficulties.
For instance, i have some "Manage customers", and besides all the ma... more >>
How do I open a URL (via a proxy) for reading?
Posted by avivgur at 7/19/2004 5:26:01 AM
Hello,
I am trying to implement a simple windows application that reads from a specified url.
Currently am using the WebClient class to access the url and the OpenRead() member to retrieve a readable stream which I then read with a StreamReader.
This works fine for url within my domain.
The pro... more >>
Synchronize the identity columns with SQL server
Posted by dusty at 7/19/2004 5:24:02 AM
Hi, I'll try to simplify the problem:
I created a table "TestTable" in a database on the SQL server. The first column, 'id', is the primary key with a auto-increment identity. I want to work connection-less, so I made my dataset where I populated a table with the data from the TestTable. When I i... more >>
Synchronize the identity value in the SQL server table
Posted by dusty at 7/19/2004 5:23:01 AM
Hi, I'll try to simplify the problem:
I created a table "TestTable" in a database on the SQL server. The first column, 'id', is the primary key with a auto-increment identity. I want to work connection-less, so I made my dataset where I populated a table with the data from the TestTable. When I i... more >>
Performance question...
Posted by Bernardo Piano at 7/19/2004 5:08:02 AM
Hi,
I have a DataBase that have some tables with more then 1 Million records.
I notice that the query is executed quite fast, but to put the data in a datagrid it's a bit slow, I Think dataset is slowing this operation...
Here is my code.
md = new OleDbCommand(SQL,dbConn);
da=new OleDbDataAda... more >>
defining a simple type
Posted by Donnie Fuqua at 7/19/2004 2:32:22 AM
Can anyone tell me if there is a way in C# to do what typedef or #define
could do
in Visual C++?
I want to do something like:
#ifdef SMALL
typedef ushort APPUINT;
#else
typedef ulong APPUINT;
#endif
This way I can have a configuration where I just use /define SMALL to get a
copy that... more >>
Export to Microsoft Excel
Posted by Igor at 7/19/2004 2:23:03 AM
Hi everyone!
I have a question about exporting data to Microsoft Excel.
I am writing program in C# and have to export some data to excel workbook. It works very good using OLE technology, but it requires Microsoft Excel installed on every machine with my program. It is not quite convenient t... more >>
URGENT:Sending cookie via HttpWebRequest
Posted by Mustafa Rabie at 7/19/2004 12:27:21 AM
hi all
i really appreciate you help you got me through a lot with my project. YOU
GUYS ROCK BIGTIME!! :D
well now i have another question (as usual :S)
I do an httpwebrequest to my webmail, this request returns a response with a
cookie. I get the cookie and parse it using cookiecontainer ob... more >>
|