all groups > c# > july 2006 > threads for sunday july 23
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
Text not displayed on some computers
Posted by schaf at 7/23/2006 11:30:38 PM
Hi NG !
The following code wirtes info text in a listbox. On my computer this
text would be shown in the listbox, on another computer (with the same
resolution) this text would not be shown. Why ? I do not have any clue
!
public void OnBackupProgress(object sender, EventArgs ev) {
//... more >>
passing values from text file into xml file(urgent)
Posted by C# to XML at 7/23/2006 10:42:01 PM
Hi Friends,
I am new to csharp , I am using the following code to write into xml file :
Just go through the code :
fp = File.OpenText(Server.MapPath(".\\upload\\") + "test.txt");
string info = fp.ReadToEnd();
string[] arInfo = new string[4];
// define which charac... more >>
Search Problem
Posted by Jaye at 7/23/2006 8:43:01 PM
I using the follow query to search data in SQL SERVER EXPRESS
"SELECT Style_id as STYLE_ID, Style_id +' ' +Style_no as STYLEDIS FROM
STYLE for xml auto"
It will return the result in XML format.
when the number of return result larger than 750, the XML will some problem,
like lose the space:... more >>
Implementing an ODBC driver for a database written in C#...
Posted by redefined.horizons NO[at]SPAM gmail.com at 7/23/2006 8:08:13 PM
I am working on a specialised database that is written in C#. I would
like to create an ODBC driver that allows external programs to conenct
to my database. Is is possible to support ODBC in a high-level .NET
language like C#? Or will I need to somehow wrap support for an ODBC
driver written in ... more >>
Setting Image in DataGridView image column?
Posted by David Veeneman at 7/23/2006 7:29:48 PM
I'm trying to set images in a bound DataGridView image column. My enum has
three possible values, and I have an image that I want to show for each
value:
EnumValue.OK --> GreenLight.gif
EnumValue.Caution --> YellowLight.gif
EnumValue.Violation --> RedLight.gif
I want to display the gra... more >>
Subclassing via NativeWindow
Posted by Laura Martignas at 7/23/2006 6:31:37 PM
Hi everybody
I'm trying to subclass Winamp's main window in order to develop a
software which will interact with Winamp.
For testing, I'm trying to intercept the closing of this window via
WM_CLOSE, by showing a MessageBox, but it doesn't work althoug the code
seems to be correct. Do you n... more >>
Geniric Lists<>
Posted by Robert Bravery at 7/23/2006 6:15:25 PM
Hi all
I create a generic list like this:
private List<string> _DimensionList = new List<string>();
How can I create a list having two columns of type int and string
Then I normally add to the list like so:
_DimensionList.Add(rowDimensionValue["DimensionValueName"].ToString());
How would I... more >>
Interface vs. Abstract class
Posted by Valmont at 7/23/2006 4:35:29 PM
Moving from C++ to C# .Net:
Why does an interface exist in C# when I can create one by making all methods in
the abstract class "pure virtual"?
Did I miss something conceptually or is the "interface" just here for my
conveniance?
If it is a convinient thing, what style is accepted by the C#... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Weird compiler error: int?[]
Posted by jytylr NO[at]SPAM gmail.com at 7/23/2006 4:28:45 PM
I'm getting a compiler error that says "Cannot convert from int[] to
int?[]".
I have no idea what this means.
Here's a screenshot:
http://www.sendspace.com/file/6o20pn
Any ideas?
Thanks.
... more >>
I/O-Redirection:Console.In terminates unexpectedly
Posted by mabra at 7/23/2006 4:17:57 PM
Hi All !
Problem:Reading/duplicating "Console.In" fails for unknown reason.
I wrote a little console helper tool, named TEE, which just duplicates
the StdIn to the StdOut AND an additional stream. Looks working
basically and the part that does this is like the following:
private static ... more >>
Unable to cast object of type 'Foo.Bar' to type 'Foo.Bar'.
Posted by mypetrock at 7/23/2006 1:03:43 PM
Has anyone run into this error message?
Unable to cast object of type 'Foo.Bar' to type 'Foo.Bar'.
I'm trying to cast an object of type Foo.Bar that I got out of a hash
table into a variable of type Foo.Bar.
Foo.Bar data = (For.Bar)input["Data"];
Thanks,
mypetrock
... more >>
HttpWebRequest configured with Method "POST" still generating "GET
Posted by ReGex at 7/23/2006 12:45:01 PM
I have been working on a little project in C# to log into a website (using
code inspired/riipped from
http://www.codeproject.com/cs/internet/bloglivejournal.asp) but when I
request the response, the packet that is sent out is an HTTP GET (I'm
watching the outgoing packet via Ethereal). The ... more >>
Internet Explorer Server
Posted by pigeonrandle at 7/23/2006 11:12:02 AM
Hi,
Does anyone know how get text from/ set text to 'child windows' of an
Internet Explorer Server class window?
Using WM_SETTEXT would be great, but i don't know how to get the handle
of a child window in an Internet Explorer Server?
All comments gratefully received,
James Randle.
... more >>
Creating an ASP.NET Web Service project can't find template for C#
Posted by Quido at 7/23/2006 9:20:01 AM
I am using Visual Studio 2005
If I go to:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vsintro7/html/vbwlkCreatingDistributedWebApplicationWalkthrough.asp
It says:
To create an ASP.NET Web Service project
On the File menu, point to New, then click Project to display ... more >>
scanf or sscanf
Posted by ewolfman at 7/23/2006 5:07:57 AM
Hi all,
I've had a look at this post:
http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_frm/thread/a5bec880d8efbb92/184ca9e25136494b?lnk=st&q=&rnum=1&hl=en#184ca9e25136494b
But I couldn't get it to work.
In short, how can I call scanf or sscanf directly from C#... more >>
Loading Embedded Resources
Posted by Ryan Ramsey at 7/23/2006 3:37:03 AM
I currently have an RTF file added to my project as an embedded resource.
I am then using the following code to read it into a richtextbox:
Stream stream =
this.GetType().Assembly.GetManifestResourceStream("DKPCalc.doc.rtf");
if (stream != null) {
StreamReader sr = new StreamReader(s... more >>
How to dispose of array of struc that is reused many times
Posted by Jim at 7/23/2006 2:40:02 AM
In a C# project I'm working on for an iterative design application, I need
to dispose of a large arrray of a struct object and reinitialize the
array between iterations.
That is, the user starts a design, and the program creates an array of
objects defined as follows:
public struct DES_TYPE... more >>
Executing code at function exit
Posted by Danny Liberty at 7/23/2006 2:30:06 AM
Hi,
I would like to be able to execute code when a function exits. In c++ I
would have created an object on the stack in the function entry point
and it's destructor would be called when the function exits as
following:
void func()
{
MyObj obj;
.....
} <- Destructor code of MyObj called h... more >>
|