all groups > c# > may 2007 > threads for thursday may 24
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
Searching simple sample for loading a XML document and access a node through XPath expression ?
Posted by wersam NO[at]SPAM yahoo.de at 5/24/2007 11:00:11 PM
I would like to load an XML document from say D:\mytask\mydoc.xml into a CSharp
and to retrieve from the resulting XML node tree a certain node/element by
specifing an XPath expression.
Does someone know a simple CSharp sample source which shows how to implement this task ?
Werner
... more >>
Writing a simple function in C#
Posted by Jon Harrop at 5/24/2007 10:59:05 PM
I am trying to learn C# and .NET programming in general but I am finding it
very hard going. To start with, I'd like to translate some trivial
functions from other languages that I am familiar with into C#.
Here is a simple function in OCaml that nests "n" applications of "f"
around "x", wit... more >>
How to update XML file?
Posted by Hooyoo at 5/24/2007 10:50:00 PM
I have a XML file as following:
<configuration>
<MachineList>
<Machine Name="mycomputer"/>
</MachineList>
</configuration>
How can I program to change "mycomputer" to "somecomputer"? Any
comments will be appreciated.
... more >>
dropdown in DetailsView
Posted by ascll at 5/24/2007 10:27:58 PM
Greetings,
How do I insert a dropdown box (predefined values=A,B,C,D) in DetailsView
(prefer codeless)?
Thanks
ascll
... more >>
extacting values fom a webpage
Posted by shantanu at 5/24/2007 10:24:17 PM
Hi all
I have a requirement and i need some resolution to work on.
i have to read a webpage and extract few values from the page. I am
using the httpwebrequest meathod to query the webpage that based on
the values generate a result on the webpage and then i need to pick
the phone number a... more >>
Session sharing in asp .net
Posted by cheelam_mze NO[at]SPAM hotmail.com at 5/24/2007 9:07:22 PM
Hye,
This is my scenario:
1. Admin login to web application and access module M.
2. Admin logout from the application. User B sees the URL of module
M.
3. User B login to the application. User B does not have access to
module M.
4. User B types the URL of module M and able to access th... more >>
Can't debug IIS service from client app
Posted by Ronald S. Cook at 5/24/2007 8:45:49 PM
1) I start my client Windows app
2) At a breakpoint I attach to the aspnet_wp.exe
3) I continue stepping through code
I am expecting to make it over to the service project (where I have a
breakpoint) but it never goes there.
What am I doing wrong?
Thanks,
Ron
... more >>
What is the difference between TextWriter and StreamWriter ?
Posted by c.simi NO[at]SPAM subnet.net at 5/24/2007 8:18:54 PM
Some sample source codes use TextWriter other StreamWriter for writing text into a file.
What are the differences ?
Carla
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Let VisualCShapr automatically insert necessary "using" statements ?
Posted by wmeister NO[at]SPAM hotmail.com at 5/24/2007 8:01:04 PM
Is there a way to let VisualStudio insert automatically (after pressing e.g. F7)
missing "Using" statements at the top ?
Or is there a menu which suggests inserts for using directives ?
How can I otherwise find out which "using" I have to add for e.g. "StreamWriter"
or "File"
... more >>
Adding "please wait" message to datagridview
Posted by VMI at 5/24/2007 6:33:19 PM
In my Windows App, how can I add a nice "Please wait" message to my
datagridview? With a datagrid I would be able to clear all columns, add one
table with one row with the messsage, and bind it to the grid. But I added
the columns to the gridview through the designer, so I'm not sure how to ad... more >>
Searching for a simple (!) sample for accessing an Oracle database and read some data from it
Posted by kenny00 NO[at]SPAM mercedes.com at 5/24/2007 5:38:02 PM
WhenI search Internet there thousands of comments and samples for database conenction and tuning.
They are all advanced and comprehesive.
I didn't found a simple "Hello World" for accessing an Oracle database.
This sample should contain just
- connecting to database,
- pass an SELECT FROM... more >>
Where is the project source code folder ?
Posted by omerc NO[at]SPAM yahoo.co.uk at 5/24/2007 5:27:11 PM
In options->Project and Solutions I setup in all 3 entry fields D:\work\myvs\
as base directroy.
However when I open an existing VC# project all the related stuff is saved into
D:\temp\myTestProj
and not in D:\work\myvs\myTestProj as expected.
Why ?
Is there way of reading only this ... more >>
How to assign/call a function when a "Close" button of a Form is cliecked?
Posted by c.simi NO[at]SPAM subnet.net at 5/24/2007 5:14:05 PM
Assume I have an open Form.
Then I click the "normal" window "X" icon (=Close button). How do I assign a function in Form.cs
to this event ? In other words if this Form/window is closed I want to perform some exit statements.
When I doubleclick on a "normal" button I am autoamtically taken fr... more >>
Regex query
Posted by Mantorok at 5/24/2007 4:52:06 PM
Hi all
I want to clarify a Regex, I need to allow up to 20 digits, spaces are
allowed within the string too, as long as the overall string is not above 20
in length..
Here's is what I have: [\d| ]{1,20}
Is this right or wrong?
Thanks
Kev
... more >>
Properties
Posted by Mike J at 5/24/2007 4:50:33 PM
I have a Queston about Properties vs Public / protected
ive read alot where people say dont use public or protected members always
use Properties....
i kinda dis-agree with that.
I do want to here from others
i may have a class where i dont care about isolation
so why not make a public ... more >>
How to detect System Time Change in CompactFramework?
Posted by José Joye at 5/24/2007 3:41:32 PM
In my application (written for Compact Framework 2.0 ), I have to be
informed whenever a system Time change occurs (NTP, daylight saving, ...).
Under the normal framework, I'm able to use the
"Microsoft.Win32.SystemEvents.TimeChanged" event. However, this is not
available under CF.
Any hel... more >>
passsing large number of parameters
Posted by Vinki at 5/24/2007 3:36:40 PM
Hello Everyone,
What will be the best way of passing large number of paramers from one
method to another so that I can insert them in the Database.
Thanks.... more >>
Sending a TO-DO List item from C#
Posted by mc at 5/24/2007 3:26:29 PM
I would like to be able to send, from an ASP.NET page, an email which when recieved takes the form
of a TO-DO list item.
Can this functionality be emulated from sending an email from C#?
I've read that Ootlook 2007 doesn't support the vTODO standard, is there an alternative?
TIA
MC... more >>
Data Bindings
Posted by Paul at 5/24/2007 2:49:13 PM
Hi, I have a project configured as follows:
Main form with a tabcontrol with 1 tab page and a panel with some text boxes
in. This form also has some bindingsources dropped onto the form.
When a selection is made the program instantiates a new class which creates
several tabs on the main fo... more >>
Exctracting an icon from an EXE
Posted by Laurent Navarro at 5/24/2007 2:30:31 PM
Hello,
I have an EXE (.NET assembly) file with an icon which has 8 formats
(128x128, 96x961, ..., 24x24 and 16x16). I would like the extract the
128x128 sized icon only to display it on a PictureBox control.
I made some searchs and discovered that the Icon.ExtractAssociatedIc... more >>
Validating XML on CF 1.x: how?
Posted by BLUE at 5/24/2007 2:09:46 PM
On CF 1.x XmlValidatingReader is missing: is there any way to validate an
XML file against its XML schema?
Thanks,
Luigi.
... more >>
Testing for DBNulls
Posted by Fred Chateau at 5/24/2007 2:07:50 PM
I can't seem to find a test for DBNulls. Whatever I try doesn't work.
for (int x = 0; x < dataSet.Identity.Rows.Count; x++)
{
DataRow dataRow = dataSet.Tables["POI_Entity"].NewRow();
if (!dataSet.Identity[x].Chain_ID.Equals(DBNull.Value))
dataRow["Chain_Id"] = dataSet.Identi... more >>
Cyrilic (Russian) characters input
Posted by Martin.Kunc NO[at]SPAM gmail.com at 5/24/2007 12:59:12 PM
Hallo all,
I need to make an textbox to accept only Cyrilic characters. I
couldn't found any solution except enumerate characters for filtering
(seems odd). Please has anyone any ideas ?
Thank you all,
Martin
... more >>
Case insensitive compare of single characters
Posted by Coder Guy at 5/24/2007 12:45:59 PM
Is it possible to do a case insensitive comparison of individual characters?
I tried:
Char.ToLowerInvariant(charA).CompareTo(Char.ToLowerInvariant(charB))
And though it works for the most part, it didn't seem to work for all
locales.
I tried converting the characters to a string and the... more >>
MyEnum.ToString() broke on .NET 3.0 machine
Posted by Zytan at 5/24/2007 12:41:35 PM
I have a basic Enum:
enum MyEnum
{
Name1,
Name2,
}
And I called MyEnum.ToString(), and this crashed on a machine
running .NET 3.0, twice. But, every other time, it ran fine.
Strange. The error was System.ArgumentException:
Message = "All enums must have an underlying value__ field."... more >>
Foundations of F# - Coming Very Soon
Posted by robert NO[at]SPAM strangelights.com at 5/24/2007 9:27:36 AM
I'm very pleased to announce that Foundations of F#, the first book to
be published on the F# programming, will finish its first printing
run, tomorrow, Friday 25th May. It should reach any pre-order
customers between 5 to 10 days later, meaning if ordered it on Amazon
or Borders (or any other o... more >>
Mpeg & C#[win]
Posted by MikeY at 5/24/2007 9:02:25 AM
Hi Everyone,
Can anyhow directed me on reading up/ links/learning/codes on how to add
video ie. mpegs to my C# Windows form .Net 1.1 applications
Any and all help is appreciated
MikeY
... more >>
No Data After DataAdapter Update
Posted by Fred Chateau at 5/24/2007 8:52:12 AM
Any obvious reason here why data is not being loaded into the database?
SqlDataAdapter dataAdapter = new SqlDataAdapter(sqlCommand);
SqlCommandBuilder commandBuilder = new SqlCommandBuilder(dataAdapter);
dataAdapter.Fill(dataSet, "POI_Entity");
DataRow dataRow = dataSet.Tables["POI_Entity"].... more >>
making a button not visible in a datagrid
Posted by Brett Wesoloski at 5/24/2007 7:57:26 AM
Ok I would expect this to be easy but am running into some problems.
I have a templete column in my datagrid with a button.
<asp:TemplateColumn HeaderText="E-Mail Proposal"
ItemStyle-HorizontalAlign="Center">
<ItemTemplate>
<input type="button" name="email" value="EMail"
onclick="OpenOut... more >>
Debug a .NET applet
Posted by MarcuEusebiu NO[at]SPAM gmail.com at 5/24/2007 7:52:40 AM
Hello...
I have a Windows Forms UserControl in a ClassLibrary and I use this
UserControl as an applet in IE. Both WebApplication and UserControl
are in C#.NET 2.0. The UC has a button with a handler on it`s click
event.
I import the UserControl in a ASPX page using the <object> tag.
How can I... more >>
collection editor, property grid, multiple types
Posted by jbaldi NO[at]SPAM transferflow.com at 5/24/2007 7:51:14 AM
I am trying to use a collection editor to edit multiple types as in
the following example:
http://windowsforms.com/blogs/faqs/archive/2006/05/26/how-do-i-allow-a-user-to-add-more-than-one-type-of-object-to-a-collection-at-design-time.aspx
The problem I am having is with the property grid. I ... more >>
webservice
Posted by Peter K at 5/24/2007 7:28:54 AM
Hi
I have an existing code-base with some functions which are used by a web
application (aspx and ascx).
Now I want to add a web-service front to these functions, so they are
available via webservice calls.
The problem I am running into is that the functions in the existing
codebase h... more >>
Installer: dynamically set value to interface dialog's textbox
Posted by nano2k at 5/24/2007 7:26:03 AM
How to dynamically set a value to a textbox that belongs to a dialog
of a custom interface?
I'm using VS 2003
Thanks.
... more >>
About DataGrid
Posted by Yael at 5/24/2007 6:59:01 AM
Hi,
I have DataGrid in mt Form,
How can I resize the DataGrid respectively to the Form size changes?
Thanking you in anticipation!
... more >>
Dialog Handling Shortcut keys
Posted by Emma Middlebrook at 5/24/2007 5:54:05 AM
Hi there,
I'm trying to handle some shortcut keys within my application and I
can't seem to get the code to work when you are trying to action
against a ctrl + other character.
I found a post
http://groups.google.co.uk/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/a0bf... more >>
int arrays between C# and C++
Posted by Joachim at 5/24/2007 5:01:00 AM
How can I transport int arrays between C# and C++ so that an int array
created in C# will be filled with contents in the C++ dll and so that this
content is accessible in the C# dll again.... more >>
Imoprtant - naming conventions
Posted by Koliber (js) at 5/24/2007 4:24:18 AM
sorry for my weak english
I want to put here this tematique:
What do you do to ensure that your names in code are good.
I think that
1) structure - of a code is about half work/invention programmer do
the second is the
2) names
personnaly I was (when I started to code in work) verry t... more >>
Importing a C#.NET dll into Delphi
Posted by sarah_c_clough NO[at]SPAM hotmail.com at 5/24/2007 4:12:56 AM
I have a dll created in C#.net, that I wish to call from Delphi 5. I
have strong-named the assembly, deployed it in the GAC, and registered
it with RegAsm, but whenever I create the pas file (either through the
'Import Type Library' option in Delphi, or via an InteropUtils program
I found on th... more >>
VB to c# conversion...
Posted by filia&sofia at 5/24/2007 3:36:32 AM
Hello,
any volunteers to convert VB source code below to c#? I really would
appreciate that, because I wouldn't like to learn two new languages...
This function can be found from ExceleTel Inc www-site and is
copyrighted by the corresponding corporation. Unfortunately, they
didn't have c# ver... more >>
How to disable the DataGridView sorting?
Posted by Sharon at 5/24/2007 3:27:01 AM
I'm using a DataGridView on a Form. I want to disable the clicking on the
columns headers to disallow the sorting.
How can I do that, but without deriving the DataGridView?
Is there any other way to disable the sorting of the DataGridView without
deriving it?
--
Thanks
Sharon... more >>
Minimizing all Forms together
Posted by ebiweb NO[at]SPAM gmail.com at 5/24/2007 2:52:20 AM
hi all,
I have 3 form (Suppose A,B,C) that all are TOPMOST.
from Form A i invoke( Run) form B ,and then Run C from B .
i need to to minimize the whole project from Form C .
but only form C minimized .
anybody can help me plz?
So thnx.
... more >>
StringDictionary vs Dictionary<>
Posted by Peter K at 5/24/2007 2:31:11 AM
Hi
are there any benefits in using StringDictionary over Dictionary<string,
string> ?
It appears they achieve the same thing... (I could be wrong of course).
thanks,
Peter... more >>
ADO.NET - Working with DataSet
Posted by Sheikko at 5/24/2007 12:39:51 AM
ADO.NET - Working with DataSet
=========================
HI, I want to create an application that interact with a DB. I wont to
use SQL statement, but I want to use DataSet.
- I have created my application
- From SERVER EXPLORER panel, I have added a connection to a database
(MyDB) and the ... more >>
Help with connection to WebServer via VB
Posted by jitsu NO[at]SPAM post.cz at 5/24/2007 12:30:49 AM
Hi all,
I have a problem. I need to connect Web Server, send a xml string
(query) to it and receive another xml string (resutl).
I have location of the Web Server like: https://extranet....com:8443,
then user name and password,
then I have the certifiace (I have already installed it to my
comp... more >>
Static instance Event fires more than one time
Posted by None at 5/24/2007 12:09:57 AM
Hi,
I'm facing a problem with static instances. I have created a
class called CustomList by deriving the class List<int>. Inside the
CustomList i have created Remove event (when any item is removed from
the List). After that i have created a staic instance for the
CustomList in my WebSe... more >>
predefined constant for conditional compilation based on NETCF or Full framework?
Posted by Sagaert Johan at 5/24/2007 12:00:00 AM
Hi
Is there a constant i could use to force conditional compilation based on
whether i compile for CF or the Full NET framework ?
Johan
... more >>
|