all groups > c# > january 2008 > threads for wednesday january 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
C# compiler bug challenge!
Posted by Alun Harford at 1/23/2008 10:07:24 PM
I've recently been playing with TypedReferences (basically type-safe
pointers).
You can't have a field of type TypedReference because it would make
garbage collection really hard (the garbage collector would need to work
out that you're holding on to a TypedReference to a variable within a
... more >>
Socket.BeginReceive does not handle incoming data immediately
Posted by Bruce at 1/23/2008 9:51:32 PM
Hi
I have a problem with the BeginReceive method in Socket class while
using it to receive responses from a server. I have reread my code
many times but cannot figure out why the delay is happening.
My scenario is this:
1. I send a request for user1 to a server that will trigger 3
responses.... more >>
Client Server Application
Posted by AliR (VC++ MVP) at 1/23/2008 9:38:56 PM
Hi Everyone,
I'm an extreme novice when it comes to C#.
I am trying to start a client server application that is going to
communicate with a server over the internet, but I'm not sure what to use
for my communication layer.
There are some things that I'm using a Web Service for. For ex... more >>
Question about ASP.Net page expiration
Posted by Danny Ni at 1/23/2008 8:12:07 PM
Hi,
I have a page CourseEditor.aspx to allow users to modify course information.
I am having problem with page expiration. Here are the steps I take to
reproduce the problem:
(1) I open a browser to http://localhost/CourseEditor.aspx?cid=105, then I
modify the content of course 105 and s... more >>
Caching dictionary in local drive
Posted by Andrus at 1/23/2008 7:28:16 PM
I'm creating WinForms 5-language client-server application which allows to
add/change translations at runtime.
I have table in server which contais translations, 9000 records :
MainLanguage CHAR(254) primary key,
Language1 CHAR(254),
Language2 CHAR(254),
Language3 CHAR(254),
Language4 CH... more >>
Emulating behaviour of C# string
Posted by Paul E Collins at 1/23/2008 6:17:10 PM
I plan to write a class representing a particular type of string from an
obsolete machine architecture. It involves a non-ASCII character set and
has some rendering quirks such as "characters" that expand to reserved
words when displayed.
If possible, I'd like my string class to behave like... more >>
Reflection over an array of objects
Posted by Flomo Togba Kwele at 1/23/2008 5:01:06 PM
I have an array of objects. Each object has 14 private fields.
For each object, I would like to determine the maximum number of
characters contained within that field, trimmed of any trailing
spaces.
Is it possible to reflect over each of the private fields of an object
to determine the num... more >>
How do I write an add-in for IE?
Posted by jim at 1/23/2008 4:19:00 PM
I'm looking for sample code to help me learn how to write a toolbar add-in
for IE.
It can be VB6, VB.Net, C# ... heck, I may even try a little C++.
Whatever you've got....I want it.
Thanks!
jim
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
System.Drawing namespace doesn't seem to be there in 2.0
Posted by tshad at 1/23/2008 3:59:51 PM
I am running C# in VS 2.0 and when I do:
using System.Drawing;
I get an error saying that namespace doesn't exist. When I do System. I get
a dropdown with a bunch of namespaces but Drawing is not one.
Why not?
Thanks,
Tom
... more >>
problem accessing xml file via stream
Posted by Jeff at 1/23/2008 3:02:59 PM
Hey
..NET 2.0
In my code am I trying to access an xml file using streaming. My code
compile but I think there is some kind of error in my code...:
HttpWebRequest request = (HttpWebRequest) WebRequest.Create( <url to xml
file> );
request.Credentials = CredendtialCache.DefaultCredentials... more >>
List<string>
Posted by Lubomir at 1/23/2008 2:41:01 PM
Hi,
I want to store string members in a generic list. When I assign to the
member of a list a new value, I would like it would be reflected in the
collection also:
string firstString= "first";
myList.Add(firstString);
firstString="second";
string test = myList[0];
I wanted the test... more >>
DataGridView calculated field
Posted by Aleksey Timonin at 1/23/2008 2:29:47 PM
Hi guys,
I have a DataGridView binded to DataTable.
In the DataTable I have an "ID" field.
How can I create calculated column in the DataGridView that gets as value
object (string) from my list, where item index in the list is equal to value
in "ID" field?
Thanks a lot
Aleksey
... more >>
Complex Windows Applications in C# -- how high is the bar?
Posted by Norm Powroz at 1/23/2008 1:15:41 PM
Obviously, this is kind of a newbie question, but bear with me...
I am looking for information/opinions on the level of complexity that
can be handled in C#, given the current state of the GUI support,
using WinForms or WPF. Here's why:
I have an application that is several years old, constr... more >>
strings and spaces
Posted by RobcPettit@yahoo.co.uk at 1/23/2008 12:43:10 PM
Hi, Ive been breaking down my string with regex and havnt been doing
to bad for a begginer. However Im struggling now. Examole string = '10
04 thismaybemissing 10 rob 1 2 3 robagain 3 74 * 70 4 2' This is
normally how the string turns out. Now and again the
'thismaybemissing' is missing giving m... more >>
"An object reference is required for the non-static field, method, or property" compilation error generated from non-static context
Posted by dejas9000@gmail.com at 1/23/2008 12:03:12 PM
Hello.
I have see the error in the subject line pop up before when attempting
to reference a non-static member from a static context, however I am
now having this issue when referencing a non-static member from a non-
static context and can't quite figure out why. Can anyone shed some
light ... more >>
Use ActiveX Control in a Class
Posted by rzaleski at 1/23/2008 12:02:59 PM
Is there a way to initialize an ActiveX control in a class? I tried
copying over the code that was auto generated when I added the control
to a form, but I am hung up on the following line:
this.mycontrol.OcxState = ((System.Windows.Forms.AxHost.State)
(resources.GetObject("mycontrol.OcxState... more >>
How do you directly send messages / events to controls?
Posted by TheSilverHammer at 1/23/2008 12:01:03 PM
I have two examples where I need to do this:
Example 1:
Lets say that I have a bunch of TextBox's on a form. All these textbox
objects share a common KeyPress event which validates the input to make sure
that it is a number, control character (IE: Backspace, enter key) or special
symbol ... more >>
TimeSpan object question
Posted by kellygreer1 at 1/23/2008 9:22:26 AM
I haven't worked with the TimeSpan object before. So bare with me if
this seems like a newb question. But if I wanted to know how many
days from the current date until 2/4/2008. I have written this much
code so far.
DateTime startDate = new DateTime("2008-02-04");
DateTime c... more >>
XmlSerializer and Persistance
Posted by Trecius at 1/23/2008 8:49:01 AM
Hello, Newsgroupians:
I am trying to serialize an instantiated object using XmlSerializer. I
would like to serialize the object to an XML file; however, I'd like it to be
in a subcategory in the XML file, for I'd like to save other settings in the
XML file. Is it possible to do this using... more >>
Data record from Database, displaying as special characters in web page
Posted by chike_oji@yahoo.com at 1/23/2008 8:45:49 AM
Hello,
I am displaying data retrieved from a database as a httpresponse in a
webform.
I noticed that some characters such as the comma (,), display as
special characters in the
web browser (Internet Explorer). It displays something like $^^%
instead of a comma.
Please how can I have the br... more >>
User-Agent problem
Posted by Jeff at 1/23/2008 8:27:46 AM
hey
..NET 2.0
In my code I've been accessing a xml file like this:
string url = <url> // for example http://www.test.com/default.xml
XmlReader reader = XmlReader.Create(url);
But now I need to add the User-Agent to this request. the Url I request
doesn't work if I don't provide the User... more >>
Another ASCII Formatting Question
Posted by pbd22 at 1/23/2008 8:09:04 AM
Been struggling with find the correct ESC sequence for this.
A telnet session is established using Win XP DOS prompt.
I have provided a custom telnet screen - not the Server 2003
telnet. I am taking control of the port 23 session using the basic
API tools available to me in .NET.
I want... more >>
Storing and retrieving font and color settings
Posted by Keon at 1/23/2008 8:06:25 AM
Is storing ColorDialog.Color as simple as colorDialog.Color.ToString()?
And to retrieve it just get that value that was stored and then use it to
assign your color to wherever you need it.
I have not tried it yet, but I would like to know if that is all it takes.
Thanks
... more >>
ftp request through ftp proxy
Posted by squall at 1/23/2008 6:50:55 AM
Hi,
I have to upload files on a ftp server through a ftp proxy with
Dotnet.
I have a 'System.InvalidOperationException' with this message : "The
requested FTP command is not supported when using HTTP proxy". Is
there a solution to use a FTP proxy and not a HTTP proxy ?
Thanks
Marc
My cod... more >>
Windows Forms Event Order
Posted by James Lennon at 1/23/2008 6:11:03 AM
Can someone tell me all the events that are raised when a Windows Form is
being rendered. I am also interested in the order in which these events are
raised.
Thanks,
James... more >>
asp.net C# writing hebrew to excel that uses asDB
Posted by Oren at 1/23/2008 5:57:00 AM
Im using excel as a DB in asp.net .
I get a request with parameteres in hebrew.
I read them and then write them to excel file.
English and numbers looks fine in the excel file but the hebrew is
gibbrish.
So its something like:
string sName = Request.Form["Name"];
FileInfo f = new FileInfo(XLS... more >>
sqlTransaction Complete Problem-dataype change from image to varbi
Posted by Phil Johnson at 1/23/2008 3:27:01 AM
Hi,
This is being called in a C# loop within an ado.net transaction from C# 1.1
code. It is used to write large file data to a SQL Server database in
chunks, rather than in one go.
I had the stored procedure below, which worked until the image datatype was
changed to varbinary(max).
... more >>
Which is best for storing strings: .resx or app.config?
Posted by Artie at 1/23/2008 3:02:35 AM
Hi,
I've inherited an app that currently reads in hard-coded strings (like
error messages) from app.config.
It has been suggested that these would be better-placed in a .resx
file.
Is there any definitive thinking on this? Is there a most suitable
place that such strings should go?
R... more >>
StartWith method in Mark DLinq DynamicQueryExtension class
Posted by Andrus at 1/23/2008 1:27:28 AM
I tried to create StartsWith extension method for Mark DynamicQueryExtension
class published earlier.
I got compile error shown in comment.
How to fix ?
Andrus.
/// <summary>
/// Returns all items whose property name starts with value, case
insensitive.
///
/// Sample:
/// var q ... more >>
How to make Debug.Assert() behave like a breakpoint in the IDE
Posted by pinkfloydhomer@gmail.com at 1/23/2008 1:12:46 AM
I would expect that Debug.Assert() would break into the IDE and stop
on the relevant line of code and highlight it. But instead I get a
dialog asking if I want to abort or ignore etc.
How can I get the behavior I expected?... more >>
Prevent an interface reference to an internal class
Posted by Tom at 1/23/2008 12:23:00 AM
Hi
I defined a class, which contains a private class with properties to an
internal field. The private class is shown by an interface to outside of the
outer class. What can I do to prevent, that a variable of the interface typ
can be defined to make a reference to the internal class. Other... more >>
Enryption and Decryption in ASP.net
Posted by balamurugan.alagumalai@gmail.com at 1/23/2008 12:00:41 AM
How to Encrypt or Decrypt the datas in ASP.net without using Server
Memory(Memory Stream).
Thanks,
Bala.... more >>
|