all groups > c# > march 2005 > threads for tuesday march 22
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
2005 version of compiler available when?
Posted by _R at 3/22/2005 11:34:31 PM
Does anyone know when the release version of the 2005 VS/VC# will be
available?... more >>
Creating new buttons?
Posted by Radi Radichev at 3/22/2005 11:34:09 PM
Hi,
can somewone explain to me how can i create buttons, that have not the
standard windows look. I want to create a button with my own look and feel.
Can you give me exmaples or smomething? Thanks
... more >>
wizard like application in asp.net
Posted by femi george via .NET 247 at 3/22/2005 10:35:13 PM
hello,
how can i create a wizard like application in asp.net?
thanks
-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)
<Id>6hpzRQr4d02ZuMHrYWG2Jw==</Id>... more >>
custom components
Posted by David Sobey at 3/22/2005 10:07:36 PM
i'm contemplating making set of custom components like drop down boxes etc,
to make a UI with a cool look and feel, like Modo (www.luxology.com/modo).
This would be done by inheriting from UserControl right?
Also, would creating a custom control like a text editor (underline spelling
errors... more >>
Using interfaces in C# vs VB.net
Posted by damiensawyer NO[at]SPAM yahoo.com.au at 3/22/2005 8:27:55 PM
Hi all,
I'm in process of moving from vb.net to c#.
I've just created my first class which uses an interface. In VB.Net, I
could use the IDE to automatically fill out the signatures of the
properties/methods that the class needs to implement because of the
interface.
Would someone mind... more >>
string manupilation
Posted by chris at 3/22/2005 7:51:02 PM
Hi there a receive a string from a recordset which contains a telephone
number.
It looks like: (03) 9888 5566
How can I manipulate the string, so that the () are deleted.
It should look like this: 03 9888 5566
I also receive a string which contains a mobile number. There should be
a... more >>
Property question
Posted by Aamir Mahmood at 3/22/2005 7:46:16 PM
Hi All,
Is it possible to make a property in C# in which 'set' is private (or
protected or internal) but 'get' is public?
-
Aamir
... more >>
Finding method by signature at runtime
Posted by Pekka Henttonen at 3/22/2005 7:03:54 PM
Let's say there is an object which has several methods all taking
different object as argument:
class TestObject {
public void SetTitle( TitleObject title );
public void SetDate( DateObject date );
<etc.>
}
How can you find out which method to call at runtime when you have an
obj... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
cannot be serialized : does not have a default public constructor
Posted by John Grandy at 3/22/2005 6:15:49 PM
make a call to XML Web Service WebMethod ... returns object[] myArray with
no error ...
myArray[] contains objects of type StringKeyStringValue
runtime error occurs on accessing properties of myArray[i]
<<<
ex.Message "Server was unable to process request. --> There was an error
gener... more >>
Regex to find new line chars within XML tags?
Posted by Burt at 3/22/2005 6:14:52 PM
I'm pulling back contact data from Exchange using WebDAV. The problem
is a third party app is adding random "\r\n"s within the XML data,
corrupting it.
I want to remove these, but only if they occur within the XML start or
end tags (between the "<" and the ">"), since some actual data does
ha... more >>
C# Saves two copies of a file!
Posted by JM at 3/22/2005 6:07:01 PM
Hi!
I've worked hard to get my data into Excel from a bunch of text files. I've
opened Excel and dumped the data in. I want to save the workbook/spreadsheet
but have not set a file name yet in the coding.
Running the below code I get a Dialog box that prompts for a file name and
path. ... more >>
Extensibility project in c# .NET for Word2003
Posted by frechy NO[at]SPAM msn-dot-com.no-spam.invalid at 3/22/2005 5:36:03 PM
Hello,
I'm developing an add-in for Word2003 and I have some troubles. I’m
using VS .NET 2003 ->extensibility project.
The add-in works fine with the first document in Word I create/open
but after It fails, the add-in doesn’t work anymore.
I’m looking for an add-in source code, to see why... more >>
Q: Using the ref gives me an error...
Posted by Visual Systems AB (Martin Arvidsson) at 3/22/2005 5:34:05 PM
Hi!
I'm trying to use the "ref" to return a value, see snippet below.
I execute AddTask first, this executes FindTaskByID.
The compiler gives me this error...
(55): Argument '2': cannot convert from
'Microsoft.Office.Interop.Outlook.TaskItem' to 'ref
Microsoft.Office.Interop.Outlook.TaskIt... more >>
creating two-dimensional array...
Posted by ZeroVisio at 3/22/2005 5:27:04 PM
Hi,
Is it possible to create two -dimensional array using ArrayList in C#? I
know you can do one-dimensional array but i dont know how to do
two-dimensional. in my case my number of columns remain same, but # of rows
are variable. Right now I'm using DataTable for this but my feeling is it ... more >>
Problem with broadcast in C#
Posted by Ryan Learns Sharp at 3/22/2005 5:05:07 PM
Can anybody help and explain why?
I wrote two programs just to test broadcasting in C#, which both run on the
same machine. However, the receiver program can't receive any messages from
the sender program. Key parts of the source codes are listed below:
/****** Sender.cs *****/
int remotePo... more >>
What is the best help file choice for an app these days?
Posted by Michael Rodriguez at 3/22/2005 4:58:13 PM
I have a smart client application written in C#. Since the app will be
downloaded from the web onto the client's PC, I was wondering what the best
help file format would be. Should I stick with a .chm file? Is there a
newer recommended format from Microsoft that I should use instead? Would... more >>
can streamreader specify a format?
Posted by Robert Megee at 3/22/2005 4:47:19 PM
First let me say that this newsgroup rocks! The ideas and information
here have helped me to no end.
Now for my question. I'm opening a file that is nfs exported from
an OpenVMS system. On that system the file is a text file. However
when I open it on my dotnet server, it isn't. I know th... more >>
Why cast to Object to compare strings?
Posted by Samuel R. Neff at 3/22/2005 4:44:22 PM
Why would you cast two strings to objects to compare them? I saw code
in an MS sample on MSDN and don't get it.
if ( (object)name == (object)attr.name ) {
both "name" and "attr.name" are declared as string.
http://msdn.microsoft.com/XML/BuildingXML/XMLinNETFramework/default.aspx?pull=/... more >>
Ispostback
Posted by Mathana g at 3/22/2005 4:35:11 PM
Hi,
I am getting Ispostback property value as true even the page loads very
first time(used Server.Transfer for navigation)
Even I tried with
Request.Url.AbsolutePath != Request.UrlReferrer.AbsolutePath
also. But could not solve the problem
... more >>
wml control
Posted by goodmannewz at 3/22/2005 4:23:02 PM
is there any control so that I can use it to parse Wireless Markup Language
and show it in the control? I want to develop a window form application by
using c#, it would be convenient for me if there is a control.
Thanks.... more >>
How do a trap a process kill attempt?
Posted by Peter Steele at 3/22/2005 4:04:45 PM
I want to trap any attempts to kill my C# application and so that I can
execute shutdown code and let the app die gracefully. How can this be done?
... more >>
On Microsoft Visual C# 2005 express edition beta how can projects be viewed outside of the program?
Posted by paulrosenthal NO[at]SPAM juno.com at 3/22/2005 3:48:23 PM
Hello,
On Microsoft Visual C# 2005 express edition beta I need to view my
program (project I made) outside the program. How do I do this?
... more >>
write to Microsoft outlook
Posted by Harry at 3/22/2005 3:41:01 PM
How does one write an entry to Microsoft outlook using code.. ie a name and
time to a fixed date .. are there any samples codes around
... more >>
abstract and a static method (Help)
Posted by Polo at 3/22/2005 3:19:21 PM
Hi
I have a abstract class and some other than inherite from it
I woul like to return a bitmap (defined in resource) from the each subclass
(a bitmap that is global (static))
Thank's in advance
public abstract class Segment
{
static public Bitmap GetBitmap()
{
return n... more >>
How do I make my project in microsoft visual c# 2005 express edition beta viewable outside of the program?
Posted by paulrosenthal NO[at]SPAM juno.com at 3/22/2005 3:13:27 PM
Hello,
I just downloaded microsoft visual c# 2005 express edition beta and I
love it! Just for a problem. How do I view a project outside (example
..exe). Would anybody have any suggestions?
... more >>
Q: is there a C# equ. of the Delphis With x do?
Posted by Visual Systems AB (Martin Arvidsson) at 3/22/2005 2:58:59 PM
Hi!
I often come across situations where i have a major code string for
accessing objects, variables and so on
In delphi, you could enter:
With mainObj.ThisControl.ThisProperty do
begin
x := dsdsa;
end;
instead of mainObj.ThisControl.ThisProperty.x := dsdsa;
It it possbile to do... more >>
ASP.NET page compilation error
Posted by Joachim at 3/22/2005 2:43:03 PM
I made some project changes (which seems it doesn't help if I undo) which
have created compilation error:
"
Server Error in '/PCSWebApp1' Application.
--------------------------------------------------------------------------------
Compilation Error
Description: An error occurred during ... more >>
Reflection
Posted by Jon Turner at 3/22/2005 2:14:56 PM
Is this possible with reflection ? I want to have multiple variables of the
same class. Each variable would have
an attribute associated with it. The class would be responsible for
performing queries dependent on the attributes
associated to that instance. If so, what would the code look ... more >>
DataView
Posted by web1110 at 3/22/2005 12:45:25 PM
This is a rehash of a response question I made down below.
I am playing with the NorthWind database. I have created a DataSet and
loaded the Employees table into it. I have created a DataView on that
table.
Now, I am having trouble putting all the parts together to retrieve a single
row o... more >>
Life of a thread
Posted by Zeng at 3/22/2005 12:28:07 PM
Hi,
If a thread goes out of scope and the working proc (ThreadStart) is done
processing, does it eventually get finalized just like unreferenced memory?
thanks!
... more >>
general code
Posted by Hrvoje Voda at 3/22/2005 12:14:56 PM
How can I write this code in general ?
DatasetDVD.ActionRow aRow = datasetDVD.Action.NewActionRow();
I would like to write a code in witch I don't know the name of the table in
dataset !
Hrcko
... more >>
Complex Regular Expression
Posted by ENIZIN at 3/22/2005 12:03:02 PM
Hello,
I'm having a bit of trouble creating my regular expression and need a guru's
help!
Here's what I have...I have a sequence of characters that need to be
validated against the database.
string: ACCCGUCAU[5Br]IAACCU
What I'm trying to do is load the available values from the dat... more >>
How to make listviewItem looks checked ?
Posted by cyshao at 3/22/2005 11:42:12 AM
How to make listviewItem looks checked ?
Hi my friends:
I have a listView with CheckBoxes attribute as True.
I use code to set an ListViewItem.Checked = true, but UI checkbox is
still looks unchecked.
Ho, coulde you tell me how to resulve the problem?
Thanks
CYShao^_^
... more >>
Remoting in C#
Posted by Lars Beckmann at 3/22/2005 11:41:09 AM
I am currently developing an application (client and server), which uses
remote-objects to enable the client to execute some methods on the server.
The first problem appeared due to security restrictions. I tried to generate
a key-file and put it in the AssemblyInfo but that didn't fix the prob... more >>
Winform question
Posted by DBC User at 3/22/2005 11:35:41 AM
Hi,
How can I create a panel like our .Net IDE, where I can pin a view to
stay there or unpin them so that they get moved to the side to give
more view room.
Example, Solution explorer or properties view.
... more >>
C# app call to ASP.NET web page
Posted by guy at 3/22/2005 11:22:07 AM
Hi,
I need to make a call from my C# application to an ASP.NET web page and pass
some parameters to it and receive back a return value.
Anybody know what the class/function name is in C# to do this?
I'm looking for something like:
string xxx = "http://www.myweb.com/test.aspx?param1=aaa&p... more >>
Comparing application version with network file?
Posted by Michael Kellogg at 3/22/2005 11:17:05 AM
At the beginning of program execution, I want to compare the executing
version of the program against the network copy to see if there's been an
update. In the "Properties" window of an EXE, I can see the version there,
but cannot figure out how to get the version out programmatically.
Any... more >>
Confused with ExecuteScalar method of SQLCommand
Posted by Dinesh at 3/22/2005 11:01:02 AM
Hi,
I have one stored procedure in SQL server in which i have written one
insert statement. Now in my cs file i pass the parameters require to execute
that stored procedure and finaly by mistaken I used command.ExecuteScalar
instead of command.ExecuteNonQuery. Surprisingly i am able to inser... more >>
where to put #define
Posted by Wilfried Mestdagh at 3/22/2005 10:59:05 AM
Hi,
If I put a #define somewhere in a file then the compiler complains with
'cannot define/undefine after first token in file'
So I plase #define in very begin of file, but then compiler say 'single line
comment or end of line expected'.
Now what ?
The second error does really not gi... more >>
A Map of my Solution ! - any tool available !
Posted by msnews.microsoft.com at 3/22/2005 10:47:07 AM
Hi,
Is there any application or Tool,
which will give me the following information:
1. All the functions in my solution.
2. Which function is called from which location.
Based on my solution will I get a chart?
Thanks for your time.
Regards
Anand Ganesh
... more >>
#define help..
Posted by C# beginner at 3/22/2005 10:25:01 AM
Can someone please help with converting this c++ to c#. I couldn't find the
macro of CTL_CODE in c#.
#define CF9_PACKET CTL_CODE(FILE_DEVICE_CF9, CF9_IOCTL_INDEX +21,
METHOD_BUFFERED, FILE_ANY_ACCESS)
Thanks in advance,
... more >>
Streamreader help
Posted by collinse NO[at]SPAM gmail.com at 3/22/2005 10:18:32 AM
**** PLEASE HELP ME ******************************=AD******
***** SEE BELOW*************************=AD****************
how can i simply get a string reader into a string that i can modify?
The issue is i can not simply save the readline into a string for
manipulation and output. please help me.... more >>
AS400 database access over COM+ (ADO.Net + C#)
Posted by Daniel Santana at 3/22/2005 9:57:01 AM
Hi, could anyone help me?
When I want to access AS400 database i use some code like the following:
{
string strDataSource = "128.2.2.2";
string strDBUser = "dbUser";
string strDBPass = "dbPass";
OleDbConnection objConnection = new OleDbConnection
("Provider=IBMDA400.... more >>
Command Pattern implementation with bound winforms controls?
Posted by Samuel R. Neff at 3/22/2005 9:45:18 AM
We're working on implementing a Command Pattern design with our
application in order to help facilitate undo/redo. This is fine four
user actions we control which basically means menu actions.
However, it's not quite so clear for bound controls. We don't
directly interact with the change--... more >>
Issue with HttpWebRequest & multipart/form-data
Posted by Du at 3/22/2005 9:42:13 AM
I'm trying to automate the upload process to yousendit.com, but the file
size doesn't add up and yousendit.com keep rejecting my upload (it accepts
the upload until the very end)
I don't know what i'm missing, I use Fiddler and I got my header and body to
a very close match, but the content... more >>
C# design patterns
Posted by Matthius at 3/22/2005 9:39:03 AM
Greetings,
I am a database guys trying to get into C# and design patterns. I really
like the "Head first design patterns" book but don't like that it has
samples in java. Is anyone interested in re-writing all of the java
examples in c# so that the book is usable for C# stundents? I have... more >>
Screen Saver Enabling/Disabling
Posted by HumptyNotSoDumpty NO[at]SPAM ic24-dot-Net.no-spam.invalid at 3/22/2005 9:36:01 AM
Does anyone know if there is a problem with re-enabling the Screen
Saver after it has been disabled programmatically.
I am using the SystemParametersInfo function within User32.dll, and
have been successful in disabling the Screen Saver, but it does not
work for re-enabling. The only way I ca... more >>
C#
Posted by TSDing at 3/22/2005 9:34:12 AM
Dear all,
1. Is it true that C# comes with .net 1.1 sdk and it is free ?
2. Will the .net 2 comes with C# ? will it be free too ?
3. If 1 and 2 are true, is there a possibility that one day it will be a
paying product ?
Regards
TSDing
... more >>
Converting "Enter" to "Tab"
Posted by Dave McCloskey at 3/22/2005 9:09:22 AM
How can I convert the "Enter" key to a "Tab" so my application will act like
"Tab" has been hit when the "Enter" key has actually been depressed. This
gives type-writer functionality to programs.
I was able to do this very simply in VB6, however, I have not found a method
to do this in .NE... more >>
Object reference not set to an instance of an object.
Posted by FredC at 3/22/2005 9:05:08 AM
OS Name Microsoft Windows XP Professional
Version 5.1.2600 Service Pack 2 Build 2600
Total Physical Memory 1,024.00 MB
MDE 2003 Version 7.1.3008
..NET Framework 1.1 Version 1.1.4322 SP1
Microsoft Visual C# .NET 69462-335-0000007-18707
Crystal Reports for Visual Studio .NET AAP50-GS000... more >>
anchor row of buttons with equal spacing?
Posted by davebrennan1975 NO[at]SPAM hotmail.com at 3/22/2005 8:24:17 AM
I have a WinForms application that displays multiple choice questions
(the choices are actually radio buttons with Appearance=Button).
Depending on the question, I may have 3, 4, or 5 choices to display.
I'm using a panel as a container for the choices. Since the form needs
to is resizable, I n... more >>
Custom trim function - Regex
Posted by Dan Shanyfelt MCAD at 3/22/2005 8:16:49 AM
I am new to regex, but I am assuming it provides a better way to do
what I need.
I want to write a custom trim functions that will remove all
occurrences of a non-whitespace character from the beginning or end of
a functions
TrimEnd(string Original, string Pad)
TrimStart(string Original, s... more >>
Testing !!! - how to learn it ?
Posted by Jarod at 3/22/2005 8:15:08 AM
Hey
I read a few books about C#, and wrote many programs. But ( please don't
kill me ), I've never tested them in a corporation way. I am curious why the
authors don't say a word about testing programs or to be honest they are
doing it very rare. Now I would like to learn how to do it, beacau... more >>
Error using data reader
Posted by Stephen at 3/22/2005 8:11:03 AM
I'm having terrible trouble working out where I have gone wrong in my code
below. In the data layer I have two methods and i'm basically returning a
command and using it and then returning a reader. Unfortunately i'm getting
the following error on the line:
reader = cmdLogin.ExecuteReader();... more >>
How can I know in which format the message is writing, vb6 or c#?
Posted by Moti at 3/22/2005 7:41:07 AM
Hi all
I use C# to read messages from msmq queue.
When I knew that it is writing in c# I can read it.
When I knew that it is writing in VB6 I can read it.
How can I know in which format the message is writing?
Moti.
... more >>
OOP concepts - Access level
Posted by bernardpace NO[at]SPAM yahoo.com at 3/22/2005 7:31:09 AM
Hi,
I have the following scenario.
// This namespace is a class library
namespace test
{
Inteface A
{
void method1(...);
}
public abstract class B : A
{
public void method1(...)
{
...
}
}
public class DoIt : B
{
.... more >>
Start remote app visible
Posted by Dan Pavel at 3/22/2005 7:24:59 AM
Hi, I am starting a new process (Notepad) on a remote machine but it is
not visible. When I start it on my machine it is visible. What I am
doing wrong ?
private void run_notepad(string machina)
{
ManagementOperationObserver observer = new
ManagementOperationObserver();
completionHandler.M... more >>
How to transmit massive images?
Posted by Sharon at 3/22/2005 5:25:02 AM
I need to transmit a massive amount of data that contain video frames taken
from a Frame Grabber to remote computer over a GLAN (Giga Byte LAN).
Any suggestion how should I do that?
What .NET classes should I use?
Any link for samples?
Ant help will be very much appreciated.
--
Thanks... more >>
Window Application Main() life time?
Posted by Sharon at 3/22/2005 5:19:01 AM
I wrote some Windows application. in the Main() method of the project I use
Mutex.
I was sure that that mutex will live during all the application run time.
But it appears that the Mutex is CG after a while.
The following code is the code I'm using. I use it to make sure only one
instance ... more >>
COM+ Application in running state
Posted by RobbieGotNeeds NO[at]SPAM netscape.net at 3/22/2005 5:03:43 AM
Hi,
I am tasked with writing a COM+ application in C# in which the program,
when started, will sit and poll for something (not important here), and
when that condition occurs, then I publish events so that subscribing
applications can do something. I've written a basic shell of a program
tha... more >>
How can I zip a file in code?
Posted by zippy at 3/22/2005 4:28:56 AM
In my code I create and save a file. I would like to be
able to zip that file. I've looked online and it seems
that there are no zip classes built in to .Net for C#.
How can i zip a file then? It seems there are free zip
libraries about. Is this only way?
What's a recommeded zip librar... more >>
How to ftp to a mainframe gdg
Posted by An Trinh at 3/22/2005 2:56:10 AM
Hello,
How do you ftp files from a C# program to a GDG on the mainframe?
Thank you,
An.
... more >>
Using Mathematica to plot in Visual Studio
Posted by Siddharth Jain at 3/22/2005 1:59:09 AM
Hello
I am using Visual Studio 2005 beta and Mathematica 5.0.
I was trying to make an application (in c#) which would allow me to use
Mathematica functions like Plot[], ListPlot[] etc and show the
resulting plot in a picturebox in the form.
I read the .NETLink API and tried to run the sampl... more >>
NET equivalent for getservbyname
Posted by Wilfried Mestdagh at 3/22/2005 1:37:09 AM
Hi,
Is there a NET equivalent for the winsock function getservbyname ? This one
returns the portnum given by a string. eg 'smtp', 'ft', etc and gets his
information from the 'services' file.
--
rgds, Wilfried
http://www.mestdagh.biz... more >>
C# and COM excpetion
Posted by msuk at 3/22/2005 1:23:07 AM
All,
I have a C# assembley exposed to COM so my VB6 client can use it. I was
wondering how I would throw a exception from my C# assembley so that the
Error object in my VB6 could obtain the error message and stack info?
Thanks
Msuk... more >>
missing events
Posted by Tom at 3/22/2005 1:03:19 AM
when you make changes to an aspx do you find that the events associated with
buttons and custom validators go missing ?
This occurs to me often especially when I've made a small change to a page
full of validations all the serverside events dissappear.
any solution for this problem ?
Th... more >>
encoding always gets defaultencoder
Posted by Marco at 3/22/2005 12:55:02 AM
Hi,
I have a very common problem. I try to change my encoding from
defaultencoding (UTF-16) to iso-8859-15.
My source:
Encoding encoder = Encoding.GetEncoding("iso-8859-15");
log.logDebug("Encoding is " + encoder.GetEncoder());
byte[] byteArray = new b... more >>
Retrieve thrown exception in using (disposable) cleanup
Posted by Emil Astrom at 3/22/2005 12:50:16 AM
Hi!
I wonder if there's a way to retrieve information about thrown, not yet
handled exceptions. My situation is similar to the code below:
class MySession : IDisposable
{
:
:
Dispose()
{
if (mytransaction.IsOpen)
throw new SessionException("Transaction not clo... more >>
|