all groups > c# > november 2004 > threads for thursday november 18
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
convert Tag object to Array ?
Posted by Bill Woodruff at 11/18/2004 11:00:14 PM
Really a theoretical question out of curiousity more
than a truly practical one ... I seem to recall that
casting arrays was a no-no in C++.
I think it is not possible to take an array in a Tag object :
// put an array in a UserControl's Tag object
myUserControl.Tag ... more >>
Q: Newbee question, regarding a couple of syntaxes in c#
Posted by Visual Systems AB \(Martin Arvidsson\) at 11/18/2004 10:29:38 PM
Hi!
I was testing an application that is writing a mail and sends it to a
recieptiens. I then came across
a couple of ??? in my head, coul anyone briefly tell me what the difference
is between this and where in the help i can read more about it
First out...
Outlook.Application oApp = new... more >>
How to take the advantage of a high end box with 4 cpus running win2k3 server with C# programming
Posted by Mark at 11/18/2004 9:04:28 PM
Hi,
I'm programming an application with .net C#. The application will talk to
SQL Server on same box. The box has 4 P4 CPUs running Win2k3 server. I have
a question here, what kind of technique I should use to take the most
advantage of the box besides multi-threading?
Thanks in advance!
Mar... more >>
Good, free charting components?
Posted by Peter Rilling at 11/18/2004 8:37:13 PM
I would like to know if there are any good, free, charting components that I
might use. This will be enbedded in a web page.
... more >>
How to implement a remote Monitor ?
Posted by Joannes Vermorel at 11/18/2004 7:49:01 PM
I would like to implement an MarshalByRef object similar to
System.Threading.Monitor. The interface would look like
class RemoteMonitor : MarshalByRef
{
public void Enter(object obj, Guid threadID) { ... }
public void Exit(object obj, Guid threadID) { ... }
}
Let assume that each... more >>
accessing StackTrace inside an exception ?
Posted by Barry Mossman at 11/18/2004 7:24:22 PM
Hi,
I am throwing an exception derived from ApplicationException as follows
catch (Exception ex) {
throw new MyException("message", ex);
}
My exception's constructor is:
public ExceptionBase(string aMessage, Exception aInnerException):
base(aMessage, aInnerException)
... more >>
Dynamic invocation and interfaces
Posted by Chakravarthy Bollapalli \(IFIN SCC AI\) at 11/18/2004 6:57:01 PM
Hi,
I have a .net dll (say dll assembly) which has a class implimenting an
interface defined in a application (say application assembly)
so I add the reference of the application assembly to the dll project and
compile. I have a dll available.
from the application assembly i create an ins... more >>
Wierd error - 1306
Posted by B Vidyadhar Joshi at 11/18/2004 6:21:26 PM
I was writing an Bluetooth Application which makes calls to Windows APIs. I
feel I'm doing something wrong with the structure. Could somebody help me?
The code that I'm using is pasted below:
using System;
using System.Runtime.InteropServices;
namespace System.Net.Bluetooth
{
[StructL... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
String to Float
Posted by Dave at 11/18/2004 6:09:28 PM
I am trying to compile some code that takes an input value from a combo box
named comRate. I am having difficulties trying to assign this value from the
comRate combo box to a float data type variable named input. There needs to
be some a conversion from a string to a float data type but I am not... more >>
exception Error number???
Posted by perspolis at 11/18/2004 5:02:17 PM
I need to know the Exception number when an exeption
arise..
but the exception number is protected ..how can i access this number when an
exeption arise.. and also I don't want to inherit that exception..
... more >>
I am looking for a c# function that do the same as getch()
Posted by ofry NO[at]SPAM myrealbox-dot-com.no-spam.invalid at 11/18/2004 5:00:43 PM
is there any function like this?
Console.Read is not good for me because I dont want to click Enter
after reading an input.
thanks ,
Okets
*-----------------------*
Posted at:
www.GroupSrv.com
*-----------------------*... more >>
how to write to an xml file
Posted by ALI-R at 11/18/2004 4:39:15 PM
I have tree variable with their values:
1) rptName="report1"
2) rptPath="c:\......"
3) serverPath=http://server...
and
4)an arry which contain Name/value pairs.
what is the best way of wrting them into an xml file??
these Xml files are stored in the same directory so I also give the XML f... more >>
why is there an error?
Posted by Bern at 11/18/2004 4:27:29 PM
the following code produces an error:
"The left-hand side of an assignment must be a variable, property or
indexer"
-----------------------------------------------------------
private void ListBox_DrawItem (object sender, DrawItemEventArgs e){
ListBox b = sender as ListBox;
((IconI... more >>
Alcatel - TAPI - C# Driver hangs
Posted by BizTalk Architect at 11/18/2004 4:26:26 PM
Hello,
I am days into this problem and I cant make heads or tails of it.
Please post suggestions, I dont care how crazy they sound.
Scenario:
I have a TAPI C# application. (TAPI 3.0)
Driver is an Alcatel TAPI Service Provider v. 5.0.46.003 with an Alcatel
PBX unit.
The appl... more >>
if (one of several) alternatives
Posted by RC at 11/18/2004 4:15:16 PM
I have some code that needs to know if an int variable is one of several
possible values.
What is a better way of performing the test than stacking a bunch of case:
in a switch statement? I also don't want to have a bunch of logical ORs in
an if() statement (e.g., if (someInt == 25 || someInt ... more >>
problem with aspnet "impersonation"
Posted by hellrazor at 11/18/2004 4:13:54 PM
HI there,
I am developing a client side app which requires me to launch another
program when a user clicks a button on a web page. I thought I'd create
an asp.net page (using c# ) to accomplish this. After much research I
found that it's not that simple. The asp process runs under an aspnet... more >>
Impersonate
Posted by Ian Frawley at 11/18/2004 4:05:08 PM
This is a multi-part message in MIME format.
------=_NextPart_000_0008_01C4CD88.605424B0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Anyone used the WindowsIdentity class with success? I find if I try to =
change the current identity to one t... more >>
Deploy database
Posted by david NO[at]SPAM tandberg-johansen.no at 11/18/2004 3:27:12 PM
Hi!
I am a new to programmeing in .Net and C#.
After some time programming in C# i want to go to the next level of
programming. I want to include a database with my applications, but i
am a litle confused about something. Must the client have ex: Access
installed, or can i accsess the file... more >>
how to convert Font to/from StdFontClass?
Posted by Fei Li at 11/18/2004 3:17:01 PM
writing dataset to xml problem
Posted by R.A. at 11/18/2004 2:53:01 PM
Hi
I have a web method that returns a string (which has an xml format).
I get a dataset and I need to convert the table in the dataset to xml and
then to send it as a string to the client. How can I do this?
Thanks
... more >>
Sockets
Posted by Bill English at 11/18/2004 2:47:04 PM
How do I send an object from one computer to another?
--
I am a 14 year old C# developer, I am completely self taught, so please
don't get mad if I ask a stupid question. Thanks.... more >>
OOP question - multiple value properties
Posted by NOSPAM at 11/18/2004 2:37:17 PM
I want to write a class that has multiple values associate to it
public class Person {
public string FirstName {get; set;}
public string LastName {get; set;}
public DateTime Date {get; set;}
}
For example, I want to create an object like this:
Person p = new Person();
p.Fi... more >>
Enum values to string rather than...
Posted by SpotNet at 11/18/2004 2:25:36 PM
Hello Newsgroup,
I have an enum as such,
public enum VariablePositionEnum
{
Row = 1,
Column = 2,
RowAndColumn = 3,
}
I need (for all intensive purposes) for a control these enumeration values
as strings rather than the enum value name, i.e.
If I want the Row value as a... more >>
Service Logon Problem
Posted by Sateesh at 11/18/2004 2:16:18 PM
Hello,
I have a .Net service registered in my machine and set Logon type as "This
account" and gave my domain account name and it's password. It works fine
and I am able to connect to a remote drive and to a remote database etc from
the service.
How ever if I use a local user (administrator... more >>
save data
Posted by Dino L. at 11/18/2004 2:10:52 PM
Hi,
I need to give my application to diferent clients. I wanna put their
names on app.
I was thinking about XML data, where I can have data (as connection
parameters, pic folders, client name)?
Is this good?!? Can I protect that file?... more >>
SQLDataReader vs. IDataReader
Posted by Vivek Sharma at 11/18/2004 2:05:26 PM
Hi There,
can some one please clarify the difference between SQLDataReader and
IDataReader? What are the advantages and disadvantages of each?
Thanks
Vivek
... more >>
Problem calling SqlConnection.Open() on a Timer callback
Posted by Skip Key at 11/18/2004 1:57:47 PM
While writing a windows service, I've run into a fairly strange problem. I
have a worker proc that gets fired every n seconds using
System.Threading.Timer. This works fine, unless I open an SqlConnection on
it. Just as soon as I do so, the proc fires that time, and never again.
The connectio... more >>
member type from /doc:
Posted by Chakravarthy Bollapalli \(IFIN SCC AI\) at 11/18/2004 1:39:55 PM
Hi,
I have generated xml documenentation using command
c:\> csc /doc:test.xml test.cs
but I couldnt find any "member type" info in that.
for eg:
I have a "uint" type variable "address" in a class called "test" in namespace "test".
so the xml document says
<member name="F:test.te... more >>
Single Cell in DataGrid not Refreshing with SP 1
Posted by Hans at 11/18/2004 1:27:30 PM
I have a Windows.Forms.Form containing a DataGrid where the DataSource
is a DataView. Everything refreshes fine after adding, deleting or
editing rows. When I close the dialog and reopen it with a new set of
data, all is okay showing the new rows of data. But when I go back to
the first set of d... more >>
.net project
Posted by ratnakarp2002 NO[at]SPAM yahoo.co.in at 11/18/2004 1:08:42 PM
Hi,
I'm a newbie to .net. I want to do a good project using .net for my
course work. this project should help me in learning basics as well as
for jobs too. Please suggest me some fields where i can work and
possible references to it. Any help or references will be
appreciated.
Thanks & R... more >>
Windows system version
Posted by cfyam at 11/18/2004 12:51:22 PM
How can I get the windows system version in my C# App?
... more >>
readonly significance?
Posted by Jon Davis at 11/18/2004 12:41:49 PM
In C#, what is the difference between a property block that has a readonly
keyword and a get block, versus a property block that has only a get block?
Thanks,
Jon
... more >>
HELP, Create Table o the fly from dataset
Posted by Paul Oliveira at 11/18/2004 11:59:07 AM
Bear with me, please... :)
TableA on Database1:
CodCli -- Name -- Age -- SalesCod
(...) (...) (...) (...)
TableB on Database2:
Key -- CodCli -- Date -- Value
(...) (...) (...) (...)
[Using Vs 2003.net Crystal Report]
We need to see and print... more >>
Exiting from an app
Posted by pnp at 11/18/2004 11:33:59 AM
Hi all,
I'm working on a win app that uses a logon form to verify the user that
logs in the program and then hides the first form and displays an MDI
form where the user does his work. The app is STA.
The problem is that I wan't to be able to close the app from wherever in
my app (no matter ... more >>
Getting Performance counters as a different user
Posted by db at 11/18/2004 11:07:10 AM
Hello,
I am writing a utility to get the performance counters from a remote
machine. Currently, I am usign the System.Diagnostics.PerformanceCounter
class to retrieve these counters, but they only retrieve the counters with
the permissions of the owneer of my utility's process.
I dont s... more >>
Open associated application with filestream
Posted by J at 11/18/2004 10:31:41 AM
Hi,
I know that to launch an application that is associated with a particular
file I can use Process.Start(filename), but that assumes the file physically
exists somewhere. My problem is I already have the contents of the file in
memory (read from a DB) and it seems a bit redundant to write t... more >>
What am I not understanding?
Posted by Claire at 11/18/2004 9:32:48 AM
I've explained the problem in the following code snippet. I want to share
single functions for use by several data types.
In this function I call different functions to fill out the original object
"o" that is passed in.
FileGroup is a derivative of an ArrayList object.
Can I fix this problem... more >>
Another Programming Question
Posted by Yoshi at 11/18/2004 8:47:34 AM
Hi everyone!
I am developing an application that runs a seperate executiblie file, calls
the SetParent API so the application is contained in my application.
The problem that I am having is I have to wait a certain period of time for
the application to completely run/load into memory befor... more >>
Enums across multiple projects
Posted by amcniw NO[at]SPAM yahoo.com at 11/18/2004 8:24:47 AM
Suppose I have the following enum that I need in multiple projects:
enum Ratings{Poor=1,Satisfactory,Medium,Good,Excellent};
Instead of defining it in every project that needs it, I want to
create it in one and have it accessible from the others. How do I do
it?... more >>
ASP.NET/C# Firefox and Netscape
Posted by msuk at 11/18/2004 8:17:02 AM
All,
I have created some ASP.NET/C# webpages that displays pefectly in internet
explorer 6.0 but when I use Firefox 1.0 and Netscape 7.1 the page does not
display correctly i.e the text and text boxes for example dont line up they
are smaller in size.
Does anyone now why this is happenin... more >>
MSI File format [???]
Posted by Nadav at 11/18/2004 8:03:05 AM
Hi,
I am writing some kind of a file scanner, at certain time all of the files
under a certain directory will be scanned, this scan require de-compression
of common files formats such as ZIP and MSI, the ZIP file format is well
known so there is no problem of decompressing it manually, howe... more >>
ODBC
Posted by Jacek Jurkowski at 11/18/2004 7:56:12 AM
How to programically add an ODBC source to
System ODBC sources?
... more >>
How to create Color from uint?
Posted by Fei Li at 11/18/2004 7:28:06 AM
Icon does not appear.
Posted by Brahm at 11/18/2004 7:22:13 AM
Hello,
I have an application with a main class subclassing the
System.Windows.Form and i changed the Icon setting for the application
to point to a different icon file. Now, when my application runs, the
icon appearing in the upper left hand side of the window frame is the
default one and not t... more >>
launching an executable application from a C# application
Posted by rgarf at 11/18/2004 7:05:02 AM
I am trying to launch an executable application from my C# application. I
tried using the Process class which did start the application but it did not
show the command prompt window.
My code is as follows:
Process p = Process.Start(@"C:\Debug\MyApp.exe");
This code replaces my C++ code which... more >>
Call VB function from C#
Posted by Glen Mills at 11/18/2004 6:59:07 AM
How can I call the VB Pmt & Rate functions from C#?
--
Glen Mills... more >>
how to create msmq queue at remote machine?
Posted by deepak at 11/18/2004 6:31:03 AM
how to create msmq queue at remote machine? n how to send messege to remote
queue?
--
deepak... more >>
how to create queue at remote machine?
Posted by deepak at 11/18/2004 6:29:11 AM
--
bfgbcbcxvbcxbcxvbcxbxcbxcbcfdsgsdgfsdgx... more >>
Restricting access to Task manager and other windows
Posted by honeylin at 11/18/2004 2:29:02 AM
I want to build a cyber cafe - like program.I need to prevent users from
launching task manager.How do i achieve this ? I also need to make the
program kiosk - like (where the taskbar and start button will be unlaunchable
until the program exits). Please help me if you know how to,this is
ur... more >>
|