all groups > c# > october 2006 > threads for tuesday october 24
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
writing an advanced filestream class
Posted by bonk at 10/24/2006 11:49:30 PM
I am trying to create a stream that writes text to a file and:
- automatically creates a new file once the current file exceeds a
certain size
- makes it possible to be used by multiple threads and/or processes so
that multiple threads/processes can write to the same file (all threads
use the... more >>
Several questions of C#
Posted by vicmann at 10/24/2006 10:17:53 PM
1. When and why a string defined with or without "@" in front of it?
string sSample = "xxxx";
string sSample = @"xxxx";
2. Any difference between the following two?
string sSample = "";
string sSample = string.Empty;
3. Given an Interface IMyInterf and it derived class MyCls.
IMyInterf ... more >>
Running a program from my application and close down my applicatio
Posted by Joachim at 10/24/2006 10:15:02 PM
Is there a way to run a program from my application and close down my
application before the program ends/is closed?... more >>
Using an array list
Posted by Ant at 10/24/2006 10:15:01 PM
Hi, I'm using an array list as the collection for my indexer (_alPeople).
When i try to set _alpeople to a value at a certain index, I get an error. I
can't simply add the value as it needs to be at an index set by the user.
the Set statement is this:
_people[index] = value; or even _peop... more >>
unions in C#
Posted by Brian at 10/24/2006 9:08:17 PM
I have been porting some C++ code to .net. I know C# doesn't have unions but
in order to write a particular algorythm efficiently i have a need to
address memory in in 2 different ways. As individual elements and also as an
array. I have tried the following (along with several variations) and ... more >>
How to determine a point on a sine wave
Posted by MathNewbie at 10/24/2006 8:55:03 PM
Hi,
I'm trying to do get my head around some, probably basic, math
calculations. I checked some .net math libs, but the only thing I learn
from studying those is humility ;-).
Anyway, i have an array of points on a basic 2 dimensional axis. They
are all points of a sine shaped line. (not... more >>
inheritance/polymorphism and maybe generics question
Posted by James Crosswell at 10/24/2006 8:35:10 PM
I'm not sure if I'm going about this the right way - it may be that
Generics might be able to help me out here... but here goes:
I have three classes as follows
class BaseEdit
class WidgetEdit: BaseEdit
class FooEdit: BaseEdit
These are all acutally Windows Forms and BaseEdit is ... more >>
iequalitycomparer
Posted by parez at 10/24/2006 8:07:34 PM
Hi all,
I have a custom colllelctoin class which inherits collecton base.
It is a collecton of objects of type X and X has ID integer as like a
unique key.
How do i check if the object already exists in the collection?.
I think i am missing something straightfoward.
Thanks for y... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Panel Container
Posted by stotty NO[at]SPAM gmail.com at 10/24/2006 7:49:25 PM
Hello.
I am developing an application that uses Panels to guide the user
through a form they must fill out. Each Panel contains different
controls, such as Text Boxes and Drop Down Lists. When the user clicks
the Next button, it sets all Panel.Visible to False and sets only the
current Panel ... more >>
Use of properties
Posted by Paul Mcilreavy at 10/24/2006 7:11:34 PM
Hi, i would like to get some view points on the use of properties within
classes. My belief is that properties should generally be used to return
values of private members. They should not do anything that is likely to
return an error and they should not instantiate or return any big objects
... more >>
event/delegate question - newbie
Posted by mdauria NO[at]SPAM verizon.net at 10/24/2006 7:09:25 PM
I am familiar with using events and delegates in an application. I am
working on a new project in work where I have two applications that are
running on the same box and I need to send a little bit of data from
one of them to the other. I was thinking about using events to do this.
I would actua... more >>
UDP broadcasting
Posted by Rain at 10/24/2006 7:08:01 PM
in UDP broadcasting, how do i know from which client was the message sent to
the server? is there a way to know this without having to place the IP of the
sender in the message itself? Thank you so much in advance!... more >>
C# directx 2d
Posted by Jack Nielsen at 10/24/2006 6:28:16 PM
Does anyone have a link to Visual Studio 2005 directcx 2d sprite
manipulation or just simple graphics with directx 2d.
Jack
--------------------------------------------------------------------------------
Jeg beskyttes af den gratis SPAMfighter til privatbrugere.
Den har indtil videre spar... more >>
C # installation
Posted by Ganga at 10/24/2006 5:58:10 PM
Hi,
I m new for c # pls help how to install c# in my machine
Rgds,
Ganga
... more >>
API for GPRS
Posted by JonathanXm at 10/24/2006 5:46:51 PM
Hi
I've a GSM modem to put a SIM Card and communicate to any cell phone. But I
don't found any library for send and receive SMS or MMS thats works in .NET.
I've try with Mercury, but don't works ok.
Someone knows some library to send and recieved sms/mms?
Thanks!
... more >>
Python DBM style library for .net
Posted by Mike Margerum at 10/24/2006 5:33:31 PM
Is there a DBM equivalent in .net?
I want to store serialized C# objects in a file store using a GUID key
in a random access fashion. Pretty much a dictionary<> that is disk based.
Thanks... more >>
Read contents of a web page
Posted by Kuldeep at 10/24/2006 5:19:29 PM
Hi All,
I am trying to read the contents of a page through its URL.
My code snippet is as follows:
public void mtdGetPageDataHWR()
{
HttpWebRequest objRequ =
(HttpWebRequest)WebRequest.Create("http://www.microsoft.com");
HttpWebResponse objResp = (HttpWebResponse)objRequ.GetResponse();
... more >>
Determining machine SID?
Posted by Jon Pope at 10/24/2006 5:15:51 PM
How can I locate the SID of the host machine? I've looked online, and there
are plenty of examples on retrieving the current user's SID, but not the
machine.
Cheers, Jon
... more >>
Sending e-mail using the SMTP class but it's a POP3 server.....
Posted by UJ at 10/24/2006 4:03:25 PM
I'm way out of my league here but I'm having problems sending e-mails
programmatically. I have a web app that will allow users to have e-mail sent
to them (forgotten password/resetting password, ...) When I send it to the
same domain as our company, it works fine. When it's outside the company... more >>
Converting from 1.1 -> 2.0
Posted by Jayyde at 10/24/2006 4:00:02 PM
I'm currently converting an existing application from .NET 1.1 to 2.0. I'm
down to the point where I'm only having one issue, but I'm not sure why. I
have the line:
ConfigurationSettings.GetConfig("WinAppConfig")
Where ConfigurationSettings.GetConfig has been depreciated in favor of:... more >>
Question of a Java programmer
Posted by Martin Pöpping at 10/24/2006 3:59:11 PM
Hello,
I´m relatively new in programming with C#.
I want to design a class with can only be used in the same namespace.
So I declared this class as protected, but the compiler gives me the
following error:
Error 1 Namespace elements cannot be explicitly declared as private,
protecte... more >>
.Documents.Open AND kind ?
Posted by Steph at 10/24/2006 3:25:48 PM
hello,
because msdn is so poor... somebody did he write a similar script ?
(DTE/DTE2)
_applicationObject.Documents.Open(docPath, "?string kind?", false);
i must type the "string kind"... but with what ?
thank...
steph
... more >>
How install Windows Service?
Posted by Ronald S. Cook at 10/24/2006 3:18:36 PM
I just created a Windows Service. But now, how do I install it so that it
shows up in my list of services?
Thanks,
Ron
... more >>
java applet to dotnet ?
Posted by entegre at 10/24/2006 3:12:49 PM
java applet to dotnet ?
... more >>
ComboBox - Losing binding
Posted by s26f84 NO[at]SPAM gmail.com at 10/24/2006 2:58:56 PM
Hey Guys&Gals
my combo box is never empty it always have the text from the first
member of the table... Plz help
my code:
this.cbo.DataSource = SearchData.Tables["Name"];
this.cbo.ValueMember = "ID";
this.cbo.DisplayMember = "Name";
this.cbo.SelectedIndex = -1;
this.cb... more >>
form.doublbuffered problem
Posted by Steve at 10/24/2006 2:47:50 PM
I use the paint event to call an external object that will write text
and or drawings to the form - (to make it persistant)
If i have the form property DoubleBuffered set to true the text will
only occassionaly display on the form.
However when I set the doublebuffered property... more >>
C# Conditional Compilation - VS Configuration - Newbie Question
Posted by Paul at 10/24/2006 1:45:25 PM
Hi all,
I am having some trouble integrating a C++ native DLL into a C# App.
I am using SWIG to generate the C# wrapper for my DLL.
My problem is that for debugging reasons I have a different DLL for the
debug and release modes. This is reflected into the creation of SWIG wrapper... more >>
Beginning GUI
Posted by Lint Radley at 10/24/2006 1:44:35 PM
Hi Everyone,
I've done several C# console applications now, and feel comfortable with
the language. Can anyone recommend a web site, book, etc which has
information on starting to develop full GUI applications?
Many Thanks,
Lint... more >>
Copying data from one server to another.
Posted by UJ at 10/24/2006 1:14:31 PM
I need to move specific records from one server to another as part of a
customer upgrade process. What's the easiest way to do this? I could use a
DataTable to get the data and then write out a text insert statement but
that seems pretty cumbersome. Is there some way I could read in the
data... more >>
Console Application
Posted by Jim Heavey at 10/24/2006 12:39:02 PM
Hello, I used VS 2005 to create a console application. Got the application
working just fine. I then decided I would create a folder for each of my
"console" applications within that project. I created a new folder and
placed the working application under tht folder (This included the .conf... more >>
Absolute location of control
Posted by Jon Slaughter at 10/24/2006 12:32:46 PM
Is there a way to get a controls location in screen coordinates? (not
relative to the container it is in)?
Thanks,
Jon
... more >>
class for open/write/read text file?
Posted by Wanjun Yu at 10/24/2006 11:55:22 AM
What is the class name for open/write/read a text file? I can't find it in
the reference book. Thanks!
WJ
... more >>
compile to native
Posted by Marcus at 10/24/2006 10:54:21 AM
How can I compile my VS2005 c# code to not be dependent on CLR to run?
I want people that install my software to be able to run it without
having to bother with CLR's and "Windows installers".
I would like to generate a binary for lets say Windows XP.
How do I do this?
... more >>
collection question
Posted by Brett Wesoloski at 10/24/2006 10:53:13 AM
I have a collection that I add my objects to. When I go to remove an object
from the collect I get an error {"Cannot remove the specified item because
it was not found in the specified Collection."}
Now I do understand what it is saying but I know the object is in the
collection.
Here i... more >>
Strange behavior when closing stream
Posted by John Kraft at 10/24/2006 10:22:48 AM
Hello all,
I'm experiencing some, imo, strange behavior with the StreamReader
object I am using in the code below. Summary is that I am downloading
a file from a website and saving it to disk for further parsing. I
know, I could use the WebClient and it would be easier, but I don't
have the... more >>
audio functions in Winmm.dll
Posted by ray well at 10/24/2006 10:02:48 AM
i need to play (in a windows app) all or part of wav/mp3/midi files thru
software without a user interface. i also need to allow the user to choose
the midi instrument to play the midi files by filling a list box with
available instruments.
i would prefer not to have to install a windows me... more >>
Difference between big indian and little indian...
Posted by Sir C4 at 10/24/2006 9:44:46 AM
Can someone explain to me what the difference is between big indian,
and little indian? I see people talk about the need to convert between
the two... What are they?
... more >>
Problems pulling info from Form1 to Form2
Posted by wanyok NO[at]SPAM yahoo.com at 10/24/2006 9:42:32 AM
I thought I had it figured out but I'm still getting errors :( I would
appreciate any help I could get.
I have two forms: Form1 and frmVerify. Once the info gets submitted on
Form1 its text fields are transfered to some label fields to frmVerify.
Sounds easy but I keep getting "System.Windows.... more >>
Page.Server.Transfer
Posted by MMA at 10/24/2006 9:27:01 AM
Hi All,
I am trying to do a Page.Server.Transfer on a web control and am getting
this error, "Error executing child request for SecureRegistration.aspx."
Any suggestions.
Thanks in Advance
... more >>
What is the next event to fire after the OnCreateControl?
Posted by Greg at 10/24/2006 6:57:09 AM
I am designing an inherited control. Besides the OnCreateControl , what
other events can be listened to that the if(!DesignMode) test willl
work? The reason I am asking is that a customer has asked to hide the
control. However, setting the controls visible property to false means
that the OnCrea... more >>
Simulation of Access DB Lookup Table Type
Posted by Dave at 10/24/2006 6:45:01 AM
I have several comboboxes on a form that are bound to the same dataset. I
want to simulate the Access Lookup Table in these comboboxes. That is, I can
select a value loaded in the combobox without changing the selected value in
another combobox that is bound to the same data. I have been readi... more >>
How to save to a bitmap?
Posted by Lee at 10/24/2006 5:50:27 AM
I have the following code
using System;
using System.Windows.Forms;
using System.Drawing;
using System.Collections;
namespace FINN
{
public class flickerFreePictureBox : PictureBox
{
public ArrayList Lines = new ArrayList();
public flickerFreePictureBox()
... more >>
Implementing a company styleguid
Posted by Dudio.nl at 10/24/2006 5:45:58 AM
[sorry for 'crossposting', but m.p.d.f.w.controls has very low
activity]
Hi,
the company I'm working has got a styleguide, which we use for
web-projects. The guide should also be applicable for Windows
applications. Basicly it tells you the color, font, margins etc for
various controls. Wh... more >>
Get the average value ?
Posted by jesper_lofgren NO[at]SPAM yahoo.se at 10/24/2006 2:49:39 AM
Hello,
I need to write a function to calculate the average value from a coupe
of parameters from database.
Question 1
(value) (people that answer the specific value)
[1] 5
[2] 21
[3] 67
[4] 233
[5] 348
Any ideas would be very w... more >>
How to register a service manually?
Posted by CAIBird at 10/24/2006 2:09:01 AM
hi,
i'm expecting to know how to register a service manually? something like
writting the registry?
Thanks in advance
-Zhilin... more >>
How to write registry on a remote machine?
Posted by CAIBird at 10/24/2006 2:06:01 AM
hi,
i'm wondering how to reader or write registry of a remote host. are there
any classes help?
Thanks in advance
-Zhilin... more >>
Peristent Data - Registry, Settings
Posted by query_me2001 NO[at]SPAM yahoo.co.uk at 10/24/2006 2:05:49 AM
I am trying to find the best way to save data between application
sessions. I have an options form that can be used to configure an
application. This information needs to be stored so that it can be
loaded up when the application next starts.
In terms of persistency I have confusion around the... more >>
How to register a service on a remote machine programly?
Posted by CAIBird at 10/24/2006 1:51:02 AM
hi,
i want to code to register a custmer service on a remote machine and i've
tried class System.ServiceProcess.ServiceInstaller, but i can't do the job.
Is there any other ways?
Thanks in advance
-Zhilin... more >>
Read XML File
Posted by Gerrit at 10/24/2006 12:47:44 AM
It must be simple, but I don't find how I can read a XmlFile in an
ArrayList.
Sample of my XmlFile:
<?xml version="1.0" encoding="utf-8" ?>
<Relations>
<Person>
<FirstName>John</FirstName>
<LastName>Smith</LastName>
</Person>
<Person>
<FirstName>Peter</FirstName>
... more >>
how to unload assembly and free the memory?
Posted by navyliu at 10/24/2006 12:00:00 AM
please help me,I've searched for the solution for two days,but i can't find
the perfect solution.
... more >>
System.web
Posted by Espanolor at 10/24/2006 12:00:00 AM
I can only
using system.web;
but not
using system.web.mail;
I want to sendan email
I am using C#exp
Thanks... more >>
Finding most approximated item in collection object?
Posted by Hyun-jik Bae at 10/24/2006 12:00:00 AM
Is there any way how to get the item which has the most similar key in
key-value collection object such as Dictionary<> or SortedDictionary<>
although there is no matching key? If there is none, is there any
substitution class for enabling this?
Please reply. Thanks in advance.
Hyun-jik ... more >>
DataGridView UpDate Datasource
Posted by Bob at 10/24/2006 12:00:00 AM
Hi,
FrameWork 2.0
Quick and dirty job so I thought I would do it all on the UI as quick and
easy as possible.
I got the datagridview to display my Access databaseview by using the
Datasources and dragging the exposed view onto the datagrid as per the help
instructions
I can't get edits to go ... more >>
how to unload assembly from application and free the memory it held?
Posted by navyliu at 10/24/2006 12:00:00 AM
I use plugin controls in my application,but i find i can't free the memory
the assembly held.
please help me.
... more >>
Can access Web Page but not Web Service
Posted by ad at 10/24/2006 12:00:00 AM
I can use my pc to access any web page, but can't access web service.
Can it due to firewall? Which setting can block web servcie but not web
page?
... more >>
|