all groups > c# > june 2005 > threads for monday june 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
How do I recognize space characters in keyboard input?
Posted by steve bull at 6/20/2005 11:44:59 PM
I would like to recognize whitespace or nonascii characters in keyboard input. Is there an easy way to do this test? I
could do
e.KeyChar < '!' || e.KeyChar > '~'
but this seems to make the assumption that the user is inputting ascii characters - but maybe they are using some oth... more >>
Processing "wide" CSV file
Posted by Mark Rae at 6/20/2005 11:42:03 PM
Hi,
I have to process a very "wide" CSV file. Basically, the file does not
appear correctly in Notepad, WordPad etc because each line is 414 characters
wide. Ordinarily, I would have read the file into a StreamReader and
processed each line in turn e.g.
objSR = new StreamReader(strFileSp... more >>
DropDownlist Problem again
Posted by Paraki at 6/20/2005 11:36:04 PM
Hi,
I have 4 items in a dropdownlist. After selecting the item the dropdownlist
gets disabled. this operation is performed in selectedIndexChangeCommited
event.
Now the problem is, I hignlight the 3rd item and tab out from the list. The
1st item is getting selected and the list becomes dis... more >>
Adv C#?
Posted by Paraki at 6/20/2005 11:29:04 PM
Hi,
What are the advantages of C# over VB?
Thanks,
--
K_... more >>
design-time-only references
Posted by danielhardman at 6/20/2005 11:03:09 PM
I am implementing a component that helps a developer with som
localization tasks at design-time, and provides some related feature
at run-time.
My problem is that in order to do the design-time stuff, I need
reference to EnvDTE or EnvDTE80 (I'm using Whidbey beta 2). However,
can't ship th... more >>
Best way to check is a string is in a list?
Posted by Gerrit Beuze at 6/20/2005 7:50:34 PM
Hi all,
Using C# 1.1:
I need a fast way of determining whether a string is in a list of approx 150 keyword like strings.
in two versions: one case-sensitive, the other one case-insenstive.
I thought of loading the keywords in a Hastable as Keys with null values,
and then use Hastable.Contai... more >>
Why Won't This Console App Do A Console.WriteLine() ?
Posted by jabailo NO[at]SPAM texeme.com at 6/20/2005 7:23:58 PM
This is driving me crazy.
I finally got the Remoting sample chat application working almost.
When I run the chat client in VS.NET it goes into an endless loop --
that's because I assume that there is now way for me to interface to a
Console.ReadLine().
However, when I run it in the cmd ... more >>
Security problems running winform in a browser
Posted by J.Marsch at 6/20/2005 6:00:43 PM
Ok, so here's a problem you probably don't see every day:
We are building an application that must run in a browser, but we need to do
some things client-side that would be rather difficult to pull off with the
usual browser-side scripting (javascript etc).
It's been decided that this one,... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
CTP Hell
Posted by Michael Rodriguez at 6/20/2005 4:19:51 PM
<RANT>
Who is the genius at MS that allowed the SQL June CTP to be incompatible
with the VS June CTP??? Apparently the SQL June CTP only works with VS Beta
2, and even that depends on install order. If you want the VS June CTP, do
you have to stick with the SQL April CTP? Under which ins... more >>
VBCrLf eqivelant
Posted by Ant at 6/20/2005 4:07:02 PM
Hello, does C# have an eqivelant to Vb's Carriage return/Line feed character?
Thanks in advance for your answer
Ant... more >>
DropDownList problem
Posted by Chumley Walrus at 6/20/2005 3:20:22 PM
I'm trying to build a querystring from a button click carrying over two
variables (one from a textbox, the other from a dropdownlist),but for
some reason, the error I'm getting
is:'System.Web.UI.WebControls.DropDownList' does not contain a
definition for 'selecteditem'
The query string works wi... more >>
hiding vs. overriding
Posted by Bob Weiner at 6/20/2005 1:55:01 PM
What is the purpose of hiding intead of overriding a method? I have googled
the question but haven't found anything that makes any sense of it.
In the code below, the only difference is that when the Poodle is upcast to
the Dog (in its wildest dreams) it then says "bow wow" where the bernard... more >>
Print a jpeg
Posted by ZS at 6/20/2005 1:42:02 PM
Hello,
On the click of a button how can one print a .jpeg file from C#.
Thank you.
-Zelma... more >>
Windows forms in beta 2
Posted by Bhargavan at 6/20/2005 1:38:57 PM
Hi,
I am trying to open some windows forms ( created in VS2003) using visual
studio 2005 (beta 2.0), but visual studio just crashes without giving any
useful error messages. Any ideas if I have to do some error fixes to make it
work?
Bhargavan M.
... more >>
Mult-language dialogs.
Posted by Dave Harris at 6/20/2005 12:46:16 PM
Need some advice on how I can selectively access values from a resource. If
I have a dialog and I turn "Localization" to true, nearly every value set in
InitializeComponents() is gathered as a value from a resource and casted to
the correct type.
For the most part, I need only the "text"... more >>
Unloading Assembly DLL
Posted by Microsoft at 6/20/2005 12:17:44 PM
Hi all,
I have some application which dynamically loads a module as a DLL Assembly.
Both are written in C#.
I also would like to be able to dynamically unload this assembly (i.e. to
update the module with a newer version).
How can I do that ?
I used this code to load the module :
// cre... more >>
array byte to string
Posted by Hrvoje Voda at 6/20/2005 12:12:04 PM
How to convert an array byte into string?
Hrcko
... more >>
Newbie question: Database
Posted by Craig Lister at 6/20/2005 12:10:00 PM
I have a mySQL database.
I have two edit boxes. editID and editEMail.
I'd like to have the user enter a user ID into the editID, and press 'Find'.
A query must run as 'Select email from users where id = ' . editID.text
The result should then appear in the editEMail.
No, it's not a schoo... more >>
Using .Net Remoting for messaging, Help Needed
Posted by S.Creek at 6/20/2005 12:06:11 PM
Hi,
I am trying to build a multi clients application with C# that will send
and receive messages using a listener on a server,
the computers are all on the same LAN, the listener need to identify a
message in the MS Queues he listens on, and send it to the relevant
clients (not all need to ge... more >>
Inserting usercontrol into a StatusBar
Posted by WAkthar at 6/20/2005 11:32:30 AM
Hi,
I have a usercontrol which I need to embed into the status bar of a windows
form.
How can this be achieved?
Cheers
... more >>
Web Slideshow
Posted by Chris Jones at 6/20/2005 10:46:05 AM
Hi,
I need to give my boss a level-of-effort estimate for an ASP.NET project.
The customer wants to display pictures of their church's activities in a
slide-show type format on their web site. They also want to have various
different types of wipes and fades between images.
Can an... more >>
Problem using SharpZipLib to decompress response from web service
Posted by Dante at 6/20/2005 10:38:26 AM
Hello,
When I try to decompress a response from a web service I'm getting the
error:
"hexadecimal value 0x1F, is an invalid character. Line 1, position 1."
The web server is an apache server. Content-Encoding is set to "gzip,
deflate" in the request header.
I can see that the response... more >>
Load picture from byte array
Posted by David Dvali at 6/20/2005 10:21:53 AM
Hello.
I have loaded image to my bytes arraey from DB, now I want to load itt intot
the PictureBox.
howa can I do it?
Thank you.
... more >>
Regular expression question
Posted by Kevin at 6/20/2005 10:21:03 AM
Hi,
Is anyone in this group good at regular expression? I have a seemingly
simple problem, but cannot figure it out myself. I appreciate any help!
What I want to check is "dog" appear exactly twice in the searchString. If I
enter "^(.*dog.*){2}$", the expression matches even when "dog" app... more >>
insert record
Posted by NuB at 6/20/2005 9:37:21 AM
I have an app that inserts records into a SQL db, I have a file that I'm
reading to get the data out of, aka 'records', how can I determine of the
record has been inserted into the database so i can log that?
... more >>
Turfing questions from a want to be gardner.
Posted by aaj at 6/20/2005 9:25:58 AM
Hi all
The previous owners of my house layed membrane and then gravel over the soil
in the back garden.
I have lifted the gravel but left the membrane down for now, and ultimately
would like to turf the area. I have three linked questions, and I am
wondering if anyone can help with them.... more >>
notify drop event of excel/word in C# add-in
Posted by Rushi at 6/20/2005 8:52:15 AM
Hi Friends,
I don't know how many times I have submitted this topic, but no one is
trying to answer me....please some one try to help me.
I have created an add in C#, which is popup a form on excel. Now my
query is, i have a tree control which contain some data. now when user
drag any item ... more >>
How to check for Undefined Values/Objects in C#
Posted by M. Uppal at 6/20/2005 8:47:02 AM
Hi, I need to check for undefined values and objects in C#, which function
should i use. (== null) does not work for undefined objects.
thanks... more >>
How To get range of Value with Regular expression
Posted by slesaint NO[at]SPAM gmail.com at 6/20/2005 8:25:04 AM
Hi all,
Langage : .NET
Framework : 1.1
OS: Win XP 2000 Pro
I have this regex :
^*FOO([1-9]|1[0-3])
Which must to match with : 01_FOO1, 01_FOO10, 01_FOO13 and not to
01_FOO14, 01_FOO0
But this regex match with 01_FOO1 and 01_FOO14, but if i need to
01_FOO14 ( which
it'snt in the w... more >>
IsDirty event in object graph; good pattern needed
Posted by wbekker at 6/20/2005 8:19:20 AM
Hi,
I'm searching for a good pattern for the following problem:
In a large object tree, all object implement a property called IsDirty.
That flag is set when a property is modified. If a child object is
dirty, the parent object must return IsDirty = true as well. This works.
I now want ... more >>
how to switch datagrid font based on each recordset value
Posted by dsv1991 at 6/20/2005 7:08:03 AM
I have a datagrid that has a column called "Match". The only two values
available for this recordset column is a string value of "YES" or "NO". If
the value is "NO" then I need the font color to be red, else I need the font
color to be blue.
Thanks in advance for any help.... more >>
ChartFX Label problems
Posted by Weichsi at 6/20/2005 6:18:41 AM
Did anyone ever use texts in ChartFX that contain chars like '+' or '-'
as axis labels.
If i set the text for a label (e.g. 'KK 1+') i get '+ KK 1' printed in
the chart.
It doesn't help to use different formatting options for the labels.
Any help would be highly appreciated;)
Hans
... more >>
How much time does CPU spend in each method?
Posted by Vincent Vega at 6/20/2005 5:56:25 AM
Hi,
I'd like to run my WinForms application through a series of tests and
determine where I can optimize my code. Is there an easy way for a brother
to tell which methods were called most frequently, or more importantly,
which methods took the largest fraction of CPU time to execute? Th... more >>
satellite assembly
Posted by sunil muthanna at 6/20/2005 5:36:02 AM
what is satellite assembly?... more >>
Best way to interact with .mdb database?
Posted by OpenYourMind at 6/20/2005 5:03:06 AM
I've got an MS Access database with around 20 or so tables, all of them
linked by foreign keys with enforced referential integrity. Using
oledbdataadapter, I find that I have to read each table individually into a
dataset, and then build each relation manually, which is quite tedious.
Also... more >>
Reading node in XML file with namespace?
Posted by Sharon at 6/20/2005 3:33:03 AM
I'm trying to navigate inside an XML file that has a very simple namespace,
But when I'm using the name space a get nothing (Count == 0) when I do
SelectNodes() or SelectSingleNode() (null).
When I remove the namespace from the XML file and from the code --> the
Select is successful but I do ... more >>
Timer question.
Posted by Naveen Mukkelli at 6/20/2005 12:01:02 AM
Hi,
Currently I'm using System.Threading.Timer to perform some tasks
periodically,
lets say every minute.
How can we disable this timer(System.Threading.Timer) so that the time spent
in the callback method is not counted.
Do we have an equivalent of
System.Timers.Time.Ena... more >>
Dose C#2.0 support optional parameters
Posted by ad at 6/20/2005 12:00:00 AM
Does C#2.0 support optional parameters like VB.NET:
Function MyFunction(Optional ByVal isCenter As Boolean = False)
... more >>
Windows Service
Posted by Moty Michaely at 6/20/2005 12:00:00 AM
Hello,
Can anyone please help me finding a good way to develop a c# winforms
application client for a pre-developed windows service?
Should I use wse2 with tcp protocol? Bu I still have win98 clients. mmm..
Please help.
Thanks,
Moty.
... more >>
Switch Statement based on range of values
Posted by Alex at 6/20/2005 12:00:00 AM
Hi,
Is it possible to perform a swicth statement based on a range of values ?
eg.
switch(Answer)
case : 0 - 4 : do something;
break;
case : 5 : do something else
break;
Grateful for any help
... more >>
Replace white space with null
Posted by ad at 6/20/2005 12:00:00 AM
I want to remove all space in a string;
I use :
sMyString="a b c";
sMyString=sMyString.Replace(' ',null);
But it fail when compiling.
How can I do that?
... more >>
FileNotFoundException'
Posted by Peter Kirk at 6/20/2005 12:00:00 AM
Hi, when I run my c# program I get this error:
An unhandled exception of type 'System.IO.FileNotFoundException' occurred in
mscorlib.dll.
Additional information: File or assembly ASolutions.Directory.Service or one
of its dependencies was not found.
Great... but how do I find out exactly ... more >>
String variable gets value of "System.String[]"
Posted by Andy Sutorius via DotNetMonster.com at 6/20/2005 12:00:00 AM
Hi,
I have a Sorted List that has 9 key/value pairs. I am trying to take one of
the key/value pairs and store the value of that key into a string variable.
However, the value that actually gets inserted into the variable is "System.
String[]" and I don't understand what happened to my original... more >>
C# call method in C++7
Posted by Giang Pham at 6/20/2005 12:00:00 AM
Dear all,
I created a C# project. But there is a module that was created by C++ .NET
(7.0), this module will load structure file and get information from that
file.
I heard that .NET environment support the mechanism that I can call from C#
those funtions in C++ module ?
Thank you alo.
... more >>
vbCrLf ?
Posted by ad at 6/20/2005 12:00:00 AM
Hi,
What is vbCrLf in C#?
... more >>
Developing blog
Posted by Mike at 6/20/2005 12:00:00 AM
Hi,
Does anyone have a link to an article or resource that explains how to =
write a blog?
Thanks.
Mike... more >>
Receipt Printer
Posted by kids_pro at 6/20/2005 12:00:00 AM
Does any know how can I fit my report to a Receipt Printer (dot matrix)?
Is there any special sequence code to control the line?
Any namespace provide this functionality?
Cheers,
Kids
... more >>
Help with scrollbars
Posted by Víctor at 6/20/2005 12:00:00 AM
How can I change controls scrollbars appearance? I need create my own
scrollbar for a listview control.
Thanks.
Victor.
... more >>
DataGridDesigner
Posted by Vlado Brleèiæ at 6/20/2005 12:00:00 AM
Hi everyone,
I would like to add a new designer verb to DataGrid's menu, next to the
"Auto Format". So, I inherited a DataGrid and I made a new designer for
MyDataGrid hoping everything is gonna be alright. Now I have a new designer
verb but "Auto Format" is gone. I was thinking that base Data... more >>
ListView and select item
Posted by Giang Pham at 6/20/2005 12:00:00 AM
Dear all,
When I add one row in my listview (type : details), I want to set it as
selected.
How could I do this ?
Thank you a lot.
... more >>
|