all groups > c# > march 2007 > threads for thursday march 1
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
validating xml file in .net2.0
Posted by cellardoor0716 NO[at]SPAM gmail.com at 3/1/2007 11:51:45 PM
I=B4m trying to validate a xml file against schema... I had to migrate
my code from .net 1.1(where I was using XMLValidatingReader and it was
working just fine...) to .net 2.0. The XMLValidatingReader became
obsolete, so I tried the XMLReader instead, but I always get only the
first error... Her... more >>
Question about visibility/ modifications of objects
Posted by Martin Pöpping at 3/1/2007 11:26:06 PM
Hello,
I´ve a general question about the visibility and modification of an object.
I will try to explain it in my code, where I have the problem:
DocumentList dList = initDocuments(thesaurus);
for (int i = 0; i < testRuns_; i++)
{
Algo algo = new Algo(dList, 1.1, anzahlCluster, t... more >>
RadioButton&Datagrid
Posted by rcoco at 3/1/2007 9:28:44 PM
Hi,
I'm using RadioButtons in datagrid But When I select one I can't
unselect it and when I select the others they cannot unselect the
other instead they are selected all at once. how could I go about this
to be able select one at a time. these Radio button are in one column.
Thanks.
... more >>
Interop
Posted by Hugo Mind at 3/1/2007 7:36:54 PM
Hi,
I have a DCOM DLL with a method expecting me to send parameter as LPSTR
Sub SendCommandArg1(ByVal Command As Long, ByVal Size As Long, ByVal Arg
As LPSTR)
Is there a way to convert c# string into LPSTR ?
Regards,
Hugo
... more >>
StreamReader / StreamWriter vs System.IO.File.*?
Posted by Zytan at 3/1/2007 7:30:56 PM
I have installed the Visual C# 2005 Code Snippets, and the snippets
for file handling use StreamReader and StreamWriter, instead of
System.IO.File.*. VB 2005 code snippets don't use these. Why are
they suggesting the use of these classes instead of the fundamental
File methods? Are they bette... more >>
Insert string into database
Posted by Monica at 3/1/2007 7:05:05 PM
hi
SQL queries does not recognize *$()!.,?/\[]{};:'"&^+=<>|.
if I have a variable alike this:
Date = "Thursday, March 01, 2007 - 9:53 PM";
how can I inset in my database?
strCommand = "INSERT INTO Profiles (Date) " +
"VALUES ('" + Date + "')";
.................... more >>
Read REG_BINARY Value into its string equalent - 010307
Posted by vighnesh at 3/1/2007 5:53:10 PM
Hi Folks
Greetings to you all. I am dealing with a project ( windows application ) in
which I have to read the REG_BINARY value from the Registry and get its
string equalent ( the ASCII text value ). Can anyone please suggest me how
can I achieve that in VB/C#.NET.
Thanking you in advanc... more >>
C# Form focus and Alt-Tab
Posted by claudioillanes NO[at]SPAM gmail.com at 3/1/2007 5:48:54 PM
I'm a beginner with C#. I've got a Forms C# application that has an
AxWebBrowser component embedded. While the C# application runs, a user
is filling out some text boxes in the AxWebBrowser. If they then alt-
tab out and alt-tab back into the C# forms application, their blinking
cursor is no lon... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Current Microsoft Imagin Cup Project
Posted by j1mb0jay at 3/1/2007 5:24:12 PM
Please can you have a read of my latest project design. Just wondering if
anyone can think of things that I have missed out. Have spent lots of man
hours hacking this together.
Be honest.......
http://users.aber.ac.uk/jap6
--
Regards JJ (UWA)... more >>
What is the best way to modify report ( .rdl ) within c# winform app
Posted by Rob Dob at 3/1/2007 5:04:16 PM
Hi,
I have several reports within my c# winform application, I need to be able
to give the user the ability to make minor modifications to some of these
reports prior to running them. Currently I am making use of both .rdl and
..rdlc reports within my application. the modifications that t... more >>
Insert string into database
Posted by Monica at 3/1/2007 4:46:15 PM
hi,
how can I solve this problem? should I write some code or this is provided
by Microsoft?
string FirstName = "Monica";
string Number = "123456789";
strCommand = "INSERT INTO Profiles (FirstName, LastName) " +
"VALUES (FirstName, Number)";
.................... more >>
Going nuts with DataBinding a ListBox (winforms)
Posted by sklett at 3/1/2007 3:26:42 PM
I've setup the simplest of tests; A form with a ListBox and a Button. The
ListBox is bound to a List<string>. When you click the Button, a new string
is added to the list.
I can't for the life of me get the ListBox to update when new items are
added to it's DataSource!
<code>
List<strin... more >>
Listening to windows messages from a windows service
Posted by andrewbb NO[at]SPAM gmail.com at 3/1/2007 3:17:24 PM
I'm developing a windows service that needs to listen for a particular
WM_ message. Is there a way to listen for a message from .NET service
application?
This would seem to be a simple thing, but I haven't seen anything on
it...
... more >>
C# - Excel - Multisheet- html (Plez Help)
Posted by BrianDH at 3/1/2007 3:15:13 PM
I have been given the task, to take an excel document with over 50 sheets and
is updated weekly, and pull from it 5 of those sheets, convert them to html
so they can be viewed on our company web site.
Does anyone know of a way to pull a single sheet out of a workbook, convert
it to a stan... more >>
System.DirectoryServices - Constraint violation
Posted by Peter Bradley at 3/1/2007 2:58:47 PM
I'm trying to use System.DirectoryServices to update Active Directory from a
Web Service. When I try to commit the changes, I get the following error
message:
"A constraint violation occurred. (Exception from HRESULT: 0x8007202F)"
My code is like this:
<code>
*** method signature an... more >>
Strange String Sorting
Posted by escher4096 at 3/1/2007 2:54:25 PM
Hi all,
In C# 2.0, if I take a set of strings and toss them into an ArrayList
and then sort them it does not always work as expected.
I used some garbage data (I just grabbed the using statements from the
top of my own program which were out of order):
using System;
using System.Componen... more >>
Hide warning: "Generic classes may not be exposed to COM"
Posted by Torben Laursen at 3/1/2007 2:14:37 PM
I am writing a COM in C# using visual studio 2005 and VSTO.
Inside the code I use some support classes that are generic but they are not
used in the inferface of the COM.
However I still get a number of warnings from the compiler like:
"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Co... more >>
BindingNavigator and Access
Posted by Chris at 3/1/2007 1:41:06 PM
I have an access database dataset which a draggedonto a form which also put
the data navigator on the form. The problem is that when I ADD a new record
witht he add button, it gives me a primarykey that has already been used and
deleted before in the database. Then of course when you try to sa... more >>
Best way to detect cause of lockups
Posted by Adam Benson at 3/1/2007 1:14:58 PM
Hi,
We have a multi-threaded app, which has a windows form front end.
We think we have been pretty careful to ensure that nothing but the UI
thread alters controls on the form. But we've started experiencing lock ups.
Of course, there could be any one of a number of causes but we wonder if... more >>
How is memory managed for Database connections and DataReaders
Posted by Mike at 3/1/2007 1:14:40 PM
Assume i have a db connection and a datareader for that connection. Now I
perform a query that retrieves 100MB of data. I know that the data reader
gets 1 row at a time. However, there is a result set out there that is
100MB is size.
If I close the dataReader but keep the DB connection o... more >>
How do I add an Icon to my project?
Posted by trint at 3/1/2007 12:25:27 PM
I already have the icon added as an item in the solution.
I tried this:
this.Icon = ((System.Drawing.Icon)(resources.GetObject(@"C:\Inetpub
\wwwroot\c#NewTest\WebResponse3\WebResponse\WebResponse\wr3.ico")));
and Nothing.
Any help is appreciated.
Trint
... more >>
Help with simple XPath query?
Posted by sherifffruitfly at 3/1/2007 12:22:10 PM
Hi all,
I'm never gonna get the xml part of c#.... sigh....
My xml file is structured as so:
<?xml version=.....?>
<TheAs>
<TheA filename="name1" enabled="true" />
<TheA filename="name2" enabled="false" />
..
..
..
</TheAs>
I'm trying to update the boolean field - here's what I've... more >>
StatusStrip ProgressBar
Posted by Aaron at 3/1/2007 11:05:07 AM
Since some controls such as the DataGridView take a long time to update
themselves when performing certain tasks, I have added a StatusStrip with a
ProgressBar on it. While I am updating the controls on the form, I want the
ProgressBar to scroll in marquee mode. However, I cannot seem to get... more >>
correct syntax for system.net.mail
Posted by Mike P at 3/1/2007 9:07:39 AM
I am building a message body to be sent by email, but I can't seem to
get the correct syntax for 2 lines where I am defining the <form> and
trying to pass parameters and where I am creating a hyperlink and again
trying to pass parameters to it. I have tried escaping the "s both like
this : \" a... more >>
"AddressAlreadyInUse" error calling start() on TcpListener...
Posted by Charlie NO[at]SPAM CBFC at 3/1/2007 8:58:35 AM
Hi:
I'm creating a simple port listener. When I call start() method it returns
"AddressAlreadyInUse" error. He is my code...
Int32 port = 80;
IPAddress localAddr = IPAddress.Parse( "127.0.0.1" );
TcpListener server = new TcpListener(port);
server = new TcpListener( localAddr, port );
s... more >>
Q: returning wrong type from GetEnumerator?
Posted by rchf at 3/1/2007 8:10:26 AM
I know this is simple problem but I am so new that there is some fundamental
disconnect in my understanding of: Enumerable, Enumerator, and Generics.
As a result I am having a problem debugging this error message
"Error 1 'SimpleSite.Email.Model.Hosts' does not implement interface member
... more >>
Serialization of an Inherited Class.!
Posted by R Karthick at 3/1/2007 7:52:37 AM
I am new to serialization. Apologies, if my question sounds really
basic. Stuck in this problem for the last two hours. Thought, will ask
the experts instead of banging my head more.
This is what I have..!
<code>
Abstract Class FooBase
{
}
Abstract Class FoobaseCollection : ICollec... more >>
Control Dock question
Posted by DBC User at 3/1/2007 7:12:09 AM
I am trying to put 2 controls in a page where I want the first control
to have 80% of the screen and the second control 20%. How can I do
that?
I used control property to set the first one to Top and the second one
to Bottom and is not working properly. I am loosing the first controls
bottom ... more >>
Good tutorial for making an image based GUI?
Posted by ShieldsJared NO[at]SPAM gmail.com at 3/1/2007 5:51:43 AM
Im looking for help making a good GUI out of pure images. I would
like to embed the common controls and such, but I want to make a nice
looking GUI, similar to that of, say Windows Media Player. I'm not
sure how to make an image "clickable", nor do I know how to make
rollovers and such. Also ... more >>
Article updated: generics in C# 2.0
Posted by ludwig.stuyck NO[at]SPAM coders-lab.be at 3/1/2007 5:05:43 AM
Hello,
I updated my article on generics with databinding and serialization/
deserialization.
Summary: Generics are one of the most useful improvements in the .NET
2.0 framework. In this article I start with pointing out the
disadvantages of using the classical arrays and .NET collections, a... more >>
File and Folder Browser
Posted by Tom P. at 3/1/2007 4:39:58 AM
I have searched and the only stuff I can find is out of date (or I
can't figure it out).
I'm trying to make a browser that will accept Files or Folders as a
target. First off, does this even sound logical? I'm making a sync
type application and you may want to sync a single file or an entire... more >>
I have a question about declaring the Global.ascx:
Posted by TARUN at 3/1/2007 4:19:29 AM
I have a question about declaring the Global.ascx:
In VS.NET I create a Solution, and there are 4 projects under it. They
are put under 4 folders, but web pages would be called across the 4
projects. For example, web page Page1 in Project1 will redirect to web
page Page2 in Project2 which will... more >>
Extention on a Lambda function?
Posted by Michael S at 3/1/2007 3:43:46 AM
Is extentions only allowed on 'pure' methods?
I was playing arround with lambda functions and while googling I tried a
small example (In a static class):
public static Func<double, double, double> Hypotenuse = (x,y) =>
Math.Sqrt(x*x + y*y);
Now it would be cool if I could easily mak... more >>
XmlSerializer: how to not serialize properties?
Posted by Beorne at 3/1/2007 2:28:41 AM
I'm serializing a big class using XmlSerializer (I need xml
serialization cause compact framework). I've learn that all my fields
must be public. Ok.
Now it is completly useless to serialize my get/set properties, but I
haven't found an anttribute like
[NonSerialized]
working foer properties.
... more >>
What is the way to write a proper confirmation email using CreateUserWizard?
Posted by Mahernoz at 3/1/2007 12:44:21 AM
Hi Friends,
I have a Registration page which uses Asp.net CreateUserWizard
Control. Now I want to send a unique value(a guid) by which i can be
sure that the email address is of that user only. I will provide a
Textbox in the next step which the user has to input so that his email
address is ... more >>
whats the best way to do this with buttons
Posted by Peted at 3/1/2007 12:00:00 AM
I have a form with 8 checkbuttons in "button" apearence mode
each button press activates a relay device on a connected piece of
hardware.
For the relay device to activate a specfic relay it needs to get a
number of the relay to be used from the button pressed
EG press button 1, activa... more >>
|