all groups > c# > september 2003 > threads for monday september 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
Excel object in C#
Posted by Bart Filipski at 9/29/2003 11:54:03 PM
Hello,
Does anyone know how looks the syntax of SORT method in
Excel object ( i mean precisely in
Excel.Workbook.Worksheet.Cells.Sort(...) ) I have tryied
in VBA and it works great, but I don't know how to build a
Keys for this method in C# and how to pass this arguments
in this method. A... more >>
Making an executable out of a project
Posted by VM at 9/29/2003 10:29:07 PM
I'm trying to make an executable that contains as few files as possible.
What would I need to do that?
The client really wants one file (the EXE file) that contains everything -so
they can move that file from one PC to another very easilty- but I don't
know if that's really possible.
I tried co... more >>
C# Memory Leaks
Posted by Valerie Hough at 9/29/2003 10:03:42 PM
Currently our client runs one particular C# .NET executable, and after a few
hours performance slows to a crawl. It would be very useful for me to be
able to rule in (or out) the possibility that this is a result of memory
leakage.
Can someone point me to an article that discusses how bad prog... more >>
SEARCH&REPLACE in textBox
Posted by Tomomichi Amano at 9/29/2003 9:56:55 PM
Could some one tell me how I can seach and replace only one word in a
textBox (THE FIRST WORD THAT COMES AFTER THE CURSOR). I already know how to
replace ALL , but I don't know how to REPLACE one, and how to SEARCH one and
select that point.
Thank in advance
... more >>
Sample Code: Blocking Queue
Posted by zane NO[at]SPAM abderaware.com at 9/29/2003 9:39:57 PM
BlockingQueue implements a single-writer single-reader queue, something I find
myself needing frequently when working with multiple threads and internet
protocols.
After an instance of BlockingQueue is created the reader can invoke Dequeue and
will be blocked until either there is some objec... more >>
How do I ... Make the Calendar pop up over other controls
Posted by Charles at 9/29/2003 9:08:49 PM
Hello,
I would like for my users to have a calendar control
only when needed. IE button click for the control to
appear and then once the date is selected. Populate a text
box and the calendar control then is invisible.
How do I make the calendar control pop up over other
control in a ... more >>
C# equivalent to Win32 API 'LockWindowUpdate'?
Posted by Dan H. at 9/29/2003 9:03:37 PM
Hello,
I've been having a pickle of time trying to find any information about the
following. The Win32 API has a function called 'LockWindowUpdate' which, if
I'm not mistaken, prohibits all painting of the window including children
controls until unlocked. The only thing that I can find that... more >>
Internet Filter by C# Code
Posted by joey.powell NO[at]SPAM goldcoinc.com at 9/29/2003 8:48:11 PM
I would like to know if anyone has any information on how to write C#
code to "intercept" http traffic to and from websites.
Not that I'm trying to re-invent the wheel here, but I am having a
very hard time in finding some out-of-the box software to do what I
consider to be something relativel... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
VB Mid() funtion in C#
Posted by Tom J (Darth) at 9/29/2003 8:11:25 PM
Is there by chance a function in C# that can be used just like the built-in
Mid(str,z,z) in VB?
... more >>
Memory Leaks in C#
Posted by Valerie Hough at 9/29/2003 8:01:19 PM
Currently our client runs one particular C# .NET executable, and after a few
hours performance slows to a crawl. It would be very useful for me to be
able to rule in (or out) the possibility that it is a result of memory
leakage.
Can someone point me to an article that discusses how bad progra... more >>
Integer Calculator Form
Posted by Corey Dyke at 9/29/2003 7:09:47 PM
Hi, I'm doing a lab for my C# course. This is the jist of it:
Allow the user to enter 2 integer in seperate text boxes, then
give them the choice of 4 buttons: +, -, * and /
The answer should display in a seperate textbox upon the user
clicking one of the 4 buttons.
I have it all done, I j... more >>
Dislpaying values like 01,02 ---10 in a combobox
Posted by Vinitha at 9/29/2003 6:49:29 PM
Hi,
Values to be displayed in a combobox(it should be in a loop).
01
02
03
---
--
10.
how 'll i display these values in a combobox
... more >>
How to format datetime?
Posted by Vinitha at 9/29/2003 6:45:42 PM
Hi,
I 've ("9/27/2003 12:11:31 PM") this value in database .
i need to get only this value ("9/27/2003 " ) .How will i format it to get
this value?
It will be helpful if some one could point me to some code sample for the
same
thank you in advance
... more >>
Automatic build number broken?
Posted by David Lindgren at 9/29/2003 6:44:17 PM
Hi.
I'm using automatic increase on the assembly build number. Only problem is
it's doesn't increase. Anyone know what might cause this?
In AssemblyInfo.cs:
[assembly: AssemblyVersion("1.0.*")]
Thanks!
/David.
... more >>
Threading problem.
Posted by muscha at 9/29/2003 6:09:00 PM
Hi All,
I'm having a bit of problem with threading, when I first call Start() on my
code the thread work, I call Stop() and it stopped, but when I call Start()
again my thread is not started. Although in the debugger I can see that it
went to the Start() method and creating the thread again.
... more >>
Server Variables
Posted by Charles Stanley at 9/29/2003 6:00:37 PM
Hi All,
In a WebForm, I'm trying to assign a variable, in this case a label, the IP
address of the user.
The code goes something like this:
Label6.Text = Request.ServerVariables("REMOTE_ADDR");
When compiling this, I get a message telling me that this denotes a property
where a met... more >>
Adding resources to an assembly
Posted by Andreas_HÃ¥kansson at 9/29/2003 5:21:25 PM
Is it possible, with the use of code, to add a resource to an assembly? =
Perhaps
using the ResourceWriter ? Basiclly I want to do the equivalent of =
adding a file
to my project and making it an "embedded resource", but with the help of =
code
on another assembly.
--=20
ANDREAS H=C5KANSSO... more >>
Handling Exception
Posted by Franz at 9/29/2003 5:21:09 PM
try
{
}
catch (ExceptionA A)
{
XXXXXXXXXXXXX
}
catch (ExceptionB B)
{
XXXXXXXXXXXXX
}
catch (Exception)
{
YYYYYYYYYYYYY
}
Actually the codes of hanlding both Exception A and B are same. I want to
put it in a single catch block. Although I know that I can gro... more >>
Scroll to bottom with richtextbox?
Posted by Lasse Edsvik at 9/29/2003 4:52:16 PM
Hello
I was wondering if you guys could tell me to scroll the richtextbox's
content to bottom if there it has enough text to make a scroll that is.
everytime i append text to it i would like it to scroll to bottom, how is
that done?
/Lasse
... more >>
Determing the ordinal position of items in ListBox
Posted by SamIAm at 9/29/2003 4:41:40 PM
Hi
I have a ListBox called lstListOfStuff
I want to get the ordinal position of a ListItem so that I can insert a new
ListItem below it. How do I do this? I cannot find any members to give me
the index position of an item?
Thanks,
S
... more >>
Problems reading StandardOutput as binary
Posted by islandlogic NO[at]SPAM hotmail.com at 9/29/2003 4:11:50 PM
I have been tryning to make some of our C# programs talk to some perl
programs. These perl jewels output in binary. I have been trying to
use Process.StandardOutput to read the output from the perl programs.
I am able to read the output if it is ASCII (or some char[] of some
sort). But the ... more >>
How to display values in Dropdowncombo from a dataset or dataview object?
Posted by Vinitha at 9/29/2003 3:09:26 PM
I've given code like this ,
SqlConnection cnn = new qlConnection("initial talog=vin;uid=sa;pwd=;");
cnn.Open();
string strsql="select * from tblQualification";
SqlCommand cmd=new SqlCommand(strsql,cnn);
/// SqlDataReader rsreader=cmd.ExecuteReader();
SqlDataAdapter dadapt=n... more >>
Help: Need to cause DataGrid row to "flush" contents
Posted by Junkguy at 9/29/2003 2:57:49 PM
I need some help programmatically causing a row in a DataGrid to "flush"
its contents to its bound data (in Visual Studio 6 using Windows Forms
with C#).
My issue is I want to send an update to a database from a menu command
while the user is editing a DataGrid. This is unusual in regard... more >>
weird keypress problem
Posted by Lasse Edsvik at 9/29/2003 2:33:51 PM
Hello
I have this code in my project and it doesnt work, what might be wrong?
private void Textbox1_KeyPress(object sender,
System.Windows.Forms.KeyPressEventArgs e)
{
if (e.KeyChar == '\n')
{
Textbox2.Text = "KKK";
Textbox1.Text = "";
}
}
nothing happens :( no e... more >>
DataBinding (one to one relationship)
Posted by Keith Kroculick at 9/29/2003 1:58:01 PM
Hello,
I have a small Access database with 5 tables. I have
created a form in C# that I would like to bind to 2 tables
(Contacts & Categories). The categories table is more or
less a lookup table. Can anyone give me a small example on
how to bind 2 controls (textbox and combobox) to 2
d... more >>
Windows App: [ConfigurationSettings.AppSettings]
Posted by Filippo at 9/29/2003 1:45:07 PM
Hi there,
I am writing a Windows App and need a Configuration file.
I wonder if I can use the WEB.CONFIG file to store my values.
I also wonder if I can use the ConfigurationSettings.AppSettings and if so,
what is the file name that it automatically look for.
Thanks,
Filippo
... more >>
Send Email from a Windows App
Posted by Filippo at 9/29/2003 1:26:45 PM
Hi there,
I have a simple Windows App that needs to send an email.
If I were using ASP.NET, I would use the System.Web.Mail
What can I use in the Windows App Environment?
I don't want to purchase any 3rd party, quite obviously :)
Thanks,
F.
... more >>
Windows Service & NotifyIcon
Posted by Artur Kowalski at 9/29/2003 1:10:57 PM
I have a NotifyIcon in my Windows Service project and I am trying to
add a ContextMenu to this NotifyIcon or use some of the mouse events.
Everything isn't working. I think so base class of the service
System.ServiceProcess.ServiceBase don't catchWindows messages like mouse or
timer messages. ... more >>
Clearing screen
Posted by raghavendra at 9/29/2003 12:45:13 PM
Hi,
i am facing problem clearing screen in console application.
As, in C++ we have clrscr();
Is? their any similar type of function is avaliable..
Raghavendra...
... more >>
textbox control
Posted by kidzero at 9/29/2003 12:26:36 PM
Hello,
i have text box control in from(windows form). Now i want that this textbox
could accept only numeric values. In MFC editbox had special option (number)
and everything was well, but in C# i can't find anything like that.
Programming language C#
Thank you.
... more >>
foreach on an object[]
Posted by William Stacey at 9/29/2003 11:49:20 AM
Can you use a foreach to set the elements of an object[] to null? This does
not work as o is read-only. Is only way to use a for loop?
object[] buffer = new object[3];
//...fill buffer.
foreach (object o in buffer)
{
o = null;
}
--
William Stacey
... more >>
Binding Grid
Posted by DataGridUser at 9/29/2003 11:41:54 AM
Hello all,
I am using a DataGrid, How can i bind a DataGrid to a
WebService which returns DataSet.
Thanks... more >>
Circular Buffer Question
Posted by William Stacey at 9/29/2003 11:26:40 AM
Working with implementing a circular buffer for a producer/consumer deal.
Have not done one in a while. The following seems to work. However, I
remember and have seen other implementation that make the buffer 1 more then
the needed capacity so that a full buffer and an empty buffer can be
diff... more >>
Hex values
Posted by Stefan at 9/29/2003 10:57:21 AM
Hi NG
In vb you can declare const with the values &HFFFF.
What datatype is it in c#???
... more >>
Automatic resizing of controls inside forms
Posted by Vaughn at 9/29/2003 10:52:01 AM
Where can I get information on automatic resizing of controls when the form
changes size (eg. if I dynamically increase the size of my form, the
listview inside should automatically increase in size ).
Thanks.
... more >>
Error using Request and Response
Posted by Reena at 9/29/2003 10:08:55 AM
Hi,
Working on .NET 2003. Using C# as server code.
I have created a class with following code...
using System;
using System.Data.OracleClient;
using System.Web;
using System.Web.SessionState;
namespace RADWebV5.RADAsp.Class
{
public static string LogOn(string UserID, string Passw... more >>
openFileDialog problem
Posted by Cory at 9/29/2003 10:08:33 AM
I have a very strange problem with my C# code. I trying to
add a file to my dataset. I use a openFileDialog object to
get my file. I put the file pathname in a textbox. Then i
click my upload button which adds my file to the dataset
and then writes the dataset to a XML file(ds.writeXML
("te... more >>
How to use GetGlyphOutline with C# ?
Posted by Alexandre CHATTON at 9/29/2003 9:59:09 AM
Hello,
I'm trying to integrate the GetGlyphOutline API in a C#
project. My algorithm is working fine with VB6, but I still have problem to
make the appropriate
definitions using C#. Anybody has a solution ?
Declares:
[StructLayout(LayoutKind.Sequential)]
public struct FIXED
{
public i... more >>
How can I include documentation xml file with my DLL?
Posted by Sasha at 9/29/2003 9:51:22 AM
Hi,
How do I include my xml doc file into my dll, so when I copy my dll into
a different folder, I still get the ToolTip docs?
Thanks,
Sasha
... more >>
How to diaplay values in HTML tables IN code behind
Posted by Vinitha at 9/29/2003 8:27:17 AM
I have been trying to display a resultset in atable format using the table
object from the code behind page. Can anyone suggest whether i am in the
right direction or do we have any other approach for this?
It will be helpful if some one could point me to some code sample for the
same
thank... more >>
How do you move a comma delimited text file with 3 fields into a SQL 2000 table
Posted by Kenneth Koski at 9/29/2003 8:20:01 AM
Hello All,
I have a comma delimited text file, which I would like to move into a
SQL 2000 table . I created a DTS package in SQL Server and saved it as a
VB.bas . I am writting the code in C# and I though that I might be able
to change a few lines and keep the bulk of the code. However , it ... more >>
Dispose calling GC.Collect? Framework 1.0
Posted by Eric Cadwell at 9/29/2003 7:37:23 AM
Does anyone know of any case in which the CLR explicitly calls GC.Collect? I
have a form that when unloaded, shows # of induced GC's incremented by 5.
This is killing performance.
I have a feeling that it's related to calling Dispose on a particular
control class like DataGrid, ListView, etc.
... more >>
Question about color
Posted by Patrick De Ridder at 9/29/2003 7:25:32 AM
string fill = "Color.Salmon"
textBox1.BackColor = fill;
this doesn't work. What should I write after the = ?
(Please note that I am not wanting to write textBox1.
BackColor = Color.Salmon; I am wanting to fill some text boxes in a
loop and am reading the colors from a file.)
Many thanks.... more >>
About Struct in CSharp
Posted by Jamil Ahmed at 9/29/2003 7:15:30 AM
I have two questions about Structure in CSharp:
1. Why we can not override the Default Constructor in Structure.
2. Why we can not initialize the Fields in Structure.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!... more >>
Adding rows to a DataGrid in a web form
Posted by Clayton Hamilton at 9/29/2003 7:15:26 AM
I have a DataGrid on a webform bound to a Datasource and can
successfully use <ItemTemplate> to create edit/update/cancel
functionality for user maintenance of data. I use separate logic to
delete a row. Everything works just fine.
BUT
I would like to add a button to (for example) the Dat... more >>
Controlling printer device
Posted by Stefan at 9/29/2003 7:14:51 AM
Hi NG
How can I control the default printer in c#?
... more >>
which reports i can use?
Posted by Michael Schindler at 9/29/2003 6:54:29 AM
I need a repport in my windows c# Apllication.
Wich Reports i can use? I'm a little bit confuse with all reports
possibilities.
I have here post a example as my report would have to look.
Have anywhere a idea or perhaps a source code example in this kind.
Thanks
Michael
For exam... more >>
Using webbrowser control.
Posted by luckybee NO[at]SPAM indiatimes.com at 9/29/2003 5:59:18 AM
I m using webbrowser control in my C# app. My system has IE 6.0. The
application is crashing on other machine which has IE 5.0. Any idea
why? Any kind of help will be a gr8 favor plz...........anyone.
fast...!... more >>
readyState never complete when using mshtml and UCOMIPersistFile to load HTML from file
Posted by shulmag NO[at]SPAM hotmail.com at 9/29/2003 3:02:05 AM
Hi.
I am trying to load an HTML file into htmlDoc using c#. I see that the
document does not load, but I can not understand where am I wrong. Any
help ?
My Code:
class CFileHandler{
public delegate void
HTMLDocumentEvents2_onreadystatechangeEventHandler(object
sender,EventArgs e)
... more >>
Error in Gyro?
Posted by Ole Andre Karlson at 9/29/2003 2:26:38 AM
hi
Still struggeling with Gyro... :)
how can this be correct?
T t = null;
gives a compile error because the compiler thinks T is a
value type.
while the test:
Type type = typeof(T);
Console.WriteLine(type.IsValueType);
gives false..
I suppose it has to do with what is known at c... more >>
Invoke, threads, and exceptions
Posted by chris.soulsby NO[at]SPAM sysinx.com at 9/29/2003 2:10:11 AM
If an exception is raised in a non-main thread then it is not handled.
To get around this I created method that would use the invoke method
on the main form to raise this exception on the main thread. For
example:
this.Invoke(new InvokeDelegate(this.ThreadExceptionHandler),new
object[]{o});... more >>
Win Service & Timer
Posted by Rajesh Abraham at 9/29/2003 1:28:30 AM
I have a timer in my Windows Service project and I am
trying to do some processing on the tick event of the
timer but this event does not seesms to be raised. Below
is some code segment. Any Idea?
Thanks,
Rajesh Abraham
-----Code Below------
private void InitializeComponent()
{
... more >>
visual studio evalution urgent
Posted by smith flyers at 9/29/2003 1:24:54 AM
hi, i did read back newgroups archive, tried search engines. Can anyone
provide me with link to download visual studio net evalution ? I know is
possible to purchase directly from microsoft. But i need it urgently right
now for accademic purpose. I would appriciate if anyone would willing to
sen... more >>
Syntax highlighter or parser component (for VB, C#, SQL, etc)
Posted by Tim Conner at 9/29/2003 12:07:40 AM
Hi,
I am writing an application in C# that needs a memo control with the
capability of highlight certain syntax of programming languages, very
similar to what the Vs.Net does, or any language editor does. This should be
the type of control that can accepts different inputs, since I need to
... more >>
Can't XmlSerializer serialize a class with a Color field?
Posted by qrli at 9/29/2003 12:05:44 AM
public class ToBeSerialized {
// This field is alway ignored by XmlSerializer
public Color color;
}
How can I make that field serialized correctly?
thx in advance!... more >>
people search and email address
Posted by Kumar at 9/29/2003 12:01:34 AM
I need to retrieve email addresses of users from the AD store given the
domain\usernames, any guide to directoryservices and or sample code is
appreciated
Thanks
... more >>
|