all groups > c# > august 2005 > threads for saturday august 20
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
PEEK and READ again
Posted by PHead at 8/20/2005 7:41:40 PM
Ive searched usenet before, with nothing, so Ill go ahead and ask...
Does anyone know how to read from the keyboard buffer from a console
app, *without* blocking? I know about the PInvoke method and
SetConsoleMode to char, which I am doing, but there is still a problem.
What I need to do is i... more >>
Understanding socket.Send() with TCP and confirmation
Posted by Manfred Braun at 8/20/2005 7:30:26 PM
Hi All,
I am trying to understand the blocking method socket.Send().
The call blocks as expected, but does this mean, it returnes after the
underlying TCP layer got a confirmation, that the send data was received by
the socket on the remote end? Can I count on that? Do I understand TCP
correc... more >>
good books for design patterns?
Posted by John Salerno at 8/20/2005 6:16:35 PM
Here are a few I'm considering:
Design Patterns Explained : A New Perspective on Object-Oriented Design
(2nd Edition) (Software Patterns Series) by Alan Shalloway
Design Patterns C# by Steven John Metsker
Design Patterns by Erich Gamma
Head First Design Patterns by Elisabeth Freema... more >>
can i control the literal position?
Posted by dale zhang at 8/20/2005 1:50:02 PM
Hi,
I have a web form page. it has gridlayout and a table at top like a
template. When I have the literal or requiredfieldvalidator ErrorMsg
displayed, they are all over the page.
Is there any way to control their locations?
Thanks. -dale
PS: The html code is below:
<%@ Page languag... more >>
GetString and byte data
Posted by scott_hutter NO[at]SPAM yahoo.com at 8/20/2005 11:35:27 AM
Given the following:
string x = System.Text.Encoding.Default.GetString(buffer);
x = x.Replace("\r\n", "\r");
If the buffer contains 13 and 10 (2 bytes), can someone please tell me
why the second line cant find and replace? \r\n is supposed to be
equivalent to 13,10 arent they? Im trying to... more >>
Status bar for web browser
Posted by Alvo von Cossel I at 8/20/2005 9:20:01 AM
hi,
i have a small browser. in IE, when you hover over a link, the text in the
status bar changes to the URL. how do i do that? and when you type in some
text into the address bar and press enter, the go button is clicked. how do i
do that instead of having to lose focus from the combobox a... more >>
XML DataSet Vs.XmlTextReader ... Which to use
Posted by Maziar Aflatoun at 8/20/2005 8:53:47 AM
Hi,
I have a multi-level complex XML that I like to process and store in the
database. I'm comfortable with using DataSet and then reading the tables
(XML is parsed into 7 tables in my case) and processing the data. However,
just to become familar with XmlTextReader, I've done the same thi... more >>
Handling a thread which has "Sleep()" function in it
Posted by kiplring NO[at]SPAM hanmail.net at 8/20/2005 3:45:31 AM
Suppose a function which has Sleep() method in it. And I want to
recycle it. I made two buttons which call "Resume()" and "Suspend()".
But It doesn't work. The state of thread "t" will be "WaitSleepJoin"
when it runs because the function it calls - "GenerateEvents()" has
"Sleep()" function.
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Asynchronous problem
Posted by bernardpace NO[at]SPAM yahoo.com at 8/20/2005 1:51:05 AM
Hi,
I am having the following situation. The snippet of algorithm shown is
being executed on a new thread.
while (....)
{
.....
.....
myDataGrid.DataSource = myDataTable;
myDataGrid.Refresh();
// Here I need to update some windows components, mainly a datagrid
// Updat... more >>
The Command Prompt during my Windows Forms Application
Posted by Visually Seen # at 8/20/2005 1:36:40 AM
Hey everyone,
Previously, about a month ago I posted a question asking how to remove
the command prompt that always appeared when I ran my Windows Forms
Application EXE.
Well, that was visually and all you hadd to do was to go to the output
type and set it to windows application.
How do I ... more >>
Problem with a label!
Posted by Visually Seen # at 8/20/2005 1:34:31 AM
Hey everyone,
If you still don't know, I manually create C# windows forms using one
huge notepad file.
So, to create a label, you start with:
Label l;
l = new Label();
l.Text = "This is a label";
this.Controls.Add(l);
With longer pieces of text, the label automatically has a new line... more >>
Object "Literals"
Posted by Sue & Bill at 8/20/2005 1:27:18 AM
I have:
Rectangle[] rects = new Rectangle[10000];
I want to initialize the values of rects as follows:
Option A:
========
for (int i=0; i<rects.Length; i++)
{
rects[i].X = 0;
rects[i].Y = 0;
rects[i].Size.Width = 100;
rects[i].Size.Height = 20;
}
(By the way, rects[i].S... more >>
Thread Safety - WinForms
Posted by GroZZleR at 8/20/2005 1:19:38 AM
Hey all,
I'm threading newbie, I've never attempted it before. I've got a
button that when clicked starts up a thread to process some files.
This keeps my GUI responsive and gets the tasks done.
Here's an example of what I'm doing:
====================================
private void button1... more >>
The Starting Position
Posted by Visually Seen # at 8/20/2005 12:12:56 AM
Hello everyone,
I'm manually creating my windows forms.
And that means going into Notepad, and writing the designer.cs and
class.cs and static void Main(), all by myself.
I only have the .NET Framework SDK and Redistrubutable.
To the point:
To set the size in a form, you write:
this.S... more >>
Can use use value to find key (HashTable)
Posted by ad at 8/20/2005 12:00:00 AM
I have a hash table like:
Hashtable myHT = new Hashtable();
myHT.Add("First", "Hello");
myHT.Add("Second", "World");
myHT.Add("Third", "!");
We can use key to find value like:
myHT["First"] -> "Hello"
But how can use use value to find key?
... more >>
super newbie question
Posted by John Salerno at 8/20/2005 12:00:00 AM
Actually, I feel like my knowledge goes beyond this question, but it's
still something I wonder about. Why, when you declare variables such as
int x = 5;
or
string word = "Hello";
do you not use the 'new' keyword? Are these not objects? Or is there
something implicit about them tha... more >>
A problem with "Location" and "Size"
Posted by JMUApache at 8/20/2005 12:00:00 AM
Hi,
A have a problem with Inhreit Control.
I try to Change its Size in Construct Function, And it works.
Code Here:
--------------------------------------------------
public class UserControl:TextBox
{
public UserControl()
{
this.Size = new Size (100, 100);
}
}
-----------... more >>
|