all groups > c# > february 2005 > threads for monday february 28
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
Proxy server in C# .Net
Posted by joicedony NO[at]SPAM lycos-dot-com.no-spam.invalid at 2/28/2005 11:42:13 PM
Hey everybody,
I am joice, College student.
I am doing the project in C# .Net.
The title of PROXY SERVER.
Now my doubt is,
I will get the request from the client,
ie) the request is www.yahoo.com.
I can received the request.
Now i want to send the response for the request.
Which metho... more >>
Custom format in DateTimePicker
Posted by Guy Corriveau at 2/28/2005 10:57:07 PM
Got a dateTimePicker o
o.Format = DateTimePickerFormat.Custom;
o.CustomFormat = "MM/dd/yyyy hh:mm tt";
the previous code work well when the Regional option is set to english
Canadian but do not display the AM or PM when the Regional option is set to
french canadian
... more >>
textBox Focus
Posted by Hrcko at 2/28/2005 9:42:04 PM
I wrote some words in textBox.
On the next Focus I would like to get to the end of the last entered word.
How ?
Hrcko
... more >>
Fancy console output
Posted by Aidy at 2/28/2005 9:26:42 PM
Is it possible to alter the look of the text in a console app such as it's
colour etc? If not can anything think of a way/product that lets me have a
console-type app with different coloured text?
... more >>
How to creating a file association
Posted by Patrick Blackman at 2/28/2005 9:13:44 PM
I want to create a unique file extension for my data file (e.g. test.ada)
where the "ada" is my extension and assign an icon to the extension just
like MS Word does with the ".doc" file. I want when the application starts
up it checks for the extension , if it is not registered it is then
re... more >>
Reading Windows Event Log using code...
Posted by Charlie NO[at]SPAM CBFC at 2/28/2005 8:48:04 PM
Hi:
I would like to query the Windows Event log and display items in a DataGrid
on a WinForm. Is there a class in the framework to retieve data from the
Event log?
Thanks,
Charlie
... more >>
How to make label and linklabel controls to accept multilined text at design time?
Posted by M Shafaat at 2/28/2005 7:33:18 PM
Hi!
How can I make label, linklabel . controls to accept multilined text at
design time and in the properties window of Visual Studio?
Regards
M Shafaat
... more >>
Configuracion regional
Posted by Felix González at 2/28/2005 7:11:37 PM
Hola!
Tengo un problema con la configuracion regional y SqlServerCe. Tengon un
numero (2,234 por ejemplo) almacenado en una BD que lo representa como
2.234, si desde mi prigrama hago un aconversion con Syste.convet.ToDoble
obtengo el numero 2234 en vez de 2,234. Como puedo convertir al número
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
how can i compile csharp code to machine code permanently?
Posted by putchar at 2/28/2005 6:18:01 PM
it is also obvious that if i could make win32 programs with vs.c#?
... more >>
Passing a pointer to an unmanaged method
Posted by Lois Spangenberg via DotNetMonster.com at 2/28/2005 6:02:36 PM
I have an external method that includes a pointer to a struct as one of its
arguments.
The struct definition is managed, and contains both value and reference
(float arrays) members.
What I'm trying to do is instantiate an instance of the struct and pass it
to the method to be populated.
... more >>
Trying to print batch of PDF files programmatically
Posted by David Cho at 2/28/2005 5:41:54 PM
I am still struggling with this. Used the PrintDocument class, but it
was printing gobblygook. Does not recognize the PDF files as Acrobat
files and just prints text.
Can't get the shell command to work.
Tryed
print C:\test.pdf
Is there a better way?
Anyhow, I finally tried to us... more >>
Object type cannot be converted to target type.
Posted by Paul Tomlinson at 2/28/2005 5:38:24 PM
I am trying to call a delegate on my parent from a child thread, this is my
code, however i'm getting an exception "Object type cannot be converted to
target type." which I can't understand. The prototype for my delegate is:
public delegate void ExceptionDelegate( object[] o ); // called fro... more >>
Comparing Bitmap Pixels to Colors
Posted by Typpo at 2/28/2005 5:31:39 PM
Hi all,
I'm trying to compare a color returned by a Bitmap's GetPixel method to
a normal static color of the Color class. My problem: after setting a
pixel to a certain color, the color returned by GetPixel isn't
considered the same color anymore. Example code:
bmp.SetPixel(0, 0, Color... more >>
Can MarshalByRefObject object be transformed into a byte[] array?
Posted by BBFrost at 2/28/2005 5:21:25 PM
I'm not having much success from the interop group. So I'm going to
crosspost and hope I don't get flamed too badly
Disclaimer - I don't know much at all about Marshalling and Reflection.
THE QUESTION: Is it possible to transform a MarshalByRefObject object into a
byte[] array? If so, will... more >>
how can i translate a object of my defined class to byte[]
Posted by lqs at 2/28/2005 4:48:50 PM
hi£¡
i am writing a program using Socket . There is a class , for example:
public class Student
{
public int nAge;
public string strFirstName;
public string strLastName;
}
Student s=new Student();
s.nAge=22;
s.strFirstName="victor";
... more >>
Renewing certificates and public key tokens
Posted by Mike Schilling at 2/28/2005 4:10:32 PM
The certificate we use to sign our assemblies was about to expire, so I =
contacted Verisign to renew it. The new certificate came, we installed =
it, we pointed out nightly build at it, the new DLLs got signed, so far =
so good. The problem is that, when we looked at the with ILDASM, we =
not... more >>
Overriding static members
Posted by Aamir Mahmood at 2/28/2005 4:01:51 PM
Hi all,
I have a question. Can static members (methods and nested types) be made
virtual in a class? So that they can be overridden in the child classes.
For example:
-------------------
public class Parent {
public enum AllowedColors = {Red, Blue, Green}
public static void DoS... more >>
Some basic .net questions?
Posted by Abhishek at 2/28/2005 4:01:28 PM
Hi!
Can you pls give answers to some of these basic .Net Fundaentals
Answer to some of these are known to me but i want to be sure of those.
the difference between a Thread and a Process?,What is a Windows Service and
how does is it differ from a "standard" EXE?
What is the maximum amount... more >>
ObsoleteAttribute Compiler bug?
Posted by cody at 2/28/2005 4:00:00 PM
public decimal Wert
{
get{return this.wert;}
[Obsolete]
set{this.wert=value;}
}
This doesn't compile. It gives me error CS0592 and says that obsolete cannot
be applied to that elemet.
... more >>
Read ARJ packed Text-Files
Posted by Joachim Fenchel at 2/28/2005 3:57:53 PM
Hello everybody,
I am learning C# and I have got a big problem with reading ARJ packed
Textfiles.
Does someone know how to read in thos ARJ - Files?
I need to extract Informations from this files.
They all text files, but compressed with ARJ.
Thansk a lot for help.
Best,
Jo... more >>
edit a text file
Posted by Abhishek at 2/28/2005 3:45:29 PM
Hi!
I need to edit a text file.
I need to replace a given text in the file with a new one.
This text can exist anywhere in the file, so i first need to locate the text
position and then edit it.
How do i acheive this.
Abhishek
... more >>
Replacing a TAB with 2 spaces
Posted by rkuleta NO[at]SPAM hotmail-dot-com.no-spam.invalid at 2/28/2005 3:43:31 PM
I'm having problems with UNICODE and ASCII here.
I'm trying to make a program that reads in a text file containing a
couple of columns of data. This data is separated by one tab. I want
to change that so that the output file is identical except that tab
is changed to 2 empty spaces (in between ... more >>
Move the picture inside a picture box
Posted by Steven at 2/28/2005 3:42:52 PM
Hello,
I have an Image Box in the asp.net page, which contains an Image. Is there
anyway I can move that image with the mouse in any direction inside the
picture box??
If anything is unclear, please let me know.
Any help would be greatly appreciated!
Regards
Steven
... more >>
Timer Doesn't Stop!
Posted by Tim Cowan at 2/28/2005 3:15:26 PM
Hi
I have created a C# app that checks a table every n seconds and if it finds
something it sends the email. The only problem is if you close the
application, the timer keeps going??
I have coded it so that I stop the clock -> send the mail -> then start the
clock but it doesn't stop.
... more >>
Recursive delegation with non-static functions?
Posted by Matthew Daly at 2/28/2005 3:10:37 PM
I'm playing around with a class design using delegates and have gotten
stuck. I'm not certain if cooler heads can prevail or if it is forces
that man was not intended to tamper with.
The LazyArray class below is for processor-intensive sequences, like
recursive functions. It doesn't calculat... more >>
Service sending email
Posted by Mark at 2/28/2005 2:40:52 PM
I have a service that I've built that runs on our web server. The web
service has a reference to the System.Web namespace so it can use the
classes titled:
MailMessage
SmtpMail
My web server uses these classes just fine. I can't seem to get my service
to send email. Is there an inherent... more >>
treeview control with data
Posted by Hrvoje Voda at 2/28/2005 2:08:01 PM
I would like a simple code witch fills treeview control with data from
sqlDataBase through sqlAdapter and DataSet.
Hrcko
... more >>
Insert Large Amounts of data into db
Posted by The Bear at 2/28/2005 2:00:11 PM
I'm looking for a way to insert a large amount of data into a db table.
I'm reading the data from a file. It's about 250,000 records.One per line
thanks
T.B.
... more >>
How do I exit a foreach loop
Posted by Ray Stevens at 2/28/2005 1:56:11 PM
What is the command to exit a foreach loop prior to it's natural termination
(such as finding a specific string in an array)?
... more >>
Dispose called twice
Posted by Sharon at 2/28/2005 1:43:13 PM
Hi.
I put a message box in the form designer, Dispose method.
Clicking the form close (X) button, i noticed that the message,
appears twice.
My code does not call Dispose.
What is happening here?
Thanks.
Sharon.
... more >>
Concern about overriding methods
Posted by Jack Addington at 2/28/2005 1:23:48 PM
I have a class method defined as:
public virtual void SomeMethod(string key, Int32 id) {...}
In an descendent class I am typing in override and selecting the method from
the autoText. When it builds the shell for the method it is changing the
Int32 to an int ie)
public override void So... more >>
KeyUp event with TextBox
Posted by JPSutor at 2/28/2005 1:14:54 PM
I currently have this code in my kepup event of a text box. It works
except for the fact that if the number
25,000 or any number is put in then the user arrows to the left of the
third zero and tries to replace the number 0 with a 4, this is the
result
25,004
Here is my code. Any help woul... more >>
.NET applications over terminal servers
Posted by Bhargavan at 2/28/2005 12:59:43 PM
Hey Groups,
Some of our .NET applications will be residing on the terminal servers and
the users will connect to these terminal servers remotely to access our
applications. My question is, Is there a way to transfer some of the memory
load from the terminal server to the client machines?
Tha... more >>
Processing Ctrl + S etc
Posted by Donal Kelly at 2/28/2005 12:55:22 PM
Hi,
I'm writing a C# GUI and I'm trying to process the control keys, i.e. CTRL +
S or CTRL + N.
I can process ALT + by using the & key but is there an equilivant for CTRL.
Thanks,
Donal
... more >>
DES decryption for des_enc of Tim Hudson and Eric Young
Posted by ts NO[at]SPAM ck-de.net at 2/28/2005 12:50:28 PM
Hey experts,
I have to write some classes doing communications with a device
controlled via RS 232. Everthing is working well, but the data the
device is sending back is encrypted.
As I have found out today, the firmware is using algorithms which are
compatible to the algorithms created by ... more >>
WebClient Timeout Exception
Posted by Michael Fields at 2/28/2005 12:39:04 PM
I have a problem with the WebClient and uploading a file to a web server. The
stream object returned from the WebClient.OpenWrite menthod throws a timeout
exception when using this method on computers w/ low bandwith ( < = 256 kbs).
The exception occurs when I call the Stream.Close method. Her... more >>
adaptive server anywhere (Sybase)
Posted by M D at 2/28/2005 11:28:50 AM
I've got a data source with a .cdb extension that appears to be accessed
via a runtime engine of adaptive server anywhere v.6.0.3.
Can anyone advise me how to connect to this data source? What's my
provider?
thx
md
*** Sent via Developersdex http://www.developersdex.com ***
Don't just ... more >>
display user please wait, while backend is processing
Posted by batham at 2/28/2005 11:28:28 AM
Gurus,
I have a mainpage.aspx webform, in the page load of this page I am
displaying a text "Please wait connecting..." and then I want the user
to see this output on the WebForm, while I do some backend processing.
Once the backend processing is done I want to redirect the user to
another pa... more >>
Applications for IPAQ's
Posted by JPSutor at 2/28/2005 11:18:31 AM
Can anyone direct me as to how to get started writing apps for the IPAQ
in C#
... more >>
Public Static Readonly Fields and Reflection
Posted by ChristianREMOVE.EitnerTHIS NO[at]SPAM anton-paar.com at 2/28/2005 10:43:28 AM
Hi people,
I have a class which defines some "public static readonly string"
fields. If I say
FieldInfo[] fieldInfos = typeof(DaClass).GetFields();
these fields are reported by reflection, whereas with
fieldInfos = typeof(DaClass).GetFields(BindingFlags.Static);
they are not given. ... more >>
StreamWriter, StringWriter and encoding...
Posted by kinekine NO[at]SPAM digita at 2/28/2005 10:09:02 AM
Hello,
i have a big problem with my email component, because each time i write the
generated message directly to the spooler, the streamwriter will write in
Unicode.
The file starts with a FF FE and is double byte.
This is a problem because when a mail server like QMAIL receive the mess... more >>
release path
Posted by Hrvoje Voda at 2/28/2005 10:08:46 AM
Where can I change the path for release files?
Hrcko
... more >>
ADO.Net DateTime issue
Posted by Paul Yanzick at 2/28/2005 10:06:56 AM
Hello,
I'm having some issues pulling a datetime object from a database and am
looking for any suggestions I can get.
I have written a function to make querying specific fields in a table as
generic as possible. The function is below:
private string GetFieldValue(string IDKey, string F... more >>
Login Screen
Posted by Marty at 2/28/2005 10:05:14 AM
What is the best way do a login screen? I have the Main() method in my
login screen. After iit checks the userid and password the OK button
loads the main application form but the next line is frmLogon.Close()
which closes the whole application! If I hide it, the app does not
close completely.... more >>
Add Javascript function
Posted by Steven at 2/28/2005 10:01:39 AM
Hello,
I have 3 files --
1. mainform.aspx
2. mainform.aspx.cs
3. mouse.js
mainform.aspx contains a image button ("zoominimgbut") which will exceute C#
code, whenever the user clicks on it. mainform.aspx.cs is the code behind
for mainform.aspx. Mouse.js contains javascript code wh... more >>
Multiple Deployment Issue
Posted by Lee Grindon at 2/28/2005 9:35:10 AM
Hello, I want a central MDI windows app that can call other
.net windows applications. The deployment scenario is such that a new
application will be needed on a daily basis so I don't want to deploy
the main MDI app again and again just open the newly created
application? Any ideas would be gre... more >>
Edit Menu question
Posted by Michael Rodriguez at 2/28/2005 9:28:19 AM
I created an edit menu with the standard Cut, Copy and Paste. I then
assigned shortcuts to each menu, CtrlX, CtrlC, etc. However, if I select
some text in a textbox and choose one of these items, it does nothing. Is
that because the textbox lost focus when I clicked the menu? What's the
stan... more >>
OOP and C#: Too much objects make me unhappy, but what can I do??
Posted by hugofelicio NO[at]SPAM yahoo.com at 2/28/2005 9:26:47 AM
Hi,
I'm doing my first big project in C# and I'm stuck with a problem that
I believe has a simple and efficient solution for it (I just haven't
bumped into it yet...). The concept is the following:
//Users manage clients. When the system creates the client it must
fetch the information from ... more >>
SYSTEMTIME in C#
Posted by Klynt NO[at]SPAM noemail.nospam at 2/28/2005 9:09:09 AM
How do I access a native SYSTEMTIME object in C#? (I need to return one from
my new C# classes so that I can maintain compatibility with legacy C++ code)
Thanks,
Klynt... more >>
Changing Default Company Name / Manufaturer token
Posted by Bart at 2/28/2005 9:09:05 AM
I recently wrote my first C# application and am ready to distribute it to my
client. However, when I run the installer it tries to install it in
c:\Program Files\Default Company Name\"Application Name"\. (Application name
is not the actual name.) When I installed C# I must have neglected to... more >>
Convert C++ to C#
Posted by Chris McKenzie at 2/28/2005 8:50:34 AM
I am sure this question has probably been asked hundreds of times, but
I can't seem to find an answer to it, so here *I* go...
I need to convert a C++ class/app to C# and I have absolutely zero
time to learn C++. I've been working with C# for about a year now,
and truly enjoy the language. H... more >>
How can I detect cdrom/usb device insertions?
Posted by Paul Steele at 2/28/2005 8:25:13 AM
I am writing a C# app that needs to periodically poll for cdroms and usb
storage device insertions. I've looked at the WMI functions but haven't
found anything all that useful. The closest is Win32_DiskDrive, but it
doesn't seem to return any information on cdrom devices. I suspect there
mig... more >>
Assembly problem
Posted by jez123456 at 2/28/2005 8:03:03 AM
Hi, I'm trying to add the product, title and version number to my main form
with the following code. I've tried using this code in the public class
FrmMain section but I get the error thisAsm' denotes a 'field' where a
'class' was expected. Also it will not compile 'this' with the error Keywor... more >>
Downcasting
Posted by Me at 2/28/2005 7:45:05 AM
From C# Language Specification, 7.6.6 Cast expressions:
--------------------------------------------------------------------
A cast-expression of the form (T)E, where T is a type and E is a
unary-expression, performs an explicit conversion (Section 6.2) of the value
of E to type T. If no expli... more >>
How to use .idl files and events
Posted by Vasek_k2000 NO[at]SPAM mail-dot-ru.no-spam.invalid at 2/28/2005 7:39:24 AM
I have an idl file with interface description
interface MyInterface : IUnknown {
HRESULT WellDone( LPCWSTR szReason)
}
How can i use function of this interface as event to
C++ client.
I did somethink like this
midl my.idl ->my.tlb
tlbimp mytlb ->my.dll
then
.....
using mydll;... more >>
Creating a word file.
Posted by Jesper at 2/28/2005 5:33:05 AM
Hi,
I would like to write a genuine word file from C#, is this possible?. I'm
not thinking about the solution where I write a txt file and opens it with
word. Know any good tutorial?
best regards Jesper.
... more >>
Use .NET windows control in COM windows form
Posted by Ed Mundorf at 2/28/2005 5:09:03 AM
I want to create a .NET windows user control that I can use in a Visual Basic
6.0 or Power Builder 9 application. I created a new Windows Control Library,
set the property "Register for COM Interop" = True, and created a strong name
and set the "Wrapper Assembly Key File" file to it. When I ... more >>
urget!!Datagrid...
Posted by aylin_sk at 2/28/2005 4:19:01 AM
I cant bind my datagrid..There isnt any problem with dataset....what else can
the problem be??
private void Page_Load(object sender, System.EventArgs e)
{
if (Page.IsPostBack)
return;
if (Request.QueryString["centerId"]!=null)
bindMySurvey(Int32.Parse(Request.QueryStrin... more >>
datagrid sorting hassles
Posted by steven.shingler NO[at]SPAM virgin.net at 2/28/2005 3:44:34 AM
Hi all,
I've got a datagrid.
I have a function which selects certain rows in a datagrid thus:
public void selectRows(string key, string columnName)
{
int count = 0;
foreach(DataRow dr in ((DataView)dg_aspects.DataSource).Table.Rows)
{
if(dr[columnName].ToString()==key)
d... more >>
FolderBrowserDialog SelectedPath and drive D
Posted by alfboggis NO[at]SPAM yahoo.co.uk at 2/28/2005 2:33:12 AM
Hi,
I am using a FolderBrowserDialog to allow the user to select a folder
as follows:
FolderBrowserDialog folderBrowserDialog1 = new FolderBrowserDialog();
folderBrowserDialog1.RootFolder =
System.Environment.SpecialFolder.MyComputer;
folderBrowserDialog1.SelectedPath = "D:\\";
folderBrow... more >>
StringBuilder .Replace("a", "aa") = OutOfMemoryException
Posted by ad at 2/28/2005 2:24:41 AM
Hello, if I try this
((StringBuilder)sb).Replace("a", "aa");
I get OutOfMemoryException raised if sb contains at least one "a"...
It seems like StringBuilder 'seeker' doesn't move to the end of
replacement string but it moves to the second character of the
replacement string...
((Strin... more >>
A comparison among VSS Remote Access Tools including SourceOffSite, SourceAnyWhere and VSS Remoting
Posted by bettervssremoting at 2/28/2005 1:30:47 AM
To view the full article, please visit
http://www.BetterVssRemoting.com
Better VSS Remote Access Tool
This article makes a detailed comparison among SourceAnyWhere,
SourceOffSite, VSS Remoting and possible others.
Keywords: VSS Remote Access, VSS Web Access, VSS Internet Access,
Source... more >>
way to print document?
Posted by David Cho at 2/28/2005 1:03:45 AM
What I am looking to do with a .NET win application is this.
for(int i=0; i<5;i++)
Print "C:\docments\this.pdf";
Of course the path will be set dynamically. So what .NET utility can I
use to accomplish that? Thanks.
*** Sent via Developersdex http://www.developersdex.com ***
Don't ju... more >>
How to create a control for Non .net programming langage
Posted by pei_world at 2/28/2005 12:28:45 AM
I want to develop a control for PowerBuilder or Delphi in C#. however I
can't find any helpful information on the web. Can anyone tell me give me a
hand, example code will be great?
many thanks
... more >>
|