all groups > c# > may 2004 > threads for monday may 31
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
webRequest (Urgent)
Posted by (umeshayk NO[at]SPAM ecanarys.com) at 5/31/2004 11:42:25 PM
Respected Sir
What ever you have explained on WebRequest and WebResponse I came to know very well.I started to implement a project based on this concept.What i did was
1. I used Webrequest to hit the starting page of the website to get the Cookie value(www.ichotelsgroup.com)
(I am gett... more >>
newsreader
Posted by pesso at 5/31/2004 11:41:02 PM
How can I write a newsreader in .NET?
... more >>
do the .net release the resources in my app ?
Posted by ¹ùÑÇ·æ at 5/31/2004 10:09:27 PM
i am newer to c# programming.
i found most of the example of database accessing do not mention that
whether the system release all the resources such as sqlconnection,
sqldataadapter.
and i made a program that use Application.Exit() method to quit the
program.Can you tell me dose it can couse... more >>
Convert XmlReader to string
Posted by muesliflakes NO[at]SPAM yahoo.com.au at 5/31/2004 9:45:58 PM
I wish to receive some data from SqlServer as XML and write out result
to as a string.
Eg: cmd = new SqlCommand( "select * from blah for xml auto", con );
XmlReader result = cmd.ExecuteXmlReader( );
Console.Writeln( result.ToString( ) );
This XML is meant to be the input for an XSLT tra... more >>
Save the items of a ListBox every 1 minute
Posted by Drunkalot at 5/31/2004 8:55:47 PM
I wrote a program that made some combinations and add them to a listbox, and
i need to save the contents of the listbox every 1 minute...
The method that save the content of the listbox i have already wrote, but
i´m having problems making a timer to save that...
Do you all have an idea how i... more >>
the mechanisms of CPU time-slice allocation among processes in Windows 2000
Posted by moonriver at 5/31/2004 8:51:03 PM
Who can tell me the mechanisms of CPU time-slice allocation among processes in Windows 2000? Any difference to UNIX?
I wrote an application on the console but found that it was running very slowly while the console's windows was not put on the top. What are the differences in the CPU time-slice all... more >>
How to implement bulk insert into SQL Server with C#
Posted by moonriver at 5/31/2004 8:41:02 PM
Right now I develop an application to retrieve over 30,000 records from a binary file and then load them into a SQL Server DB. So far I load those records one by one, but the performance is very poor: it takes more than 6 hours to finish the loading.
So could I make use of the bulk-insert mechanis... more >>
WTSAPI32 question
Posted by Michael C at 5/31/2004 8:34:52 PM
I'm writing a program that calls the Windows Terminal Services API
WTSEnumerateSessions. It works well for servers that I have "Query
Information" rights to, but for servers that I don't have those rights to it
takes up to 10 seconds to send a response. I'm testing with 70 servers
right now, a... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Defining methods for a class that are accessible when declaring arrays of that class???
Posted by Bob Rock at 5/31/2004 7:57:43 PM
Hello,
this may seem a strange question, but is there a way of being able to call
methods of a class through an array of that class when not referencing a
specific object in the array.
In other words, defined a class class_A I'd like to be able to do the
following:
// defining an array of ... more >>
VB.Net to C# Conversion Help
Posted by Steve Graddy at 5/31/2004 7:42:15 PM
I am trying to convert the following VB.Net code to C# and I am getting the
compiler error:
VB.NET code:
'' Create a delegate that will be called asynchronously
Private Delegate Function GetTextData(ByVal DatabaseName As String, _ByVal
ProcName As String)
Dim async As New GetTextData(Add... more >>
How to create templates for Visual Studio .NET.
Posted by Laser Lu at 5/31/2004 6:16:04 PM
In VB6, we could save some files as templates for reuse in the future
I wonder if there is similar approachs in VS.net?... more >>
file access problem
Posted by Saso Zagoranski at 5/31/2004 5:47:26 PM
Hi!
Here is what I'm trying to do:
I have created a UserControl named PictureView. It holds all the images
in one directory in the Bitmap[] images variable.
The selected image is displayed in the PictureBox control.
Here is how it works.
1. I get all the filenames of the images in the ... more >>
Operator overloading
Posted by Sam at 5/31/2004 5:21:02 PM
I want to overload the + operator for ArrayList for adding elements
public static int operator +(ArrayList l, Object o)
return (l.Add(o))
First I have discovered that the return value cannot be void and if I change it to something like int, I have to always write like this
int i = list + 3... more >>
HttpChannel
Posted by David at 5/31/2004 4:45:06 PM
What is the namespace of HttpChannel type in VS.NET 2003?
I'm using System.Runtime.Remoting.Channels.Http, but there is error while
compiling.
Error Message:
"The type or namespace name 'http' does not exist in the class or namespace"
... more >>
HELPPPPP
Posted by bladeone NO[at]SPAM katamail.com at 5/31/2004 4:44:41 PM
Hello NG,
I want to know if there is a c# method that allow me to post some
values to an HTML page.
What I mean is that: I have a c# form with some textboxs and a button.
what i want to do is: fill in these textboxs, click the button and
send the values to a dynamic web page using the post meth... more >>
Memory issues
Posted by Bruno Rodrigues at 5/31/2004 4:36:50 PM
Hi,
I'm having several memory leaks in my Windows Form (C#). Testing, I
found a curious thing:
Put a ListView control in a Windows Form, run the project and start the
TaskManager. Each time you focus the form or pass the mouse in/out the
ListView, the memory used by the application ... more >>
Performance Counters
Posted by Jim Heavey at 5/31/2004 4:31:58 PM
I am messing around with performance counters to try to learn how to work
with them.
In VS.Net, I can see that there exist a Performance Counter with a
"CategoryName" of "Browser".
My application allows the user to key in the "CategoryName" and then if it
is found, builds a ListView with... more >>
specified cast not valid
Posted by frazer at 5/31/2004 4:23:11 PM
Form1.WindowState = (FormWindowState) rows[1]["AttributeValue"];
hi i get the following error when i try to do the above . why is taht?
thnx
... more >>
Global application variables in WinForms app
Posted by David McCormack at 5/31/2004 3:44:47 PM
I have a small project that I'm writing to help me learn C# and the .Net
Framework. This project is a WinForms program with multiple forms that
accesses MSDE. I've got most of it done but I've hit a slight brick wall.
Does anyone have any recommended strategies for dealing with application
... more >>
Combo box in datagrid
Posted by Cat at 5/31/2004 3:26:14 PM
How do I set a column in a datagrid as a combo box? Currently ploughing
through the .net help files but can't find anything on this topic.
Cat
... more >>
Serialization problem...
Posted by Jeti at 5/31/2004 3:08:31 PM
I try, but i cant serialize Color field when serialiazing class that
contains it! How to do it?
Heres how i do it:
//Class to serialize
public class Colors
{
public Color Back;
public int LineWidth;
public void SetToDefault ()
{
Back = Color.FromArgb (255, 192, 192);
L... more >>
Refresh a datagrid
Posted by Cat at 5/31/2004 3:05:05 PM
If you have a datagrid with an underlying dataset and rows are added to the
dataset during a program run, how do you get the datagrid to update itself
to repflect the changes in the underlying dataset? I've tried Update() and
Refresh() but these don't seem to work. Only thing that works is rebind... more >>
Inconsistent access levels???
Posted by pdavis68 NO[at]SPAM hotmail.com at 5/31/2004 2:54:07 PM
I've run into something that doesn't make a lot of sense and I'd appreciate
if someone could explain the logic.
Let's say I have:
internal interface MyInterface
{
void foo();
}
internal class MyClass : MyInterface
{
internal void foo()
{
Bar();
}
}
I get an error ... more >>
file attributes from a 'web file'
Posted by Ram Baruch at 5/31/2004 2:38:34 PM
Hi,
Does somebody know how to obtain the file attributes of a file that is on a
website? Specifically, I need to know when it was
created.
For example, this file:
http://www.metalix-cad-cam.com/Downloads/SP/MACHINES.INF
Regards,
Ram.
... more >>
Handling Group of similar objects in C# ?
Posted by ree at 5/31/2004 2:37:24 PM
I am new to C#
in C++ you can use vectors to handle a unknown quantity of set of objects.
But in C# not sure what to use.
As I tried arraylists but they can hold a variety of objects. So when I try
to use functions that go through (eg. for loop) of group objects (eg. Cars)
and get their... more >>
how to get .net designer frame articles?
Posted by °Ë´óɽÈË at 5/31/2004 2:09:12 PM
I'm studying the designer in .net frame, and met many new things such as
System.Windows.Forms.DesignerFrame,
System.Windows.Forms.FormDocumentDesigner, but I can't find anything about
it in MSDN. Do you know how to get the article about them, how does the .net
Frame Designer work, and how to dev... more >>
conversion from java to c#
Posted by daniel at 5/31/2004 1:16:03 PM
I am working with a project which converts a java based application into C#. I noticed that when I converted the java file, .net throws a SupportClass for me and since there is no List type in C#, SupportClass tries to use ListCollectionSupport instead. This is working great, except one situation,... more >>
"Stylesheets" in win forms
Posted by Jason at 5/31/2004 12:42:53 PM
Hi all
This may seems like an od subject.
I would like to know if you can apply some sort of "stylesheet" to winforms?
like in ASP.NET you can define .css files to determine your look and feel of
your HTML web pages. the obvious advantage of using HTML stylesheets is that
all your buttons, dr... more >>
how to destroy array
Posted by Sarfraz Hooda at 5/31/2004 12:00:51 PM
Hi,
I have created an array of Objects in a collection. I was wondering is there
a way to destroy the array to free up the space in the memory ? or they are
automatically destroyed and garbagge collected by .Net framework?
Sarfraz
... more >>
Richtextbox
Posted by John Baro at 5/31/2004 11:58:28 AM
1) When you select the "absolute" end of a richtextbox (go to last
character, hold down "shift" and click right keyboard button), the font
changes to the default of the richtextbox.
How can I set this so that when the user changes font, if its the end of the
rtb, this font changes as well?
2)... more >>
TreeView strange behaviour how to.
Posted by Jacek Jurkowski at 5/31/2004 11:50:00 AM
TreeView Control:
If I click using left mouse button on a TreeNode it gets blue
and SelectedNodeproperty is Changing - Ok. But if I click on
it using right mouse button node is getting blue but SelectedNode
propery is not changing. So user think's trat he is on node f.e. 3
cause it's color is... more >>
Simple / stupid string question
Posted by John Baro at 5/31/2004 11:39:24 AM
I have a richtextbox which I want the "literal" rtf of.
richtextbox.rtf returns
{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang1033\\uc1 }\r\n\0
when i put this into a string I get
"{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang1033\\uc1 }\r\n\0"
I want this to be
@"{\\rtf1\\ansi\\ansicpg1252\\deff0\... more >>
KeyPress Question
Posted by meh at 5/31/2004 11:36:19 AM
This should wotk I think but its not trapping the Insert or Delete key???
Do I not have this written correctly?
if (e.KeyCode == Keys.Insert)
{
MessageBox.Show("Pressed " + e.KeyCode);
if (e.Control)
{
MessageBox.Show("Pressed " + e.KeyCode);
}
else if (e... more >>
no value given for one or more required parameters
Posted by Grant at 5/31/2004 11:35:47 AM
Hi there,
I have taken over this project from someone thats left the company. There
were about 5 other projects included in the solution explorer and every time
I opened the project, something was trying to connect to a SQL server
machine that no longer exists. Because this was taking so lo... more >>
editor
Posted by Bill at 5/31/2004 11:16:50 AM
If I open my asp's file with .net editor,it will open a development
environment widow.If I open another file,it will open the 2nd winow.I want
opening two or more files with the same window,only open the editor one
time.
How to do I can?
Thanks!
... more >>
Integrate C code with C#
Posted by Alison at 5/31/2004 11:16:04 AM
Hello, All
I am new to improving user interface. I have some questions for all the experts here who could help me out in this aspect.
Now, I am in the early stage of developing a new user inteface for a computation intensive application program which has a character-based user interface now. The ... more >>
Object initialization in C# thread - unexplained behaviour
Posted by pereira.ric NO[at]SPAM mail.telepac.pt at 5/31/2004 11:13:08 AM
Hello all,
I have a C# class (in this example, called A) that, in its
constructor, starts a thread with a method of its own. That thread
will be used to continuously check for one of its object's state and
generate classe's A events "Connected" and "Disconnected".
It looks something like th... more >>
Retrieving SqlCommand parameter values
Posted by khanine NO[at]SPAM hotmail.com at 5/31/2004 10:51:50 AM
Hi All
Trying to retrieve the value of the Sqlcommand' parameter as integer.
Here is how I declare it:
SqlParameter paramId = command.Parameters.Add("@id", SqlDbType.Int);
paramId.Direction = ParameterDirection.InputOutput;
paramId.Value = id;
......
The only method of the SqlParame... more >>
C# style Inheritance and Interfaces
Posted by Flavian Mwasi at 5/31/2004 10:14:41 AM
I'm a novice programmer just beginning to learn the new C# language.
I'm a bit confused about the way Inheritance and Interfaces are constructed
in C#. The following examples may help clarify my confusion:
interface IControl
{
void Paint();
}
interface ITextB... more >>
SQL Server timeout error while executing stored procedure
Posted by Ville Huovinen at 5/31/2004 10:06:15 AM
Platform: Windows 2003 Server (MS SQL Server 2003 SP3)
Language: C#
Problem:
My stored procedures times out randomly, some proces works fine when using
them from C#, and some generate SqlException which states that the server
has timed out. The problem isn't in server, neither in stored pro... more >>
Extended ASCII Characters problem for sockets
Posted by Bülent Üstün at 5/31/2004 9:40:43 AM
Hi,
im trying to upload somefiles using sockets to a FTP site.
But i've some problems with extended ascii characters.
When i try "MKD bülent" the created folder is "blent".
The directory name is kept in a string.
What should i convert its encoding to?
If you have any idea to solve this, ple... more >>
Convert Jpg => Wbmp ?
Posted by Genival Carvalho at 5/31/2004 9:31:27 AM
I need a function or component ( free - with source if possible ) to convert
images like BMP, JPG, etc into wbmp.
ThankZ...
Genival - Sao Paulo - BR
... more >>
Combo Box
Posted by Qumer Mumtaz at 5/31/2004 9:21:01 AM
H
How I change the appearence or boarder style of a combo box control in C#?... more >>
Best way to get temp directory without PInvoke?
Posted by Charlie Calvert at 5/31/2004 9:15:48 AM
Staying in managed code, what is the best way to get the temp directory
in C# .NET programming? I'm currently using this:
public static String GetTempDir()
{
return Environment.GetEnvironmentVariable("TEMP");
}
I wonder, is there a better solution? This one feels a little system and
OS... more >>
zooming a custom control - layout custom controls in grid
Posted by john.menke NO[at]SPAM eagleinfosystems.com at 5/31/2004 8:38:44 AM
I am new to .Net and have a requirements for a project that we zoom a
grid control when it's clicked. This grid will contain a yellow pages
like listing and be displayed on a form with other grids in a table
like format.
Does the grid control support zoom?
Can anyone suggest a way for me t... more >>
C#-client using MS Word ?
Posted by Chris at 5/31/2004 8:31:17 AM
Hi,
everything works apart from the last line :-((
rng.Value2.ToString()
An exception is thrown : "Old format or invalid type library"
It gets compiled though (so he recognizes the property 'Value2').
So I suppose I'm using a incompatible type lib.
I'm using Excel 2002 : Excel 10.0 O... more >>
MonthCalendar and PDA
Posted by webmaster NO[at]SPAM lemma.de at 5/31/2004 6:57:58 AM
hi,
i'm using ms visual studio .net 2003. i created a
new c#-project "smart device application" for
pocket pc.
next, i wanted to insert "windows forms"
"monthcalendar", but in the toolbox,
section "windows forms", every item is
deactivated (shadowed).
does anybody know, how i can ac... more >>
Multithreading
Posted by Michael C at 5/31/2004 4:59:57 AM
Hello
Can someone please tell me what I'm doing wrong? I'm writing an application
that should be using callbacks to perform asynchronous calls to the Win32
API. Problem is it never reaches my callback function. Any feedback is
appreciated. Also, any references to websites with examples of ... more >>
Data Grid Problem
Posted by Qumer Mumtaz at 5/31/2004 4:46:02 AM
h
I am using a datagrid control. I am displaying some controls like Date Time picker, combo boxes, ect in some cells.When a particuler cell is got focus the control is displayed and user select the value from combo or from date time picker control.When the focus is last the control disappeares and ... more >>
WMI for Win32_Volume not working
Posted by pdavis68 NO[at]SPAM hotmail.com at 5/31/2004 4:09:42 AM
I'm trying to execute this simple query:
ObjectQuery objectQuery = new ObjectQuery("Select * FROM Win32_Volume");
ManagementObjectSearcher searcher =
new ManagementObjectSearcher(objectQuery);
ManagementObjectCollection moc = searcher.Get();
try
{
foreach (ManagementObje... more >>
array assignment
Posted by edisol50 NO[at]SPAM abv.bg at 5/31/2004 4:02:58 AM
Hi.
I need help.
How can I assign one array to another by reference from current position?
(I prefer managed code)
For example in C
int a[10];int b[5];
....
a=&b[5];
Thanks in advance!... more >>
indexer
Posted by Oren at 5/31/2004 3:36:02 AM
hi
I have created a class with a simple indexer
what is the syntax for adding the function "Remove"
...
myClass.colors["a"]=Color.Black; // WORKS O
myClass.colors["black"].Remove(); // ??
....
ColorCollection _colors=new ColorCollection()
public ColorCollection Color
ge
{
return _... more >>
Adding a form and service to console app project.
Posted by Clifton Griffin at 5/31/2004 3:17:33 AM
Ok, I have a proxy server written in c#.
Because I'm maintaning two versions (a console application for debugging and
a windows service for deployment) I got the console application working,
then I added a service and wrote the service.
However, I can't seem to figure out a way to actually c... more >>
Am I crazy or...
Posted by Chris at 5/31/2004 3:00:44 AM
I don't understand why the ArrayList's Add() method is public virtual, but
the array of items that the ArrayList uses is private (the variable is
'object[] _items' in the ArrayList). This makes it impossible to re-write
the Add() method in a class that derives from ArrayList. I have this type
... more >>
PictureBox problem
Posted by James Dean at 5/31/2004 2:29:29 AM
I am drawing in a picturebox and am having some problems. I display
outputted images in the picturebox. If the image is too big for the
client area then i have scrollbars. The problem is that once i draw a
bitmap to the picturebox I have trouble displaying graphics inside the
picturebox. I
p... more >>
C# Inheritance and Interfaces
Posted by Flavian Musyoka Mwasi at 5/31/2004 12:08:56 AM
I'm a novice programmer just beginning to learn the new C#
language.
I'm a bit confused about the way Inheritance and
Interfaces are constructed in C#. The following examples
may help clarify my confusion:
interface IControl
{
void Paint();
}
interface ITextBox: IControl
{
vo... more >>
|