all groups > c# > august 2005 > threads for monday august 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
Accessing ViewState
Posted by wASP at 8/1/2005 11:59:02 PM
Hi again,
I'm having a problem accessing the ViewState object. I'm using the following
two functions - as copied from the MS docs - and state.count is zero in the first
- and the while loop in the second function never iterates:
/* ---------------------------------------------------------... more >>
Type.GetMethod with Generic method
Posted by Paul Welter at 8/1/2005 11:20:20 PM
I'm trying to get a method using Type.GetMethod. There are two methods with
that same name, one is a standard method, the other is a Generic method.
How do I get the Generic method? Is there a BindingFlag that will only get
the Generic one? Here is an example ...
[TestClass()]
public cl... more >>
^ operator in VB.Net what in C#?
Posted by Hiten at 8/1/2005 9:40:08 PM
Hi
in VB.Net 3^3 will output 27....
what about in C# if i use 3^3 it gives error? is there is another
operator for it or i have to maually write the code?
thanks
------------
Hitendra Patel
... more >>
Paranthesis in C#
Posted by Zest4Csharp at 8/1/2005 9:30:02 PM
Can someone please show me where to find documentation about the use of
paranthesis in the context shown in the sample line of code below:?
Button bt=(Button)sender;
Your help is truly appreciated as i am finding this retty confusing.
cheers
Zest... more >>
Populating a combobox from dataset/datagrid cell value
Posted by Robert at 8/1/2005 8:36:02 PM
I'm sure this is a fairly basic question, but I've been looking all over the
web for days for suggestions on how to do this.
I've got a datagrid that's bound to a dataset on my form. It includes
several columns, the last of which (with the header Quantity) contains int16
values. When a use... more >>
Maximize Print Preview Dialog?
Posted by Adam Right at 8/1/2005 8:13:47 PM
Hi,
How can i maximize the PrintPreview Dialog?
Thanks...
... more >>
changing code page
Posted by Mrozik at 8/1/2005 7:12:10 PM
Hi!
i read and update data from database that have
ISO-8859-2 code page set
default my application (windows app) run in polish code page
(win1250)
how can i read data and show them to user in default windows code page
and send them back to db in iso-8859-2 code page?
Pawel... more >>
Workflow Patterns
Posted by danths at 8/1/2005 6:29:53 PM
Hello,
In a workflow application where in the workflow is customizable, i
would like to defer the instantiation of the class till the workflow is
complete. e.g.
class ClassA {
object1 objA;
object2 objB;
object3 obj3;
ClassA( object1 v1, object2 v2, object3 v3)
{
obj... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
form1_Resize()
Posted by JJ at 8/1/2005 3:49:39 PM
I have some custom actions to run after "Resizing a Form". I used the code
below, but my actions are taken before the Form is completely resized. That
is not what I wante. I wanted to Completely Resize my form first and then
run my custom codes. How do I do it? Please Help!!!!!!!!!!
Thanks
... more >>
String Comparison
Posted by Randy at 8/1/2005 3:44:18 PM
Hello,
In comparing strings, is it just as well to use...
string1 == string2
or is it better for any reason to use the String.Compare of String.Equals?
Thanks
... more >>
Byte array to string
Posted by pkumar at 8/1/2005 2:01:03 PM
How to convert this byte array to string
byte[] b=new byte[100];
Is there any function or I need read one by one and build the string
thanks
... more >>
EPS Files
Posted by Mythran at 8/1/2005 1:34:48 PM
I need to display EPS files on a crystal report using C#. Is there a way to
do this without ripping off my arm and leg for currency?
Thanks,
Mythran
... more >>
RegEx To Ensure Str Has Only Valid Chars
Posted by Dianne Siebold at 8/1/2005 12:45:04 PM
I'm not sure if I can use regex for this or how to do it, but here's what I
need to do: I want to check that a string contains only the characters A-Z,
a-z, 0-9, -(hypen) or _ (underscore).
If the string contains any character other than this, return a value. So if
a string returns an a... more >>
How to catch ComboBox.Items.Clear()
Posted by mdb at 8/1/2005 12:38:30 PM
I currently catch the SelectedIndexChanged event on a ComboBox to perform
some processing when the user changes the selected item. But I also want to
know when the user clears the list, but I can't seem to catch any events that
would indicate when this is happening. I've tried SelectedIndexC... more >>
Using TempFileCollection
Posted by Claire at 8/1/2005 11:00:30 AM
How do I use the TempFileCollection class please?
The m/s halp files say i can use it to generate temp files but looking
through the help files, i can't actually see an obvious method that does
this.
I just need to create a temp file for writing data from a memory stream to a
file stream.
A... more >>
[visual studio 2003 build system] incremental build not optimal?
Posted by Thorsten Ottosen at 8/1/2005 10:36:10 AM
Dear all,
I work on a major system written in C# in visual studio 2003.
Our solution has 10+ projects and all projects are compiled with
/incremental.
In a C++ world, non-incremental builds aren't used for development...it
would simply take too
long to compile an update. So we would na... more >>
Refreshing a Windows Form
Posted by Robert Clark at 8/1/2005 10:34:52 AM
This a pocket pc/smartphone questions mainly, but i thought i'd ask the
question in the C# newsgroup. I have a form which i use to display
information from a web service. From this form i open another Form. On
this form i update the webservice which in turn updates the information
display... more >>
What is the C#.NET equivalent for java SocketAddress and ByteBuffe
Posted by yaron at 8/1/2005 10:15:06 AM
Hi,
for porting java to c# i need to know:
What is the C#.NET equivalent for java.net.SocketAddress and
java.nio.ByteBuffer ?
Thanks.
... more >>
ODBC connection dialog box
Posted by Jozsef Bekes at 8/1/2005 10:08:30 AM
Hello All,
is it possible to make the ODBC connection dialog box appear when =
connecting to a db using the classes in the System.Data.Odbc namespace? =
I could not find a way except for invoking the win32 API that I would =
want to avoid.
Thank you for any help.
BR,
Jozsef... more >>
Processes
Posted by Bob Allen at 8/1/2005 10:01:07 AM
I've been runing some code for a couple years now and have started to have
some issues with the Process.GetProcesses() locking up the program. It
doesn't error out or anything it just stops right on that line of code. This
is happening on Win2003 servers. And it only started happening last wee... more >>
Error message with AutoNumber column issue- update DB
Posted by sea# at 8/1/2005 9:53:05 AM
I implemented article "Inserting relational data using DataSet and
DataAdapter" from this link:
http://www.codeproject.com/cs/database/relationaladonet.asp In my code.
It has a perfect explanation; still I got stuck at one point.
Debugger shows, that it happens when I'm at this stage:
stati... more >>
Passing Business Objects through nTier Web App
Posted by Stuart Hilditch at 8/1/2005 7:59:36 AM
Hi all,
I am hoping that someone with some experience developing nTier apps can give
me some advice here.
I am writing an nTier web app that began with a Data Access Layer (DAL),
Business Logic Layer (BLL) and User Interface Layer (UIL).
The problem I found with this was circular refere... more >>
Simple Regex issue
Posted by CJ at 8/1/2005 7:52:40 AM
I'm not an expert on regular expressions, but I thought I knew how to
construct simple ones :-)
I have two very simple regular expresions:
"|1|(?<dt>\d\d-\d\d-\d\d\d\d).*" and ".*(?<dt>\d\d-\d\d-\d\d\d\d).*"
With the input string @"|1|01-08-2005 12:57:12", both regular
expressions match. But... more >>
Naming convention of functions
Posted by tonicvodka NO[at]SPAM hotmail.com at 8/1/2005 6:53:04 AM
What is the naming convention for functions in c#?
... more >>
Threading - Is This Clever or Stupid?
Posted by pagates at 8/1/2005 6:29:03 AM
Hi All,
Just a general threading question. Would it be considered good programming
practice, or a bad idea, or whatever, to create a thread with a special name
in order to "pass parameters" to the thread.
In other words, something like this simple example:
btnRunThreads_Click(object se... more >>
System.Management.PropertyDataCollection -> PropertyGrid ?
Posted by Tony Maresca at 8/1/2005 6:20:25 AM
R3JlZXRpbmdzLg0KDQpJIHdvdWxkIGxpa2UgdG8gZGlzcGxheSB0aGUgV01JIHByb3BlcnRpZXMg
Zm9yIGEgcHJpbnRlcg0KaW4gYSBQcm9wZXJ0eUdyaWQsIHdpdGggbWluaW1hbCBjb2RpbmcuICAN
Cg0KQSBXTUkgcHJpbnRlciBvYmplY3QgaXMgcmVwcmVzZW50ZWQgaW4gbWFuYWdlZCBjb2RlIA0K
dXNpbmcgdGhlIFN5c3RlbS5NYW5hZ2VtZW50Lk1hbmFnZW1lbnRPYmplY3QgY2xhc3... more >>
Input string was not in a correct format
Posted by r at 8/1/2005 5:48:06 AM
Hi,
I am poulating a textbox with a number from a db, based on
the current cultrue:
textBox1.Text =
String.Format(Thread.CurrentThread.CurrentCulture,"{0:###,###,###}",number);
Now, the number has the value: 9999, and it is shown as
9,999.
When I try to parse it:
int y = int.Parse(text... more >>
Instantiation of generics
Posted by Chris at 8/1/2005 5:23:04 AM
Hi,
I'm porting a fairly hefty n-tier implementation from .Net 1.1 -> .Net 2.0
(and fixing a few things in the process). One of the improvements I am
making is moving the existing non-generic collection code to generics using
the following template code. Basically a collection is built fr... more >>
Need help with multiple socket server
Posted by Winston Nimchan at 8/1/2005 4:36:31 AM
Hi:
I would like to build a socket server application that is user configurable
using XML (app.config) and would like some guidance.
I already have a single socket server working but would like to convert this
to a multi-socket application
I would like to specify in the app.config one o... more >>
VS/C# multiple projects organising source files
Posted by SanjayJain at 8/1/2005 3:05:36 AM
using vs2003/c#
we have several medium to large projects
How should we organise our source files
i.e. directories / namespaces / assemblies etc
1. some classes/groups of classes
are used in all our projects (usually abstract classes)
2. some classes/forms comprise of a
functional m... more >>
Security Warnings From FXCop - CA2122 & CA2123
Posted by orekinbck NO[at]SPAM yahoo.com.au at 8/1/2005 2:14:18 AM
Hi There
I am inheriting from DateTimePicker class to create a DateTimePicker
control with a configurable back colour. I got the original code from
http://dotnet.mvps.org/ then converted it to C# and it works OK in .NET
2.0 except for two warnings from CodeAnalysis:
CA2123 : Microsoft.Secu... more >>
GC calls in for MTA / STA thread
Posted by Mrinal Kamboj at 8/1/2005 12:00:00 AM
Hi ,
Some time back i had posted question regarding usage of GC.collect and
GC.WaitForPendingfinalizers calls , for which i had got appropriate num.
of convincing answers .
Now there's another point of contention , which as the subject explains
making such calls from a STA / MTA thread .... more >>
Access and Crystal Reports
Posted by Alberto at 8/1/2005 12:00:00 AM
My application uses Access and I have some reports. The problem is that when
I design the reports, I use the path of the database in my machine but in
the customer it will not be the same. How can I solve this?
Thank you very much
... more >>
xml to Database
Posted by EDI at 8/1/2005 12:00:00 AM
I have a XML which needs to be placed into Database. I am using a typed
Dataset and command builder. I loaded the xml into dataset using readXML
method. Now I want to place it into Database. But the rowstate property
remains unchanged because of which Data Adapter is not updating any rows in
... more >>
how to window search CSharp file word or phase??
Posted by larry at 8/1/2005 12:00:00 AM
Hi,
I would like to use window search to search a word in C# CS file which
create by visual studio.
But I can never get that word in the cs file.
for example, I used a name space: "myTopNameSpace.NameSpaceOne"
window search window:
file name: *.*
A word: "myTopNameSpace"
I can never ge... more >>
C# ASP.Net interop with MsWord
Posted by Jason Huang at 8/1/2005 12:00:00 AM
Hi,
I have no problem in creating or modifying a word document in ASP.Net, using
C#.
However, I don't know how to export database in SQL 2000 or MSAccess to
MSWord, given in the ASP.Net and C# environment.
I surfed the net and found some articles about interop ASP.Net with the
MSWord.
Bu... more >>
2 Questions about Crystal reports
Posted by Alberto at 8/1/2005 12:00:00 AM
1) How can I say to the crystal report viewer the number of copies?
2) How can I set the page configuration to horizontal?
thank you
... more >>
Form feed usage?
Posted by Adam Right at 8/1/2005 12:00:00 AM
Hi,
Anyone use the form feed '\f' character to print the documents. I cannot use
it, it remains undefined character on the paper.
I want to feed the paper to the second after printing the first invoice of
my invoices. But i cannot do it c# cannot send it the form feed character
rightly t... more >>
Memory uses of Guid and string
Posted by Arjen at 8/1/2005 12:00:00 AM
Hi,
I have a Guid value. I want to save this inside the memory.
What is the best way: save it as a Guid? Or as string?
Thanks!
... more >>
invoke a method by reflection£¬the method's parameters can not be ArrayList?
Posted by jerry051 at 8/1/2005 12:00:00 AM
I invoke a method by reflection, when this method's parameters is simple
type like int or string,the invoking is correct and secceed. But when the
parameters is ArrayList type, debuger tips me that meet
System.Reflection.TargetParameterCountException error, and parameters count
is not matching. ... more >>
format string question
Posted by MM at 8/1/2005 12:00:00 AM
Hi,
I have a param class containg these vars:-
string key; // eg: "WN"
object value; // eg: 1.2
string format; // eg "F2"
and I output these to a StreamWriter using
nc_file.Write("{0}{1:" + param.format + "}", param.key, param.value);
to give output like (using above egs) "WN1.20"... more >>
Is it possible to catch a keyup event in a panel
Posted by graeme g at 8/1/2005 12:00:00 AM
hi
is it possible to catch a keyup event in a panel? as i don't seem to be
able to do it...
i've even created a message handler for WM_KEYUP in the WndProc
procedure but nothing works :-(
any help appreciated...
thanks
graeme... more >>
Data extraction to MSWord in ASP.Net C#
Posted by Jason Huang at 8/1/2005 12:00:00 AM
Hi,
To make it short, how do we do the data extraction to MSWord using ASP.Net
C#?
Any help will be appreciated.
Jason
... more >>
|