all groups > c# > may 2004 > threads for wednesday may 19
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
is a crystal report 100% customizable at runtime ?
Posted by odin at 5/19/2004 11:41:02 PM
I have an application where the user selects the fields to include in the report so the question is
How can i add fields at runtime to a crystal report .... more >>
Need help with regex
Posted by Andi Reisenhofer at 5/19/2004 11:23:37 PM
Hallo folks,
Just started to use regex a bit with c#.
Want to do the following perhaps somebody have a tip.
1) want to remove trailing and leading whitespaces from the string.
Tried this one here:
string delim = " \t\r\n";
to = from.Trim (delim.ToCharArray ());
2) remove all... more >>
Remoting and strong names
Posted by Richard Bell at 5/19/2004 11:13:50 PM
Is it possible to override version information being serialized for strong
named assemblies. The strictBinding and includeVersions elements of the
config file do not seem to override the default behaviour which is to
include version information.Thanks.
... more >>
what does this mean ?
Posted by Maersa at 5/19/2004 8:45:43 PM
hi all,
what does the following mean ?
class A
{
public string @return;
}
also, once an object is casted to class "A" how do i recast it to a "string"
?
object o = invoke(.......);
A a = (A)o;
string s = (string)a; /// doesn't work .
thanks,
... more >>
AxSHDocVw.AxWebBrowser
Posted by Pengyu at 5/19/2004 8:21:53 PM
I host AxSHDocVw.AxWebBrowser in my C# application. It
generally works ok. However, the AxSHDocVw.AxWebBrowser
control sometime stucks and can not nevigate to other
URLs. What is the problem? BTW, the network connection is
ok.
Thanks a lot,
Pengyu... more >>
reverse engineering to UML
Posted by PauloFor at 5/19/2004 7:52:30 PM
Please,
Is there a way to annotate C# source code so that reverse engineering to UML
Models ?
Thanks.
Paulo
... more >>
Problem with inheritance / compossition
Posted by Flare at 5/19/2004 7:22:28 PM
Hi I have this C# code
---------------------------------
class BaseUnit;
....
class ResizeBorder : Shape
....
class Shape : BaseUnit
{
ResizeBorder a = new ResizeBorder();
}
---------------------------------
(The classes offcourse has implementations)
When i do this i get a sta... more >>
infinite NetworkStream (CPU consuming)
Posted by psg at 5/19/2004 7:15:37 PM
Hello!
I am developing Windows application which after sending a request to a
server will listen to response, a response will be infinite in length, but
will not be continuous in time.
What I have done is in a back thread I prepared infinite loop and there I am
checking for new packages. It... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Changing an Icon for an application
Posted by Rohit Chaphekar at 5/19/2004 6:16:06 PM
How do I change the icon for an application? I tried setting the Icon
property but it does not seem to work.
Thanks,
Rohit
... more >>
Images in SQL
Posted by Dharmen at 5/19/2004 6:04:33 PM
Once again Thanks William,
Even though the code is in VB, i will try to figure it out...
Is it possible to add a coloum to the database for images and then display
them in the same datagrid?
Thanks
-Seelan
... more >>
Reallocation
Posted by Jon Cosby at 5/19/2004 5:25:13 PM
Can someone suggest a way to reallocate an array without losing data?
Jon Cosby
... more >>
Detect colorspace in Image
Posted by Dennis Myrén at 5/19/2004 5:22:45 PM
Hi.
I have already posted this question once, but this repost is to ensure
no gurus missed it, who might be able to help me out here;
I would like to know whether it is possible - without manually reading the
raw image stream -
to determine the colorspace used in an image as represented by a
... more >>
MSIL.Gastropod [?]
Posted by Wiktor Zychla at 5/19/2004 5:13:20 PM
Today I have been suddenly warned by Norton Antivirus that MSIL.Gastropod
had been found in Lutz Roeder ILReader.dll (old 1.0 version, dll of 57344
bytes). The virus was not found in any other .NET modules.
does anyone have any reliable information on this Gastropod? is it serious?
thanks in... more >>
Optmizing images in Windows Forms
Posted by Bruno Rodrigues at 5/19/2004 5:08:32 PM
Hi,
Everytime I use a image in a Windows Form, Visual Studio.Net creates the
image in the respective resx file. This can be very expensive in a project
with about one hundred forms, where images of delete, insert and update (for
example) appear several times.
The only way I found to... more >>
Assembly.Load unload separate AppDomain problem
Posted by Lauren Hines at 5/19/2004 4:55:26 PM
Hello,
I have read numerous post stating that the only way to unload an assembly
(DLL in my case) is to create a separate AppDomain, load the assembly, then
unload it by calling AppDomain.Unload.
When trying to delete the DLL file I get an exception that access is denied.
When trying to copy ... more >>
Regex - how can I eliminate spaces and get the words?
Posted by Sam at 5/19/2004 4:51:03 PM
Why when I write this
Regex r = new Regex(@"[\s]+")
String [] tokenList = r.Split(line)
If line which is a string, has spaces at the end or start, Regex leaves an empty string at the end and start of the tokenList array?... more >>
how to check user idle time
Posted by HamuNaptra at 5/19/2004 4:11:55 PM
Hi,
I'm creating an app. that shows a popup, but it only should if the user is realy
working on the computer.
It shouldn't popup if e.g. the screensaver is running.
But how do I check the amount of user idle time?
... more >>
Why is datagrid update SO slow?
Posted by VM at 5/19/2004 4:10:28 PM
I have a 35000 line datagrid and updating one field in all 35000 rows takes
an eternity. How come? Since I don't have the datasource available (it may
be a table or view), in my example I do it like this:
for (int i=0;i<34000;i++) //the first 2000 records took 2 mins.
{
dataGrid_auditA... more >>
Variant to array ??
Posted by Adi Lazar at 5/19/2004 4:09:42 PM
Hi,
I'm using an ActiveX control that has a read/write property named
InsertionPoint (type = object). In the ActiveX documentation : Variant
(three-element array of doubles);
I can write to it :
double[] insertPoint = new double[]{2, 5, 1};
myObj.InsertionPoint = insertPoint; => works fine... more >>
Problem with update. getting ORA-01036: illegal variable name/number
Posted by Rodrigo DeJuana at 5/19/2004 4:01:30 PM
Howdy,
Can someone tell me how im suppsoed to do this? Im new to this and im sure
im doing something stupid. Im trying to update a table. I have the sql
there, and i was able to update the table if i hardcoded everything, but i
would really like to use parameters. Here is my code.
tha... more >>
Getting more info from exception
Posted by Claire at 5/19/2004 3:49:36 PM
Regarding IOException
I'm catching this error while querying for available serial ports using a
third party component.
I attempt to open then close the comport and if this error type is thrown
then I don't list the port in a combo box.
But I would like to discern between a comport not being ava... more >>
DataGrid Column
Posted by Dharmen at 5/19/2004 3:47:56 PM
Hey Guys,
How can I make the entries of a datagrid column to be a url link? (im using
C#)
Im just binding the data to the grid from sqlserver using
datasource=SqlCommand.ExecuteReader()
Please Help
Thanks
... more >>
launching a commandline program from a c# app
Posted by Stephan Steiner at 5/19/2004 3:38:09 PM
Hi
I'm trying to automate VPN connection establishment and disconnection using
the Cisco VPN client. That particular client has an interactive cli
interface. I set my program up to launch the VPN client, redirect its
standard input and output, and write to its standard input where a manual
us... more >>
C#.net volume label
Posted by Eddie at 5/19/2004 3:31:25 PM
Hi,
Can anyone provide an example of getting a hard disk/cdrom volume label in
C#.net?
Thanks in advance,
Eddie
... more >>
Operating System Key in C# (WMI)
Posted by christophe roumegous at 5/19/2004 3:31:00 PM
Hello,
I just want to know the key (licence number) of the operating system used by
my computer.
Then I use the WMI API in C#.
I tried to used the classes :
"Win32_OperatingSystem"
"Win32_ComputerSystemProduct"
For the "Win32_OperatingSystem" class I used the SerialNumber member.
However... more >>
FTP'ing in c# app...
Posted by Daniel Bass at 5/19/2004 3:30:28 PM
Hey,
There's a client requirement to have my application send some files to
another server on the same network through FTP.
All I need to do is connect to the provided server and port, with the
provided username and password, then upload some files in binary mode, then
disconnect.
Is the... more >>
Resizing arrays in C#
Posted by Kjell at 5/19/2004 3:26:04 PM
H
I'm a former VB programmer and I have a issue with Arrays in C
If I can't tell the size in advance how can I solve the issue since C# does not suppor
resizing arrays like VB do (i.e. Redim Preserve MyArray(x)
Kjell... more >>
NullReferenceException Help
Posted by Matthew Sajdera at 5/19/2004 3:03:04 PM
All -
I need some help debugging a Null Reference Exception error I keep getting
when callling a specific method from a COM object reference.
I need help getting started where to look to see what may be causing this
error. Other method calls to this COM object perform normally, but this
sp... more >>
Close form...
Posted by Fabio Negri Cicotti at 5/19/2004 3:02:58 PM
Hi.
Imagine a scene where the user input the username and password in a "Login"
form and when press the confirm button, another window is opened with the
"Main" form. After that, the "Login" form is "closed" automatically.
How can I do to close the "Login" form? If I use Login.Close() on the... more >>
OnMeasureItem with ListBox
Posted by Nicolas B at 5/19/2004 2:43:39 PM
Hi
How can I force a ListBox to recalculating the height of these items?
I have a ListBox with property DrawMode = OwnerDrawVariable
and sometimes I want to draw items with more information (2 lines or more
needed)
Calling Update() method only redraw the list without calcula... more >>
Starting a process from inside a windows service
Posted by Timothy Shih at 5/19/2004 2:38:42 PM
Hi,
I am trying to start a process from inside a .NET service. The process is a
simple GUI app, the service will start up the GUI and then stop itself. The
service starts the app, but no GUI appears. However, I can see the
application running in the task manager. I made sure that CreateNoWindo... more >>
Live updating software
Posted by mphanke at 5/19/2004 2:02:46 PM
Hi,
has anybody experience with how to update a software over eMail or
WebServer?
What would be the best way to do this? I'm fighting with this topic
quiet a bit, but I really want to implement this - would really help me.
Best Regards,
Martin... more >>
Too Challenging?
Posted by George at 5/19/2004 2:01:22 PM
Was my question too challenging for everyone? I thought I would get a much quicker response, complete with witty and (sometimes) condescending remarks
Here's my question again, in case you missed it
How do I reload a page
Notice I did not ask "How do I *refresh* a page". I have no interest in ... more >>
Windows Service in C#
Posted by Ryan Gregg at 5/19/2004 1:53:40 PM
I've written up a service in a C# using VS.NET to create the framework for
me. However, I can't seem to get the service installed properly. When I
run the InstallUtil on the service exe, it errors out, reporting the
following shortly after trying to create the event log:
An exception occurre... more >>
C# equivalent of JTable?
Posted by Derrick at 5/19/2004 1:37:18 PM
What is the C# equivalent of JTable? I need a UI that contains a table with
variable rows, that I can add combo boxes and buttons to for columns.
Thanks in advance!
Derrick
... more >>
binding a grid to a collection of custom objects
Posted by at 5/19/2004 1:30:10 PM
Hi
I'm sorry for my english...
I have a clas that contains a variable number of data stored in a
dictionary. The key of the dictionary is a string that defines the name of
the field.
( varA 12
varB "a string"
varC 12/12/98
.....)
I need to create a binding between a grid and a co... more >>
New to C# MDI question
Posted by meh at 5/19/2004 1:22:02 PM
I am using some existing VB projects as templates to learn C#. One of them
is a MDI app. There are status messages from the child forms that write to
a statusbar panel on the main MDI form.
... more >>
System.Threading.Timer Interval Issue / framerate
Posted by sonofdaedalus NO[at]SPAM hotmail.com at 5/19/2004 1:18:47 PM
Hello. I want to use System.Threading.Timer to control when my windows
form is invalidated. I want it to update at 60 frames per second. But,
if I set the Interval of my timer to anything less than 30ms, the
event isn't triggered. That means I am stuck in the neighborhood of 30
frames per second... more >>
Is .NET 2.0 Framework going to take advantage of 64-bit computing?
Posted by int at 5/19/2004 1:17:21 PM
Is .NET 2.0 Framework going to take advantage of 64-bit computing?
Intel and especially AMD's Opteron are 64-bit and they are really
inexpensive.
Look at the prices here...
http://www.anandtech.com/guides/priceguide.html
By the time .NET 2.0 comes out, maybe middle to late 2005 at the ear... more >>
Scroll position in WinForms
Posted by Leonid Shirmanov at 5/19/2004 12:56:32 PM
Hi,
I have a form with control placed on it. Control has the image painted on
its graphics.
Size of the contol is greater than size of the form and scroll bars appear
in the form.
I scroll the image to the end (i.e. bottom-right edge). After this, I open
other form
as modal dialog and after... more >>
using public property
Posted by Fabio Negri Cicotti at 5/19/2004 12:29:37 PM
Hi all,
I have 2 form (frmLogin and frmMain) and inside of frmMain I've created this
code:
private int _tmpID;
public int tmpID {
get { return _tmpID }
set { _tmpID = value; }
}
I created an instance of that form in frmLogin
Eg: Form frmTemp = new frmMain();
but I can't find th... more >>
What Security does SSL holds?
Posted by Piryani at 5/19/2004 12:21:02 PM
Hello can u please tell me what security does SSL holds
Thanks
... more >>
Read extended properties of a file
Posted by Tyrone at 5/19/2004 12:10:12 PM
How do you go about reading the extended properties of a file. (jpg)
... more >>
System Service - One assembly, two services
Posted by Pawel Janik at 5/19/2004 12:06:12 PM
Hello,
I wrote a system service, whis is located in assembly called "s1.exe". But i
like to install this service twice. Problem starts, when service starts....a
service code loks like this:
public class TestService : ServiceBase
{
public TestService(string serviceName)
{
this.Se... more >>
Optional argument in C# ???
Posted by tiger79 at 5/19/2004 12:01:43 PM
Hi,
I would like to know if there exists something like the Optional argument in
VB for C# ???
thanx...
... more >>
enum Q
Posted by JezB at 5/19/2004 12:00:14 PM
Given an enum :
public enum FlavourCategory {None = -1, Personal = -3, Local = -2,
Predefined = 1};
How can I convert a string eg. "-2" into a FlavourCategory ? I dont want to
write a switch statement.
... more >>
Minimize to tray
Posted by mphanke at 5/19/2004 11:26:42 AM
Hi,
how can I minimize an application to the tray?
Snippets welcome.
Martin... more >>
Class view/object browser for children of a class?
Posted by News at 5/19/2004 11:24:01 AM
Is there a way in either class view or object browser to display the
children of a given class? Seems like it's easy to go up the inheritance
tree but it's not obvious how one navigates down.
- James Moore
banshee@banshee.com
... more >>
How to rotate an Excel cell with c#?
Posted by BUJAUD Thomas at 5/19/2004 10:53:05 AM
Hello,
my problem is that i use a c# application which create an excel workbook and
i want to rotate data contained in a specific cell.
Thanks for your help,
Thomas BUJAUD
PS: sorry for my bad english
PS2: i use the microsoft.interop.excel library
... more >>
problem with WebControls.TextBox
Posted by Rodrigo DeJuana at 5/19/2004 10:18:11 AM
Howdy,
I'm new to this .net stuff and really have little to no training. Im trying
to create a new page for a web form, so i have been pretty much jsut coping
code. I having some issue with some textboxes not updating when i a hit
save.
for example I have this code in my aspx.cs file:
... more >>
RegularExpression code for server-side validation of Date
Posted by mg at 5/19/2004 10:16:05 AM
Does someone have RegularExpression code (C# WebForm) for server-side validation of Date (mm/dd/yyyy) ... including leap year?... more >>
Opening a WebForm on Button Click
Posted by Brian Conway at 5/19/2004 10:14:45 AM
How do I code in C# to have a button click open another Form within the same
application, then I want the form that it opened to get filled out and on
submission of that form to close that form and go back to the original
calling form.
... more >>
Property Page
Posted by Bob C. at 5/19/2004 9:54:31 AM
Hello Everybody,
I am new to C# and .NET.
I used to write ActiveX using MFC.
Now i need to write componets in C#.
My qustions is, what is the equivelent to PropertyPage in componets?
For my componets i need to give UI to set property values.... How can i do
it?
Thanks a lot,
Bob.
... more >>
Deployment only installs, refuses to upgrade or remove
Posted by Richard Lewis Haggard at 5/19/2004 9:54:29 AM
I'm new to C# deployment project way of doing things and have run into a
problem with a deployment project that has me stumped. I've put together a
deployment of a project which works just fine for new installations but
fails if the project has already been deployed. What I'd like for it to do
i... more >>
C# Windows Service unable to receive COM callback events
Posted by SPG at 5/19/2004 9:09:53 AM
Hi,
We have a standard windows app writeen in C# that uses an ActiveX dll to
send us events. This works fine as a Windows app, but as soon as we compile
as a service, no more events.
I have been told that there is no message pump provided to the service, and
therefore the events from the dl... more >>
Console App Email
Posted by Adam at 5/19/2004 7:48:45 AM
I need a console application to send me an e-mail....in
the past I have use SQL Server's mail messaging to send my
e-mails for console applications, but often the SQL Server
mail message will not get sent because the SQL Server
times out....In my web pages I use the Web MailMessage
object,... more >>
Click event
Posted by Kannan at 5/19/2004 7:36:02 AM
Very simple encryption
Posted by Steven Blair at 5/19/2004 7:28:44 AM
I have the following number:
64521234567890
and need to apply some sort of simple encryption.
Does c# have any classes for doing this. I cant use 3DES or anything as
complex as.
The size of the string cannot increase either (no more than 14 chars)
and must be numeric only.
Regards,
... more >>
How to access an array element in a member of ArrayList?
Posted by Haobin at 5/19/2004 7:16:04 AM
Hi everyone,
I have an ArrayList whose members are classes. These classes are derived from a same base class. The base class has a floating point array and a string. How do I access each element in the floating point array in a member of the ArrayList?
Any help would be greatly appreciated.
Hao... more >>
“Dialup_Connectivity”
Posted by himagirishh NO[at]SPAM healthasyst-dot-com.no-spam.invalid at 5/19/2004 6:59:29 AM
Hi :idea: ,
I am looking for some input on “Dialup Connectivity” in .Net
My scenario being I will have a config file containing the parameters
required for modem connection like the phone number, data bit, baud
rate, etc. Here I have instantiate the connection and send a string
to the ser... more >>
Closing modal dialog causes main window to flash/flicker
Posted by ageejas1 at 5/19/2004 6:51:03 AM
Hello and thanks for any help
I've noticed that my main application window has a bad Flash/Flicker sometimes when I close a modal dialog box. Sometimes it also loses focus, and gets placed behind another window that was not originally on top. I perform the dispose inside of the dialog, for instance... more >>
Process.Start ?
Posted by songie D at 5/19/2004 5:01:05 AM
H
If I us
Process.Start("DTSRun ...") on a computer that has SQL server installed, it can't fin
DTSRun, claiming 'file not found'. Despite this,
Shell("DTSRun...") from VB.NET works fine
It also works to run DTSRun from the command line without typing in the directory
as c:\program files\micro... more >>
Automating Internet Explorer to fill out forms
Posted by Jax at 5/19/2004 4:06:02 AM
I am interested in finding out if it is possible with C# to manipulate IE to go to certain websites and act as a user
I basically have a process I wish to automate but this process requires the users to input information which we already have, which I feel is inefficient, how can I code Internet ex... more >>
direct3d and asp.net (with c#)
Posted by Serdar C. at 5/19/2004 2:32:38 AM
is it possible to write a web based program that uses direct3d?? and if the
answer is yes, then do u know where to find an example or tutorial??
... more >>
How to check Maximize button click event of a Form
Posted by sachin at 5/19/2004 2:16:11 AM
How to check Maximize button click event of a Form or how to check whether present size of form is maximum available size
... more >>
Embedded Resources
Posted by n! at 5/19/2004 1:49:07 AM
I have an irritating problem with VS.NET2003, C#. I wrote some code that
would build my application menu from an XML resource file. Purely to make it
easy for me to edit, so I've added this file as an embedded resource.
My irritation, is that when I update the resource file and nothing else. VS... more >>
Threadpool calling a COM+ process failing on Hashtables
Posted by W1ld0ne74 at 5/19/2004 12:51:07 AM
We have built a huge application that is normally fronted by a web front-end. The system was built in C#.Net and is fully COM+
The section I am building, however, reads from MSMQ and depending on the message, fires off an Assembly that also utilises the Business logic in the already created projec... more >>
Thread can't see my components.
Posted by Craig Kenisston at 5/19/2004 12:23:33 AM
I'm trying to create a simple one-form application that reads information
from a database in a thread.
Everything runs fine, statements executes ok, but I want to add some of the
returning information into listBoxes in my form.
Following Microsoft's sample, I created a couple of static metho... more >>
Visual C++ 6.0 code import ? HELP
Posted by BARIS GOKBUDAK at 5/19/2004 12:17:22 AM
Hi,I have 2 classes that are written in pure C++.
They use several iostream functions and file operations.
They are coded under Visual Studio 6.0
I want to make a user interface for these 2 classes using Visual C#.
But I cannot use these 2 classes from .NET environment.
How can I do that ?
I t... more >>
|