all groups > c# > february 2008 > threads for sunday february 3
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
Parsing a string
Posted by John Rogers at 2/3/2008 9:19:38 PM
Can someone show me how to parse a string to find a specific value?
<b><a id="wt2500_WC_xc2500_GVB_drtl00_WQR_xt400_G"
href="/WW/XZ/LinkToDetailsList.asp">Details List Filers</a></b>
That is my string, I have thousands of lines to go through, I am looking to
get back the
following value: ... more >>
HttpWebRequest ResponseStatus
Posted by Chizl at 2/3/2008 8:49:01 PM
dev: Visual Studio 2008, C#
I'm looking for the ResponseStatus code from a web page once I use:
HttpWebRequest whr = (HttpWebRequest)WebRequest.Create(strURL);
whr.Method = "GET";
This next line will fail is there is a status 404 on the above create, but
after spending about an hour into... more >>
C# - XPath for XMLDataSource?
Posted by Darth Continent at 2/3/2008 5:00:42 PM
Say you have an XML file that looks like this:
<KW>
<Subjects SubjectID="00100" SubjectDescription="ABORTION"/>
<Subjects SubjectID="00010" SubjectDescription="ABUSE * ADULT *
INVESTIGATION"/>
<Subjects SubjectID="06450" SubjectDescription="ABUSE * CHILD ABUSE *
COUNSELING"/>
</KW>
I'm t... more >>
ListView
Posted by Jesper, Denmark at 2/3/2008 4:51:13 PM
Hi,
I'm using a ListView control in details view. I would like to use full row
select, but is there a way to make only some of the cells in a row selected
(in blue color on my machine). In particular, I would like all the cells in a
row appear as selected except the one in the first column,... more >>
Recordset load XML
Posted by john0600 at 2/3/2008 3:00:49 PM
I'm writing a web service in .NET to work with Delphi clients. Delphi
uses ADO so I want to convert the Dataset to a Recordset and vice-
versa. It appears a Web Service cannot publish a web method with a
Recordset return so I save the RecordSet to an XML string:
SqlDataAdapter sa =... more >>
String vs StringBuilder
Posted by Chizl at 2/3/2008 2:47:10 PM
Can someone give me a little more detail on why use StringBuilder vs String?
--
/*Chizl*/
... more >>
Open ComBobox dropdown list when F12 pressed
Posted by Andrus at 2/3/2008 12:51:30 PM
C# .NET 2 WinForms.
I need to open ComboBox dropdown list if user presses F12
I tried the code below (F4 opens dropdown list by default) but got compile
error
Property or indexer 'System.Windows.Forms.KeyEventArgs.KeyCode' cannot be
assigned to -- it is read only
How to fix ?
Andru... more >>
No way to encrypt with private key in C#?
Posted by Sin Jeong-hun at 2/3/2008 11:39:22 AM
Hello.
As far as my naive textbook knowledge goes;
1)if a file is encrypted with the private key, then it can be
decrypted with the public key,
2)if a file is encrypted with the public key, then it can be decrypted
with the private key.
But the RSA class comes with C# only supports 2). I've ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
This program is not thread safe and cause run time error in debug mode
Posted by Tony Johansson at 2/3/2008 10:13:11 AM
Hello!
Below is a complete program that works fine in release mode but cause run
time errror in debug mode
because of "Cross-thread operation not valid: Control 'digital' accessed
from a thread
other than the thread it was created on."
The windows program below consist of these 4 classes... more >>
Dependency Injection - Can It Be This Simple?
Posted by Jordan S. at 2/3/2008 10:05:17 AM
Does the following accurately summarize the notion of "dependency
injection?"
Class A needs to cause "Some Activity" to happen (in addition to other
things that Class A does).
Class A may or may not have a default implementation of Some Activity.
Class B is able to do Some Activity.
... more >>
Pass a property
Posted by Peter Morris at 2/3/2008 8:24:33 AM
Hi all
Is there a way to do this?
[MyCustomAttribute(ClassName.PropertyName)]
At the moment I use strings, but if the property name on the class changes
it causes runtime errors whereas I would prefer compile time errors. To be
clear, I want the name of the property and not the value o... more >>
Linq and Validation Application Block (Enterprise Library)
Posted by Evert at 2/3/2008 6:16:01 AM
Does anybody know if it is possible to use the Validation Application Block
from Enterprise Library 3.1 in Linq. The problem is that I don't know how to
add the validation attributes to the generated properties.
Thanks in advance,
Evert... more >>
Setting IE proxy setting programmatically
Posted by Epetruk at 2/3/2008 2:20:50 AM
Hi,
I wrote this class to try to set the proxy settings in Internet Explorer
programmatically. The class uses the API functions in wininet.dll; however,
there's a horrible crash when I call InternetSetOption the first time. Can
anyone tell me what I'm doing wrong?
Epetruk
publ... more >>
GetElementById
Posted by Gidi at 2/3/2008 2:17:01 AM
Hi,
I'm using a webBrowser object to load an html file and i want to replace the
some text after i loaded the file.
this is the code i'm using:
HtmlElement h = webBrowser1.Document.GetElementById("str1");
h.InnerText = m_name;
h = webBrowser1.Document.GetElementById("str2");
h.InnerText ... more >>
C# - Delay at Begining
Posted by NvrBst at 2/3/2008 1:23:06 AM
I've noticed this with a lot of my C# program and been trying to get
ride of it for one of my programs recently. I have a program which
sends some key strokes to the active application when a hotkey is
pressed. The very first time you press the hotkey you can notice a
delay (150-250ms) before ... more >>
|