all groups > c# > august 2004 > threads for sunday august 29
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
OOP/C# Magazine
Posted by Mike at 8/29/2004 11:49:16 PM
Hi,
I would like to subscribe to a magazine/journal that covers OOP and/or =
C# subjects. Has anyone suggestions?
Thanks
Mike... more >>
raising events in C#
Posted by walker_712 NO[at]SPAM hotmail.com at 8/29/2004 11:42:26 PM
When I raise an event I have to first test to see if the event has
been created. For example:
class ClassX
{
public event System.EventsArgs MyEvent;
public void SomeMethod()
{
if (MyEvent != null) MyEvent();
}
}
If there a way of creating the event variable (M... more >>
coordinating the creation of delegate and event properties
Posted by walker_712 NO[at]SPAM hotmail.com at 8/29/2004 11:38:06 PM
If I have a class that exposes a delegate (see following code), how do
other objects who wish to receive notifications be coded? What I mean
is the first object to receive notifications must create the delegate
by doing a 'new' whereas other objects just need to use += to add to
the delegate lis... more >>
Call C# COM objects from C++
Posted by Whyithappen at 8/29/2004 11:21:02 PM
I wrote a C# class library with tlb output,so i can call it from C++ codes.
My code in C# like:
[Guid("...")]
public struct item
{
string key;
double val;
}
[Guid("...")]
public interface IFirst
{
string try();
item[] tryAgain();
}
[Guid("...")]
public class Fi... more >>
Transferring Data from SQL Server to Excel using .Net
Posted by kumar yogesh via .NET 247 at 8/29/2004 10:46:15 PM
Hello,
I want to develop an application to transfer data from sql=
server to excel such that , when we create a workbook in excel ,=
then we are able to transfer data from SQL Server to excel in a=
way that the first three columns of the table (In SQL Server)=
move to the First Worksh... more >>
Writing to a CSV file
Posted by Aaron at 8/29/2004 10:44:48 PM
Hello,
I have a small application that I need to save data from 7 text boxes in to
a csv file. This will entail btnNext_Click function that will create a new
csv file and enter the 7 data fields in the csv file; as well, each click on
next will return carriage to a new line.
Client does not... more >>
Error creating DataAdapter
Posted by Ben at 8/29/2004 10:37:22 PM
Hey,
I've got two threads running at a point in time which are generated by
this code.
Thread oTdFillOffices = new Thread(new ThreadStart(FillOffices));
oTdFillOffices.Name = "FillOffices";
oTdFillOffices.IsBackground = true;
this.oThreads.Add(oTdFillOffices);
oTdFillOffices.Start();
... more >>
New window handle
Posted by Ljudva at 8/29/2004 10:19:56 PM
I'm using the WebBrowser control,
Is there any way to handle new window open (popups), and get the url, popup
size, location? Can I scroll the active WebBrowser?
2
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Play a sound file
Posted by Hai Ly Hoang at 8/29/2004 9:42:57 PM
In my application, i want to play a piece of music (wav or mp3). How to do
it ?
... more >>
Creating and Sending Packets over TCP
Posted by Glenn Wilson at 8/29/2004 9:29:08 PM
I am writing a network system for project I am working on. How would I send a
class or structure to the clients and recieve one back.
Or how would I go about building a packet with a header and other
information and then be able to break it apart when I recieve it at the other
end. These p... more >>
Was events keyword necessary?
Posted by Rakesh Rajan at 8/29/2004 9:27:03 PM
Hi,
I find that when i define a delegate, it gets derived from
MulticastDelegate, which provides all funtionality that events would provide
(like registering new handlers etc.). Then, apart from being a bit more
neater, could there have been any other reason that an 'event' keyword became
... more >>
C#, C++ who delete it?
Posted by Fei Li at 8/29/2004 9:05:08 PM
Suppose I have C# function that call a managed C++ class like this
//C# function
public csFunc() {
new MyCpp("who delete me?");
}
//managed c++ class
public __gc class MyCPPClass {
public:
MyCPPClass(String *s);
}
who will delete that string?
Thanks
... more >>
Controls Cut Paste removes Event Handlers
Posted by rawCoder at 8/29/2004 8:31:15 PM
Hi All,
Create a Form
Add a Button
Double Click the button to create its Event Handler ( Button1_Click )
Now come to design view and Cut the Button
Then Paste it again
Now double click the Button
Notice that there is a new handler ( Button1_Click_1 ) just below t... more >>
Make combobox readonly
Posted by cashdeskmac at 8/29/2004 8:17:03 PM
I have a combobox which contains the different departments at my work place.
However, if the user types another name into the combobox, it is accepted. I
wish to allow only the names already associated with the control. Also, how
can I set the control so that the user can type, for example,... more >>
Where to put database on PocketPC Device
Posted by Poewood at 8/29/2004 7:23:08 PM
I'm trying to connect to an access database that has been converted to a .cdb
database on my Pocket PC. I'm having a problem getting the connection string
right. Does anybody have a clue as to where you put an object on a PocketPC
and then connect to it. Does it have to be in a specific pla... more >>
NEWBIE: Using same function for different objects
Posted by magennis.weate NO[at]SPAM solutus.com.au at 8/29/2004 6:42:47 PM
I am really missing something here:
·I Have two unrelated objects X and Y
·These two objects share some of the same method calls
I want to write just one function that I can pass either X or Y to
which will then call methods on the object. I don't want to use
polymorphism as the handling of... more >>
About to get the return value from a method called by a delegate
Posted by Jet Leung at 8/29/2004 6:29:14 PM
Hi all,
I had made a method that will return a string type value. And I invoke this
method in a string type delegate .And how can I get the return value when
the method finish processing.
for example:
public string A()
{
...
return A_value;
}
public class C_A
{
delegate strin... more >>
Ram Hungry?
Posted by Mark Harris at 8/29/2004 6:28:37 PM
Just wondering if anyone else has noticed that C# is fairly ram hungy, or
at least assigns alot of ram?
If you have has anyone developed any strategies to combat it?
- Mark Harris... more >>
communication in different thread?
Posted by Jet Leung at 8/29/2004 6:23:14 PM
Hi all,
How are the programmes' communication in different threads?
... more >>
Shell Command
Posted by Mike Galasso at 8/29/2004 5:36:58 PM
I am trying to use the Tools.Shell ("somefile.exe") method to open a file. I
am using System.Windows.Forms but its not working. Should I be >using<
another class ?
Maybe you have another way to open files ?
... more >>
Can I Add/Modify Attributes to class Type during run-time?
Posted by S.Sigal at 8/29/2004 5:13:11 PM
Hello:
I've seen code in some books for databinding that handles attaching Attributes
to
Properties during runtime...which is very close (but no cigar) to what I am
looking for...
The code in the book was basically the following:
override protected void PreFilterProperties(IDictionary ... more >>
Is any one else having this problem?
Posted by Rashad Rivera at 8/29/2004 4:51:00 PM
I installed VS 2003 recently and I did not notice this error until a few
days later when I stumbled across it while checking my web pages
functionality.
http://www.omegusprime.com/light/?Page=Quote
It refers to a missing "}" in Microsoft's code. I know this because I did
not write ... more >>
Pass a string to a function
Posted by Sammut at 8/29/2004 3:48:05 PM
Hi,
I have the following function to which I need to pass a string variable
private string cMask (string sText)
{
}
but ever time I try to compile I get the error
'test.Form1.cMask(string)': not all code paths return a value
Any idea?
Thanks
Ivan Sammut
... more >>
How to pass a string to a function
Posted by Sammut at 8/29/2004 3:44:58 PM
Hi,
I have the following function to which I need to pass a string variable
private string cMask (string sText)
{
}
but ever time I try to compile I get the error
'test.Form1.cMask(string)': not all code paths return a value
Any idea?
Thanks
Ivan Sammut
... more >>
Windows Service /Thread Conundrum
Posted by timasmith NO[at]SPAM hotmail.com at 8/29/2004 3:29:33 PM
I have an application for which the main thread apartment threading
must be static. This is since it calls a DLL which if I switch to
MTAThread it is very slow, and cannot run in a thread as static.
Now I want to change my console app to be a windows service and when
the service starts, it is... more >>
SQL SERVER AGENT
Posted by Viktor Popov at 8/29/2004 3:16:27 PM
Hi,
is it possible MS SQL Server Agent to make a WebApplication in ASP.NET/C#
to send e-mail using MailMessage class? If yes, how?
Thank you!
Viktor
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.745 / Virus Data... more >>
DataSet Problem
Posted by NewGuy at 8/29/2004 2:20:53 PM
Can anyone tell me why this doesn't work
ds.Tables[0].Rows[0].ItemArray[TITLE] = m_sTitle;
... more >>
How to notify?
Posted by Viktor Popov at 8/29/2004 12:53:09 PM
Hi,
I have a table in MS SQL -
NotifyTBL
==============
ID int Primary Key
SearchID int
OfferID int
this table is populated when a user Insert values in OffersTBL. A trigger
does this automatically. What I want to do is every 30 min to check if there
is a new records in NotifyTBL and if ... more >>
Advise on CASE tools for VisualStudio (Modelmaker for Delphi equivalent ?)
Posted by Craig Kenisston at 8/29/2004 12:35:20 PM
Hi,
I'm an ex-Delphi developer and I'm used to the ModelMaker Case tool for
Delphi. Now I'm starting a large project in C# and I need some help in
design.
I'm looking for case tools for VisualStudio.Net.
Any advise is welcome.
Regards,
... more >>
detaching events
Posted by Sean Malloy at 8/29/2004 12:14:01 PM
Hi,
I'm new to windows forms development.
I'm just wondering what the best practise is to deatching events.
I have an external object which is passed into a dialog form. The dialog
wires up a couple of EventHandlers. to listen for events on the object.
Now I have a suspicion that even ... more >>
About viewing icons...
Posted by pnp at 8/29/2004 11:50:01 AM
I want to display in a form all the icons of an icon file, that has icons
with both 32bit colordepth and 24bit colordepth, simultaneously.
I tried using ImageLists with different colordepth properties but the result
was that the icons that were displayed were all 32bit palleted, having my
system... more >>
Remoting question
Posted by Sharon Tal at 8/29/2004 10:36:52 AM
Hi all.
This is my remoting client:
public class WebClient
{
static WebClient()
{
ChannelServices.RegisterChannel(new TcpChannel());
m_GatewayClient = (IGateway)Activator.GetObject(typeof(IGateway),
"tcp://localhost:7777/Gateway");
}
private static IGateway m_GatewayClien... more >>
What is happening with -= and Event delegates ?
Posted by Barry Mossman at 8/29/2004 9:13:21 AM
Hi,
What is required to unwire an event ? I wire it with:
this.MyEvent += new MyEventHandler()
Do I need to maintain a handle to the eventhandler created so that I can
detach it ?
The following seems to work, but it doesn't feel right as I seem to be
adding one object, but then removing... more >>
Are there any more effective alternatives to mailto?
Posted by James at 8/29/2004 5:15:03 AM
The mailto: command is very useful when only basic parameters need to be
sent, such as the To field, but not so useful when a large chunk of HTML
formatted body text must also be sent. I basically want my app to to create a
full new mail message (in the default mail client, usually Outlook), w... more >>
Display a form without showing in alt-tab
Posted by Nick at 8/29/2004 4:57:03 AM
Hi,
I am tring to display a form that does not show in either the task bar or
when the user alt-tabs. The form is running full screen and is set to have no
border.
Nick... more >>
C# FileSystemWatcher Problem
Posted by stayor_e NO[at]SPAM hotmail.com at 8/29/2004 3:47:28 AM
Hi,
I'm trying to do this:
private void SetNF(FileSystemWatcher fsw,int val){
if( (val&4)!=0 )
fsw.NotifyFilter |= System.IO.NotifyFilters.Attributes;
// i'v tried this also:
// if( (val&4)!=0 )
fsw.NotifyFilter = System.IO.NotifyFilters.Attributes;
}
and i ... more >>
How can I get my exe path?
Posted by Tony Caduto at 8/29/2004 1:28:18 AM
Hi,
In Delphi I could use paramstr(0) to get the full path to my exe during
runtime.
Does anyone know the C# equivilent?
Thanks a bunch,
--
Tony Caduto
Inexpensive Corporate Messaging
AM Software Design
http://www.amsoftwaredesign.com
... more >>
Console application problem
Posted by Tony Caduto at 8/29/2004 1:01:39 AM
Hi,
I am doing a console app and I want to pass in a command line argument
during debugging, and I am having problems finding this option in the IDE.
In delphi there was a parameters option in the menu where I could add param
values that the program would grab during debugging.
VS must have som... more >>
Serial Port
Posted by Dave at 8/29/2004 12:45:24 AM
How do I send some data to serial port (for example COM1:) in C#?
It will be nice if you will show me some example.
... more >>
Manualy Free Ram up
Posted by Mark Harris at 8/29/2004 12:27:03 AM
Is there some way i can programaticaly clear the ram the application is
running, or force the garbage collection to occur?
Also, an application starts off using 8mb or so of ram - when i run RAM
Booster this drops to about 1.6mb - thats a pretty huge waste of ram.
When a client connects ... more >>
Disabled Control Background
Posted by Skip Borland at 8/29/2004 12:21:18 AM
Has anyone tried to control the color changes that occur when a .net control
(in this case specifically, a combo box) is disabled? We are trying to limit
input, yet not have the control go gray on gray when disabled (or at least
be able to control the behavior). Any thoughts on this would ... more >>
xmlns=''> was not expected.
Posted by Shailendra Batham at 8/29/2004 12:20:54 AM
Hi guys,Does any1 know what this error is all about, what I am trying to =
do is deserialize a XML, below is my code, let me know what I am doing =
wrongpublic class test{xin =3D "<?xml version=3D'1.0' =
encoding=3D'UTF-8'?><InSession><PassWord>foo</PassWord><UserName>foo@foo.=
com</UserName></I... more >>
TAPI in C#
Posted by Dave at 8/29/2004 12:16:52 AM
How do I use any TAPI function like lineInitializeEx() in C++ in C#?
It will be nice if you will show me some example.
... more >>
DataSorce and combobox
Posted by cashdeskmac at 8/29/2004 12:03:03 AM
I have 7 comboboxes on my main form, one for each day of the week, and the
XML file they read from looks like this:
<Shifts>
<Shift Time = "OFF"/>
<Shift Time = "Day"/>
<Shift Time = "Night"/>
<Shift Time = "12:00-20:00"/>
etc...
<Shifts/>
I have set the dataSource as ... more >>
|