all groups > c# > april 2004 > threads for thursday april 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
Cheapest version of C# Visual Studio
Posted by Michael A. Covington at 4/29/2004 11:52:50 PM
Does the cheap ($100) version of Visual C# include a setup (deployment)
generator?
--
Michael A. Covington - Artificial Intelligence Ctr - University of Georgia
"In the core C# language it is simply not possible to have an uninitialized
variable, a 'dangling' pointer, or an expression th... more >>
Windows Error Notification Sounds
Posted by pnp at 4/29/2004 11:41:22 PM
Hi all,
How can I call the functions that play the error messages from the
User32.dll?
Thanks in advance,
Peter.
... more >>
FileSystemWatcher
Posted by Tom Jones at 4/29/2004 11:34:46 PM
Is there a way to watch multiple file types with a single instance of
FileSystemWatcher? For example, what I would like to do is this:
FileSystemWatcher fsw = new FileSystemWatcher();
fsw.Filter = "*.txt;*.doc";
The only other thing I can think of is having a seperate instance for each
fil... more >>
COM+ Remoting
Posted by Richard Bell at 4/29/2004 10:42:26 PM
I have a typical class factory framework scenerio working using remoting
with the class factory hosted inside the IIS process. I now want my class
factory to use transactions and run inside COM+. However, I keep getting an
error saying that no channel is registered when I make calls on objects
r... more >>
DataSet Append Attempt Produces Error
Posted by Steven C at 4/29/2004 10:13:20 PM
Hello:
I am trying to append a dataset that draws its data from a MSDE
instance, and I keep getting the exception:
Can't create a child list for field tblCustomers.
conn = new SqlConnection("Data Source=SWC_K7\\CHRISMON1;User
Id=yadda;password=yadda;Initial Catalog=Chris... more >>
Lumi mail pop3
Posted by nevin at 4/29/2004 9:03:49 PM
Hello all,
if anyone has used the lumisoft controls and managed to get an attachment
downloaded, extracted, decoded (from base64) and saved to disk/stream can
they please show me how they did it?
Seems easy to get attachments into a message but not out.
Thanks
nev.
... more >>
Same Class....Different File
Posted by Scatropolis at 4/29/2004 9:01:45 PM
Is there a way in C# to have more code of the same class in a different file?
This would be mostly for organization.
thanks... more >>
MDI child access to it's parents' controls
Posted by Lucas Graf at 4/29/2004 8:46:27 PM
This sounds so easy to me and feel like an idiot that I can't figure it out,
but....how can I have a MDI child access it's parents control(s)??
Seems like it should be as easy as making the controls on the parent public,
so i created a new project real quick w/2 forms. One is the MDIParent
co... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Change HTTP headers
Posted by Janus Knudsen at 4/29/2004 8:31:36 PM
Hello.
Im trying to change the httpheaders of a WebRequest, but I cant seem to be
able to change 'Referer'
Is it impossible? - Is some of the headers restricted and if yes, then whom?
Kind regards
... more >>
XmlSerializer question
Posted by Dirk Reske at 4/29/2004 8:28:22 PM
Hello,
how can I create following file with the Serializer?
<xml ...>
<Items>
<Item Key="1">Item 1</Item>
<Item Key="2">Item 2</Item>
...
</Items>
</xml>
... more >>
Sourcecode format
Posted by kuya789 NO[at]SPAM yahoo.com at 4/29/2004 8:23:20 PM
I would like to display my sourcecode(plain text) in a html page.
I found this website that does exactly that.
http://www.manoli.net/csharpformat/
Does anyone know where I can download the script? or teach me how to write one.
Thanks in advance... more >>
Definition of "N-Tier"
Posted by Patrick at 4/29/2004 6:32:57 PM
I'm writing a winforms database application in C#. I've come across a lot of
stuff lately about "N-Tier" architecture.
Can anyone give me a simple explanation of N-Tier? The descriptions that
I've found online are chock full of lingo that I simply don't know. I need
the "N-Tier" for Dummies de... more >>
Deep Copy of an ArrayList ?
Posted by Marc Lefebvre at 4/29/2004 6:12:27 PM
there is an easy way to make a deep copy of an arraylist ?
suppose I have an arraylist of COptions implements ICloneable
I have need to overload the Clone() methode of a derived ArrayList
(OptionsArrayList)
And Overload the Clone() methode of my COptions
There is an otherway to do deep co... more >>
posting daqta to an asp.net page from a console application
Posted by Ollie at 4/29/2004 5:41:55 PM
I have an aspx page that contains a web control that contains 2 text boxes
and button to submit the text. I am trying to submit text and collect the
response from a console application, but it is not working correctly it is
just returning the original page I am expecting it to return the a
subse... more >>
passing SAFEARRAY from COM to C#
Posted by yinjentam NO[at]SPAM hotmail.com at 4/29/2004 5:20:04 PM
Hi all,
I'm very new to C#, and I've tried to find an answer to my problems.
We've got a method in an existing COM object as follows:
BOOL CCacheCtrl::IdFromStringRep(LPCTSTR lpszIdStringRep, const
VARIANT FAR& vaResult)
{
ID id;
if ((vaResult.vt == (VT_VARIANT | VT_BYREF)) || (vaR... more >>
Download file from a location on the WWW
Posted by mphanke at 4/29/2004 5:06:09 PM
Hi,
how can I connect to a restricted directory on a server and download a
file, if there is a newer version, than the one on the local file system?
Something like
http://user:pass@www.myserver.com/restricted/directory/thefile.file
Thanks,
Martin... more >>
newby. Why are these values defined as they are
Posted by Claire at 4/29/2004 4:56:04 PM
I'm reading through some source code written by microsoft to show examples
of porting serial comms to .net.
Anyone who has written comms will know the following constants well.
Can anyone explain why the programmer chose the various variable types and
why some have been initialized so differ... more >>
performance counter problem
Posted by Dirk Reske at 4/29/2004 4:25:42 PM
Hello,
I have following code:
... more >>
Migrating from Delphi....
Posted by Arda Han at 4/29/2004 4:09:40 PM
I am migrating my some applications from Delphi to C#. But...
Yes But I don't know C# professionally. I am using DLL in delphi like this :
.....
const
RFID_103_485IO = 'Cihaz.dll';
Function SearchPort (Prm1:LongWord) :LongWord; cdecl; External
RFID_103_485IO name 'SearchPort';
... more >>
using buttons for scroll buttons
Posted by Joshua Moore at 4/29/2004 3:48:22 PM
Is there any way to have buttons scroll up and down on a standard textbox?
The touchscreen we're using doesn't work very well on scroll bars, so I'd
like to create buttons to immitate the Page Up / Page Down functionality?
Thanks in advance,
Joshua Moore
... more >>
Win Form Events..
Posted by Mark Broadbent at 4/29/2004 3:36:50 PM
Anyone know a simple place that i can reference which winform events are
fired by other events (all of them)? I know the bog standard rules for the
Load Activate etc, looking for a comprehensive but simple reference. For
instance I have just seen that the Layout event is fired by the Resize event... more >>
Could not find installable ISAM.
Posted by Brent at 4/29/2004 3:30:38 PM
Hi, my asp.net c# app is trying to connect to an Access database with a
password and am I getting the error.. Could not find installable ISAM. . If
I connect to one without a password it works fine. I've looked at Q209805
but I don't think that helped. Oledb connection. Here is the one that works... more >>
Retrieving File Information In C#
Posted by DevUser at 4/29/2004 3:23:10 PM
Hi,
Can someone tell me how to access the "Summary" information in a file
property?
Any help is appreciate!
C.
... more >>
Rotary Engine Software
Posted by Michael Culley at 4/29/2004 3:14:26 PM
If anyone is interested this is a little app I wrote that illustrates the rotary engine. If you've got the .net framework installed
you can just unzip it to a directory and run it because I haven't bothered making an installer for it.
www.mikesdriveway.com/engineapp
--
Michael Culley
... more >>
params
Posted by Kevin Jackson at 4/29/2004 3:04:10 PM
What's the difference between
public void Foo(string s, object [] o)
and
public void Foo(string s, params object [] o)
?
... more >>
Internet Explorer SDK
Posted by Guy Parton at 4/29/2004 2:27:23 PM
hi there,
i am wanting to create a app that is able to server rich html documents
(ie with flash, javascript etc.). What would be the best way to go about
this.
tia
guy... more >>
Can't convert Text string to an int32 using Convert.Int32
Posted by Convert TextBox.Text to Int32 Problem at 4/29/2004 2:06:03 PM
Need a little help here. I saw some related posts, so here goes... I have some textboxes which are designed for the user to enter a integer value. In "old school C" we just used the atoi function and there you have it. So I enquired and found the Convert class with it's promising ToInt32 method, ... more >>
Application Exception Popup Messagebox
Posted by Chris Fink at 4/29/2004 1:53:12 PM
I have written a c# windows application which is occasionally throwing this
messagebox popup exception in the test environment:
"application has generated an exception that could not be handled"
I have try - catch around the entire application and would expect this to
prevent any type of mes... more >>
Years, Months and Days between tow dates
Posted by Juan at 4/29/2004 1:50:49 PM
Hi everyone,
is there a function that calculates the exact amount of Years, Months, and
Days between two days?
TimeDiff is not good enough, since it calculates, for example:
Date 1: Dec. 31st 2003
Date 2: Jan 1st 2004
The real difference is 0 years, 0 months, 1 day. DateDiff returns 1 ... more >>
Datalist Pagination
Posted by Kruq at 4/29/2004 1:27:20 PM
Is it possible to use pagination with DataList? Can't find it.. :(
Kruq... more >>
EXCEL - getting sheet names
Posted by amfigon NO[at]SPAM hotmail.com at 4/29/2004 12:58:52 PM
Hi - I've managed to get an ole db provider to read information in
from an excel spreadsheet, but I have to include the sheet name in the
select statements. I was wondering if someone could help me by
explaining or showing some sample code of pulling in the sheet names
before running a select s... more >>
exception with special characters
Posted by Wajih-ur-Rehman at 4/29/2004 12:57:24 PM
The following query runs perfectly fine with SQL Query Analyzer:
insert into TableName(ID,ParamName,ParamValue) values
(27706,'Param6','\0V\0\0\0\0\0')
But if i try to execute the same query using OdbcCommand object, it throws
an exception. Any help plz?
... more >>
databinding question
Posted by dwightrau NO[at]SPAM yahoo.com at 4/29/2004 12:40:16 PM
I have a textbox databinded to a dataset (in c#).
The dataset is filled by a dataadapter, which connects to field in an
sql server database.
The field in the database is of type money.
In the application, if I retrieve a row of data, such as 40.00, it
comes back 40.0000.
I need just two digits... more >>
double click on combobox
Posted by Wajih-ur-Rehman at 4/29/2004 12:35:29 PM
I am developing a C# app. I want to do something when someone double clicks
on a combo box. But this event never fires. Any suggestions? Thanx!
... more >>
Override Listview property method
Posted by Dave Y at 4/29/2004 12:35:17 PM
I am a newbie to C# and am having trouble trying to override a ListView
property method. I have created a new class derived from the Forms.Listview
and I cannot figure out the syntax to override ListView.Items.Add(), . I see
that it is a virtual method so it should be easy to do. If anyone can he... more >>
modify mp3 files in C#
Posted by opamail1-1000 NO[at]SPAM yahoo.com at 4/29/2004 12:34:04 PM
Hi folks,
I would like to know if someone has created a routine to open an mp3
file and change it's ID3v1 & ID3v2 tags, then resave the file without
affecting it's audio data. Any ideas?
Thanks... more >>
Broadcasting update information on the network
Posted by mphanke at 4/29/2004 12:33:10 PM
Hi,
I have a master application which processes data extracted from eMails.
Then there a up to ten clients in the network. I have to find a way how
I can notify the clients to update after the database was changed, or if
there was a change on the master app.
I was thinking of using name... more >>
handling key events
Posted by Roman Ma¹ek at 4/29/2004 12:18:39 PM
hi,
does anybody know, how to handle keyboard events on system level (i need to
be able to do some action, when keyboard shortcut is pressed, even if my
application isn't active),
thanks for replies (sorry for my english, i'm working on it)
... more >>
How to tell if all the threads in a ThreadPool have completed/finished
Posted by SSonnenwald NO[at]SPAM yahoo.com at 4/29/2004 12:10:50 PM
I have created a piece of code that uses a ThreadPool class and the
QueueUserWorkItem method to add items to the the ThreadPool. What
would seem to be simple I just can not figure out how to tell if all
of the threads in the threadpool that I queued have completed. Does
anyone have a way???? ... more >>
Get all virtual sites in one IIS
Posted by Hardy Wang at 4/29/2004 11:54:12 AM
Hi,
I am required to build an application to connect to a remote machine and
get all virtual sites in IIS, return each site's URL (one site has multiple
head information associated), eg http://192.168.1.1:84,
http://www.mydomain.com.
I think I should begin with WMI to query all these in... more >>
IIS Security Problem
Posted by dln at 4/29/2004 11:32:41 AM
I'm a bit new to developing web applications and I've run up against a
security issue that perhaps someone could shed some light on. Basically,
I'm trying to develop a web interface that allows certain members of our
organization to administer distribution groups in a specific OU in Active
Dire... more >>
crawling the net...
Posted by ask josephsen at 4/29/2004 11:19:33 AM
Hi NG
I'm making a program to crawl the internet. It works by retrieving all links
in a page, downloading the page of each link and again retrieving all the
links. (If there is better ways I'd like to hear)
My problem is relative links (like "../../wohoo.asp"). What is the smartest
way to g... more >>
fatal error CS0009: Metadata file ...
Posted by Dwayne at 4/29/2004 10:46:25 AM
I'm getting this strange error when I try to compile a
project with large (100 - 200 MB) resource files. The
error is as follows (I've removed the filename for
simplicity):
fatal error CS0009: Metadata file '[snip]' could not be
opened -- 'Not enough storage is available to process
thi... more >>
ram
Posted by Mark at 4/29/2004 10:42:31 AM
Is there any merit to purchasing more than 1 GB of RAM on your *client* pc
to run VS.NET, while multitasking with Outlook, Query Analyzer, and music
playing in the background from a CD running on Windows XP? Assume that the
SQL Server MSDE or similar is not installed, but IIS is running locally ... more >>
Newbie: Design Pattern
Posted by Mustafa Ahmad Malik at 4/29/2004 10:27:29 AM
Hi,
I am a newbie learning design patter techniques. A task is assigned to me to
implement a Communication class in C#, which will be a dll, using the most
suitable Design Pattern. The communication dll will contain implementation
of MSMQs, Pipes, Sockets etc. The purpose of it is to allow users... more >>
Multi level class implementation
Posted by kids_pro at 4/29/2004 10:27:07 AM
What is the correct way to implement this real world problem?
Planning Process:
----------------------------------------------------------
--+ Plan: (name, GetCost, GetPaidAmount)
----+ Activities: The plan has many activities (name, GetCost,
GetPaidAmount)
------+ Budget Items: again each a... more >>
Mulitilanguage support in C# ???
Posted by Eric Chow at 4/29/2004 10:22:17 AM
Hello,
I want to support multi-language in my C# program.
What can I do???
How can I change the locale in the menu, then the language will use the
specific country resources ?
How can I compile those different resources properties into DLL, and the C#
program can dynamically load it when c... more >>
problem with file watcher and datagrid
Posted by R.A. at 4/29/2004 10:18:52 AM
Hi
I have a class which contains a datagrid and a file watcher object.
When the file watcher event is triggered then in the event handler I add
rows to the data grid. the problem is that every time I add rows to the
datagrid from the file watcher event handler the program stops - there are
no... more >>
Change Type of (Default) Registry Value
Posted by yogi_bear_79 NO[at]SPAM yahoo.com at 4/29/2004 10:08:13 AM
I'm Creating new Keys in the registry, but when I do, they always have
a Vaule called (Default) type RG_SZ. I need them to be DWord
dword:00000005
Is there a way to automaticaly make the (Default) a Dword using the
CreateSubKey method?
If not, How can I use the SetValue Method t change the ... more >>
Dynamically create objects knowing only System.Type
Posted by Saranjit Singh at 4/29/2004 10:07:21 AM
Is there any way I can enumerate the properties of an object at runtime and
assign values to each property of the object depending on its data type? For
primitive data types, this is easily done using reflection since they are
basically numeric data. But for structures (or for that matter classes... more >>
Regex help
Posted by Bob Dankert at 4/29/2004 10:04:31 AM
I am trying to create a regular expression to split a string at each
newline, unless the newline is within a set of quotes. Unfortunately, I
have little experience with Regular Expressions and have been having a hard
time creating a pattern to match only newlines not within quotes. Any help
wo... more >>
Using old DLL
Posted by Arda Han at 4/29/2004 9:46:46 AM
Hi friends,
I wrote a DLL with Delphi. Now I am migrating my applications to C#.Net. In
this way I have a few question.
1- How can I create a DLL in C#.Net
2-How can I load DLL's at runtime dynamically?
3-Can I use my old DLL in C#.Net? How can I do it?
Thanks
Arda Han
Software Engin... more >>
Waiting for a Mouse click
Posted by Andreas Müller at 4/29/2004 9:25:24 AM
Hi all,
I need to wait for the user to click the mouse:
// some code before
WaitForMouseClick();// Wait until the user clicks the mouse
// go on doing something
Under Win32 using C++, you could poll the mouse buttons states. Is this
possible using C# and .NET?
Thanks in advance,
Andy... more >>
newbie - can't use child namespaces without full qualification, eh?
Posted by Peter Row at 4/29/2004 9:15:14 AM
Hi,
BACKGROUND TECH:
WinXP Pro SP1, VS.NET Ent 2003, .NET 1.1
I am more familar with VB.NET but am about to start on a C# project.
So I started on a simple console app that would let me get my feet wet.
Any how I came across this annoying issue when using classes from
different names... more >>
Who call Main()
Posted by kids_pro at 4/29/2004 8:34:07 AM
Hi there,
When we lunch our .exe application Main function is called.
My question is who call Main function?
Many thanks,
Kids
... more >>
I miss my math class how much is -3.4e38?
Posted by kids_pro at 4/29/2004 8:32:38 AM
Hi there,
Can anyone explain me in a simple concept what does -3.4e38 mean?
Many thanks
... more >>
Ini files
Posted by Paul M at 4/29/2004 8:22:55 AM
Hy all
Could anyone help me with a sample for GetPrivateProfileString or
GetProfileString function?
TIA
Paul M
... more >>
String to Integer bidirectional mapping (was Hashing: "blair" == "brainlessness" !!!!)
Posted by fbenavent NO[at]SPAM cogitoergosum.com at 4/29/2004 7:34:14 AM
Thanks for your answers, I know that my wondering was not a problem.
Once I understand that collisions in hashing are unavoidable, lets
explain my problem:
---------------------
WHAT I WANT TO DO?
---------------------
1. I want to do an object called WordList able to store a list of
string... more >>
How to save image binary value to text or xml file.
Posted by bassembwa NO[at]SPAM hotmail.com at 4/29/2004 4:33:13 AM
Hi all
I saved my imaged in SQL 2000 server database and now I want to get
the values of the columns to text or xml file. The field I didn't
could get it to the text file is the Image column (binary array
value).
Is there any solution to be able to save the binary array to a text or
xml fi... more >>
Try Catch and Variables
Posted by bungle NO[at]SPAM wizardbuy.com at 4/29/2004 3:45:47 AM
Hi
I am trying to do something really simple. Create a method within a
class which will connect to the database, pull back a result and
return it out the method. Not hard.
All my database connections and executescalar work fine, but, I want
to put it into a Try Catch statement so that if a ... more >>
Hashing: "blair" == "brainlessness" !!!!
Posted by fbenavent NO[at]SPAM cogitoergosum.com at 4/29/2004 3:01:39 AM
I have some problem with a hashtable keyed by strings due to some
object collisions.
I've read from sources like:
http://groups.google.com/groups?hl=ca&lr=&ie=UTF-8&oe=UTF-8&safe=off&frame=right&th=5e5cc678d76cbefb&seekm=eOuZ99ctBHA.1272%40tkmsftngp03#link1
that collisions in string hashes... more >>
Calling protected members
Posted by TT (Tom Tempelaere) at 4/29/2004 2:36:03 AM
Hi there
The line marked *** doesn't compile. I wonder why the designers of C# decided to disallow this. Rationale?
Are there plans to change this? This feature forces me to make things public when the operations are in fact protected. This breaks a lot of patterns for me
public class C
pub... more >>
How to add internet image to imagelist
Posted by Joe Smith at 4/29/2004 2:27:27 AM
Hi all, I am developing window application.
can anyone tell me how to add image (e.g.
http://xxx.com/abc.gif") to imagelist? Please help!
Joe... more >>
Scanning a file?
Posted by Marie-Christine Bechara at 4/29/2004 2:01:18 AM
I have a form with a button called btnScan. When i click on this button
i want to scan a file and save it in the database. Any hints?? ideas???
solutions???
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!... more >>
Array Serialization
Posted by S at 4/29/2004 2:00:17 AM
Hi there,
Here's a question for ya:
I'm serializing something that looks like this:
[XmlRoot(ElementName="Widget")]
Class Widget --> My base class
[XmlArray(ElementName="TextGroups")]
[XmlArrayItem(ElementName="TextGroup",Type=typeof(ClassTextGroup))]
... more >>
ASP .net and Image changed event
Posted by Fabrizio at 4/29/2004 1:36:08 AM
Hi
I'm building a web page that should behave in the following way
when i'm mouse over Image1 , Image1 change imageurl property (that's easy), but also Image2 changes Imageurl
How it can be done
Do i need javascript
Thank you
Fabrizi
... more >>
Connection to MySql database
Posted by midnighthell at 4/29/2004 12:17:08 AM
I haven't done it jet, so I don't know how to do it (Of course i have worked
it with MS SQL server and oracle)
Please,if anyone know how to do that please explaint it to me.
Thanks
... more >>
|