all groups > c# > august 2003 > threads for monday august 11
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
new to streamreader
Posted by blah at 8/11/2003 11:52:42 PM
what i want to do is read in a .ged file and find all the names in the file
and then add them to a listbox. this is what i have and it works but what
can i do better?
thanks,
Rob
public class Gedcom
{
private string gedFile;
private StreamReader fstream;
public Gedcom()
{
//
// TO... more >>
AsyncPP identification question
Posted by dterrors NO[at]SPAM hotmail.com at 8/11/2003 10:42:16 PM
Hello, I wrote an Asynchronous Pluggable Protocol namespace handler.
When my Start() method gets called, I would like to know which browser
window is calling it. So, I want to be able to get the
InternetExplorer object of the browser window that called it. Is that
passed in anywhere or can I ... more >>
What's wrong with this code?
Posted by Ignacio Domínguez at 8/11/2003 9:52:11 PM
Hi. I'm writing an application and I'm getting a weird error in this code:
DeviceID = 0;
wOutCaps = new WaveOutCaps();
IntPtr waveCaps = Marshal.AllocHGlobal(Marshal.SizeOf(wOutCaps));
Marshal.StructureToPtr(wOutCaps, waveCaps, true);
ReturnCode = waveOutGetDevCaps((uint)DeviceID, out waveCap... more >>
decimal separator
Posted by An Ony at 8/11/2003 9:24:44 PM
Oh I can't believe it, my OS is in Dutch, very annoying
and now this:
double a = 0.8;
Console.WriteLine(a);
outputs: 0,8
yes! a comma!!! argh!! that's all very neat, but in order to use my output
with another program I need to have a dot and not a comma!!
Am I going to change them manuall... more >>
SendMail with showDialog using CDO
Posted by steve21602 NO[at]SPAM yahoo.com at 8/11/2003 9:10:01 PM
Hello,
I am developing a C# application that needs to interface with email.
Specifically, I want to be able to send an email where the UI dialog
for the default email client (Outlook, OE, etc.) pops up and allows
the user to type in email addresses, etc. When the user hits send, I
want the ... more >>
Whats up with this?
Posted by JJ at 8/11/2003 8:15:26 PM
Hi all,
whats wrong with the following code:
DateTime calcDate = new DateTime();
DateTime dDate = DateTime.Now;
if (calcDate.DayOfWeek(dDate) != "Saturday") || (calcDate.DayOfWeek(dDate)
!= "Sunday")
{
}
Thanks,
Jim
... more >>
Newbie scope questions
Posted by Geoffrey Collier at 8/11/2003 7:57:37 PM
I have created a form (form1) with some objects on it. I
then created a new class in the same file that has the
form1 code. It is in the same namespace. I now want to
address the objects on form1, but I can't get the new
class to "see" these objects. I get an
error "Form1.rtxt_output i... more >>
Events
Posted by Tom Bean at 8/11/2003 6:33:25 PM
Can events be used to notify an object that something has happened and it
needs to take some action?
Most of the documentation on events makes them sound like they work the
other way around, that is, an object raises an event to inform other objects
that something happened. I need the ability... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
how to display a webpage in windows forms
Posted by fredy at 8/11/2003 5:57:08 PM
how to display a webpage in windows forms, i'm writing a
windows forms app. how can i display a webpage without
having to write a web application???... more >>
MDI + KEY DOWN EVEN problem
Posted by Govind at 8/11/2003 5:22:51 PM
Hi,
I am working with MDI form in .NET, In a child form i am unable to move the
cursor to previous control using the Shift + Tab combination in Keycode
Event procedure. Even i set the tabStop property to false for all controls.
It is working fine when it shows as a normal form (Non MDI).... more >>
who to know if c# creates object or not
Posted by Mikael Janers at 8/11/2003 5:07:26 PM
I've tried to find answer to this question on the net but without success,
so I hope someone here knows...
How can I know if c# actualy creates an instance of an object when I declare
a variable...
For example....
If I declare
private System.Collections.ArrayList m_aArray;
Then I dont... more >>
native window
Posted by Thomas Wang at 8/11/2003 4:34:53 PM
Have any guys used "NativeWindow" class in C# ? I want to use it create
various types of windows
but i don't know how i can show the window ?
B.Rgds
... more >>
AddSeconds (VS2003)
Posted by Marius Horak at 8/11/2003 4:23:52 PM
DateTime X = new DateTime(2000,1,1,0,0,22); <-- debugger is showing
X.Minute = 0, X.Second = 22;
X.AddSeconds(32); <- still X.Minute = 0 X.Second = 22;
What's wrong?
Thanks
MH
... more >>
Trouble setting Autoscrollposition
Posted by Morten Wennevik at 8/11/2003 3:41:32 PM
I am using autoscroll on a standard windows form of 5000x5000 pixels.
However, when trying to set the autoscrollposition it completely ignores it
(negative/positive makes no difference)
I am doing this in page_load. Does that make a difference?
I want the app to start in the center of the drawi... more >>
how to deserialize when class is in strong-named assembly?
Posted by Peter Rilling at 8/11/2003 3:26:26 PM
I have a create that I am serializing which is then stored for later
retrieval. The assembly that contains the class that I serialize is
strongly named.
I have encountered a problem were each time I update the version of the
assembly, the serialized content become invalid because the original... more >>
Tricky boxing question
Posted by Chris Capel at 8/11/2003 3:03:27 PM
I want to do something along the lines of this:
class someclass {
static void Main() {
int i = 5;
int j = 3;
changevalue(ref i, j);
Console.WriteLine(i.ToString()); //I want this to output 3
}
//it's important that this parameter is an object, an... more >>
serial communications
Posted by M at 8/11/2003 3:00:55 PM
does c# or the .NET framework provide any serial communications support?
where can i find some info on how to handle serial ports in c#?
thanks
m
... more >>
Form.Show() acting weird
Posted by Zzzbla at 8/11/2003 2:55:14 PM
Hello,
I'm writing a reminders project and I've been having some difficulties.
It starts with a simple class that contains a timer and NotifyIcon, where
the main function initializes the timer followed by Application.Run();
Whenever the timer figures out it has to do something (pop a remi... more >>
C# and Crystal Reports
Posted by Guillermo Castaño A at 8/11/2003 2:39:27 PM
Hello, i´m deploying my first C# with CR application, and want to know which
files must i install in the client machines in order to have CR properly.
Right now i hace the C# application without problems but CR doesn't works.
thanks
--
Guillermo Castaño A.
www.GrupoMillennium.com
... more >>
A big Problem
Posted by Ashutosh Kanodia at 8/11/2003 2:36:17 PM
hi all
i am facing a problem i want to read a BMP File which is basically a Ans
sheet of some exam and in to that student will fill the circle with the
pencil and i am getting the scaned images in the bmp format i want to read
those images and put the values in to the Database.
if any body help... more >>
New to cSharp
Posted by MC D at 8/11/2003 2:21:30 PM
Could someone explain this to me... there is something I don't understand
about control "scope". I have a picturebox on Form1, but If I try to access
the properties of the picturebox (width and height), I get an error
regarding the protection level. This is from within the Form1 class. I have
i... more >>
=?ISO-8859-1?Q?Problem_with_JoinMulticastGroup_and_DF=DC_Modem_connection?=
Posted by fh NO[at]SPAM energotec.de at 8/11/2003 11:01:55 AM
Hi folks,
I have a problem with the following example:
######################################################
My Receiver Class
*****************
class UdpReceiver
{
public static void Main()
{
UdpClient client = new UdpClient(10500);
client.JoinMulticastGro... more >>
Finding out which objects have subscribed to a particular event ...
Posted by emma_middlebrook NO[at]SPAM fastmail.fm at 8/11/2003 10:50:25 AM
Hi
I want to find out what objects are due to receive an event i.e. those
that have added themselves as an event handler via +=. Yes, it's a
little pointless perhaps (or can anyone give some good uses for
this?!!).
How do I do this for an event on a class I implement? Also, how may I
do th... more >>
Debugger
Posted by Fatih BOY at 8/11/2003 10:26:43 AM
Does anyone known a free debugger for c# with the source code!?
... more >>
serialize ?
Posted by Cyang at 8/11/2003 10:13:59 AM
Hi all,
When I serialize a class which is serializable to a file in one
project.Then in another project,when I deserialize the file which is
serialized in first project,system throw a exception. this exception is
mainly about namespace can't read.
Excuse me,Please tell me how to resolve... more >>
MessageBox
Posted by Patrick De Ridder at 8/11/2003 9:55:29 AM
I am working with VC# -- UK version -- and am writing a program for a Dutch
user. Is there a way to change the wording on buttons of message boxes, e.g.
from "OK" to "Goed"? As you will know the "OK" is system generated. If this
can be done, could you please give a code example?
--
Patrick De... more >>
Unsigned Right Shift Operator (>>>)
Posted by Bill at 8/11/2003 9:39:58 AM
I am trying to convert a Java APP to C# and it appears C# does not have a
>>> operator. Does anyone the best way to conver this operator in to c#?
Thanks.
--
Bill
... more >>
windows users
Posted by José Achig at 8/11/2003 8:42:05 AM
¿How I can know when the windows users (operating system users like
Administrator, Guest, ...)login and when they logout? Is there any class
that help me in this task or how I can do it?
... more >>
checking string if it is an integer
Posted by lukef01 NO[at]SPAM yahoo.com at 8/11/2003 8:36:51 AM
Hello all,
I need to check if the content in a string is an int and return a
boolean. I am sure there is a way to do it, but I just dont know.
Please help.
Thanks,
Luke.... more >>
Using Web Services to Modify an XML File?
Posted by Greatfree at 8/11/2003 4:33:44 AM
Dear all,
I tried to modify an XML file in a Web Service. After that, I need to save
the XML file into a local disk. But I got the following errors. Could you
please tell me what's going on there?
Thanks so much in advance!
Greatfree
System.UnauthorizedAccessException: Access to the pa... more >>
DataGird-DataSet-Thread problem
Posted by Eric at 8/11/2003 4:08:09 AM
Hi, can anyone guide me throught this:
In my application, I have a global DataSet. I then run
FTP processes in up to 10 simultaneous threads and each
thread calls progress events in the main application.
When a progress event is called, the main application
writes the input to the globa... more >>
Binding Strongly-Typed Collection to a Grid Control
Posted by Sefa Sevtekin at 8/11/2003 2:40:43 AM
I am trying to bind a strongly-typed collection to a data
grid on a windows form like:
BeerInventory inventory = new BeerInventory();
inventory.Add(new Beer
("Hamms", "Hamms Brewing Co.", 3));
inventory.Add(new Beer
("Budweiser", "Anheuser-Busch", 1000));
inventory.Add(new Beer("M... more >>
VS.NET 2003 Config File Issue
Posted by buddy at 8/11/2003 2:26:19 AM
Hello,
Has anyone had the following problem.
When compiling the project, the compiler deletes
the .config file from your project and physical hard disk.
For example if you got a config file called
myProject.exe.config, this gets deleted, VS2002 never had
this problem.
How do I get V... more >>
|