all groups > c# > august 2004 > threads for monday august 16
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
Interface
Posted by totto at 8/16/2004 9:59:36 PM
Hi,
Can anyone please explain to me how it's possible to make an object from an
Interface.
I thought Interfaces was just for inheritance, but in the following code I
have made an instance of a Interface, myEnumerator.
The code unchecks all checked items in a checkedListBox.
IEnumerator myE... more >>
Crystal viewer
Posted by Robert Schuldenfrei at 8/16/2004 9:49:13 PM
Dear NG,
I have Crystal Reports working to a file and directly to the printer with
the following:
private void mnuInvRep1301_Click(object sender, System.EventArgs e)
{
ReportDocument report = new ReportDocument();
report.Load("C:\\database\\MCS-3-SQL\\MCS-3inC#\\INV\\Reports\\rpt13... more >>
Datagrid Selection
Posted by Sreejith S S Nair at 8/16/2004 9:49:02 PM
hi,
i have two datagrid control with binded records.i need to restrict the
user from multiselection whether using mouse or keyboard.
To be consize. user can select only one record(row) from any of the
datagrid. if he is trying to select a record from scond datagrid while
keeping first ... more >>
Help please with extending properties
Posted by NewGuy at 8/16/2004 9:37:39 PM
I have this parameter:
public string Title
{
get{return m_sTitle;}
set{m_sTitle = value;}
}
I want to do this:
Object foo = new Object;
foo.Title.IsRequired();
... more >>
Interface Design
Posted by Jeff Louie at 8/16/2004 9:32:18 PM
Hello... I have added a brief section on the challenges of interface
design at:
http://www.geocities.com/jeff_louie/OOP/oop13.htm#Interfaces
Comments appreciated.
Regards,
Jeff
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded fo... more >>
Does this cause boxing to occur?
Posted by wackyphill NO[at]SPAM yahoo.com at 8/16/2004 9:21:52 PM
Does this cause boxing to occur?
class Test
{
void myFunc(ref int theInt)
{
theInt = 10;
}
Test()
{
int x = 0;
myFunc(ref x);
}
}
So is x being boxed into an Object instance and passed by reference
that way and then unboxed back into an int? Or is it like ... more >>
how to make relative connection string
Posted by mrzoab NO[at]SPAM hotmail.com at 8/16/2004 8:52:18 PM
hello........
I'm developing a client software. i'm now actually using an absolute
path for my connection string in my program abd this will be a problem
when i want to deploy it into another computer.
how do i solve this?
Thank you... more >>
2.0: Generics, excluding value types
Posted by Jon Shemitz at 8/16/2004 8:23:53 PM
Is there a way in 2.0 to say that a generic can not be applied to a
value type?
public class Unique<T> where T: new()
{
private static T cache = default(T);
public static T Instance
{ get
{
if (cache == null)
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Loop through a dataset to get values, vb .net
Posted by edpdc NO[at]SPAM yahoo.com at 8/16/2004 8:14:16 PM
VB .NET
I would like to know how to loop through each row in a data set and
get a value from a colum in the data set. My data set has multiple
columns. I know I have to use the datarow class but I'm not sure how
to do this. I would like to use a for each loop.
Any help would be appreciated.... more >>
Inheriting from System.Net.Sockets.Socket problems.
Posted by Tony Caduto at 8/16/2004 8:07:14 PM
Hi,
I was trying to create a new class derived from System.Net.Sockets.Socket
and it seemed to be working until I tried to use the accept method.
The accept method returns a Socket object and for some reason you can't
typecast it as the derived class.
Everything else worked fine, I was able to ... more >>
How to set highlight on a DataGrid controller?
Posted by steellock at 8/16/2004 7:21:01 PM
I select a row(Row A) on a DataGrid controller. Row A is highlighting.
And then I make the current record jumping to another row(Row B) by
programming, for example, calling MoveLast. However, although Row B gets
focus now, the highlighting is still on Row A. I want Row B to get
highlighting a... more >>
Serial port problems...
Posted by Tamir Khason at 8/16/2004 7:10:22 PM
PLEASE HELP,
I already seat on it a vouple of days, but no solution yet.
Someone, Please help!!!
I have to manage some device, working with RS422 (have a converter). From
one place it working form my program it does not!
Architecture:
-----------
device |RX]-------RS422------|converter]---... more >>
table formatting
Posted by phil cunningham at 8/16/2004 6:43:53 PM
I have a set of data within my application and I'd like to use a pseudo HTML
Table in the reports.
Is there a way of creating an HTML file, rendering this to a Bitmap, placing
the bitmap on the page and then continuing with the printing - adding
various other graphics etc.
I've not seen thi... more >>
Exception Management Application Block, some hints ?
Posted by alexandre jenny at 8/16/2004 6:42:03 PM
Hi
Does someone have already integrated that application block in a project.
Is the design of that block good or not ? Usable or not ?
I'm just wondering if I go with it or with my own (It's for a c# winform
project).
Thanks for any advice.
Alexandre
... more >>
Binding List to Control
Posted by Fabio Catunda Marreco at 8/16/2004 6:19:03 PM
Hi,
I´m trying to create a list control that needs to be binded to a generic
ArrayList.
But I have a problem on updating my control when the list is changed outside
my control.
Can anyone help me with this matter ? Can I attach some sort of Event when
the list is changed ?
Than... more >>
Remoting and AppDomains
Posted by Sam Martin at 8/16/2004 5:25:12 PM
Hi All,
I've got a problem where my application loads an assembly in the running
AppDomain when it shouldn't.
Ok, I've got a RemotingHost application that configs the remoting stuff and
then...
asks the user for a list of .net DLLs.
the app then copies a these assemblies to a cache folder... more >>
reading com/iis settings values using c#
Posted by Aniket Sule at 8/16/2004 5:24:01 PM
Hi,
Is there a way to read Component Services /IIS settings values using c# ? I
am specifically interested in the COM Transaction timeout value and the IIS
connection timeout value. Are these in any Registry keys or config files
that I can read ?
Thanks in advance
Aniket
... more >>
Problems with Crystal Reports in Win98
Posted by Scott at 8/16/2004 4:49:03 PM
I have an application written in C# using VS 2003 with MSDE as the database.
The reports use Crystal as provided with VS. The application and reports
work correctly under WinXP, but the reports do not work under Win98.
I have read the info re dbghelp.dll and CRQE.dll under Win98 ad have
... more >>
New to C#can run first program
Posted by Chris at 8/16/2004 4:43:08 PM
Hi all
I would appreciate some help with a program I have written from the Sams
teach your self c# book.
I have checked my code several times and even rewritten it.
when I compile (Sharp develop) I get the following error :
------ Build started: Project: Pic view 2 Configuration: Debug ---... more >>
server caching
Posted by Jo Versmissen at 8/16/2004 4:38:40 PM
Does anyone know how a component can be cached server side. I know how to
cache a component and it works, but I think this is client side caching,
because it works with the current HttpContext.
....
Cache cache = HttpContext.Current.Cache;
Table table;
// Get the table from the cache
table ... more >>
Launching external apps from C# GUI
Posted by Alex Moskalyuk at 8/16/2004 4:15:00 PM
I have a variety of console application (written with C++ 6) that I
decided to unite under 1 GUI written in C#. On the press of the button
the app collects the information from the textboxes and then passes that
to what I thought would be a system() call, except that there's
apparently no sy... more >>
Comparing strings with accented characters
Posted by Reg Rat at 8/16/2004 4:07:57 PM
Hello all,
I'm led to believe that the .Net framework offers intelligent string
comparison such that é follows e in an alphabetic sort rather than appearing
after z, for example. Does this mean that there is a mechanism for comparing
strings that may or may not have accents and having them shown... more >>
panel v groupBox?
Posted by Vincent Finn at 8/16/2004 3:40:50 PM
Can anyone tell me what the difference is?
Where I might need one over the other?
I know in VB there was a panel and no groupBox
in MFC there was a groupBox and no panel
But in C# they are both available and seem identical
Just curious
Vin
... more >>
explict conversion from double to int - regarding overflow handling
Posted by felix666007_no_solicitation NO[at]SPAM yahoo.com at 8/16/2004 3:38:10 PM
I am a bit confused as to why conversion from float/double to int is
handled in c# in the way that it is. It differs from my implementation
of C and C++ in a suprising way (to me).
Here is a code snippet to reproduce my suprise:
// c#
int max = int.MaxValue;
Console.Out.WriteLine("max = " ... more >>
Comunicating from server towards windows.forms clients
Posted by aaa NO[at]SPAM bbb.hr at 8/16/2004 3:30:58 PM
Hi
I need to perform simple comunication towards my Windows.Forms clients.
Service running on server needs to contact/notify client apps running in
the network if certain event accurs. Upon this notification client would
contact the server (this is not within the scope of this question).
... more >>
System.WinForms and System.Windows.Forms;
Posted by Dave at 8/16/2004 3:25:04 PM
I have a problem using the samples that have "using System.WinForms;"
Changing it to System.Windows.Forms does not work. Somehow in such projects
System does not have ".Forms" .
Is there a way to fix the problem?
Thanks,
Dave.... more >>
POP3 client in C#.
Posted by Ajeet YS at 8/16/2004 3:01:02 PM
Hello,
Well, I don't know if this is the right forum to post this query, but I
didn't find any other suitable one.
I am developing a program to access mails from a pop3 server's mailbox.
For this I am using System.Net.Sockets namespace. I am able to get all the
messages from the ser... more >>
Type.GetType Access is denied
Posted by RichB at 8/16/2004 3:00:17 PM
Hello,
The .NET application I have just installed at a client web site is throwing
a strange error. At first the applications works without any problems, but
after 10 mins or so Access denied error messages are thrown.
The application, web based, late binds to a series of assemblies, none o... more >>
Is there anyway to get CSharp to auto-format like VB.NET?
Posted by Aaron at 8/16/2004 2:56:17 PM
I like some of the auto-formatting features of VB.NET (god help me) but I
really prefer to use CSharp (C#) is there any way to get the features of
auto-indenting, auto-capitalization, and advanced intellisense like VB does?
... more >>
new event
Posted by Ian at 8/16/2004 2:47:55 PM
Hi,
I intherited Button and I created new class (myButton)
public class myButton: System.Windows.Button
{
....
}
I want declare new event. (BeforeClick) This event runs before Buttons click
event. In some case in this event, click event doesn't run.
For example;
(in BeforeClick even... more >>
How to get the UNC share name of a given folder (if shared)?
Posted by José Joye at 8/16/2004 2:20:02 PM
Hello,
Can someone could help me with the following:
I have a directory (e.g.: C:\myTest) and I want to retrieve the UNC share
name that has been assigned to it (or null if no share is defined for this
particular directory).
My first guess was to look at the DirectoryInfo Class. However, ... more >>
Data in ComboBoxes
Posted by David Meier at 8/16/2004 2:13:02 PM
How can data be stored in comboboxes similar to html pulldowns? I know I can
access the data of the combobox either by the items text or by its index.
However, I would like to have a pulldown representing something like:
Text: 1 minute; Value: 1
Text: 5 minutes; Value: 5
Text: 1 hour; Value... more >>
Sub-forms
Posted by Joris Dobbelsteen at 8/16/2004 2:09:52 PM
Hi,
What is the best way to show a 'form' inside another form.
Or could I better use a user-control?
I currently don't want MDI, rather a wizard-style interface...
- Joris
... more >>
get by colom name
Posted by Sadun Sevingen at 8/16/2004 1:35:46 PM
hi;
i fill my dataset from sql server by adaptor automatically...
i want to retrive any element in my data row by colom name...
let say i have a datatable like
ID NAME SURNAME
1 sadun sevingen
2 cem sevingen
this code is not valid but lets say i want to take ... more >>
A question about printing
Posted by phil cunningham at 8/16/2004 1:21:22 PM
Hi there
We have a CAD application written in C# that consists of a series of shapes.
We need to product a range of reports for a range of different paper sizes
(letter size to 36" paper).
Each report contains a Table of Data together with a scaled picture of the
shapes, filled in different... more >>
send mail using pickup
Posted by Dean at 8/16/2004 12:51:16 PM
I am using MailMessage (CDOSYS) to send emails. I would like to turn off the
SMTP service (it's on the local machine) and look at the emails in the
pickup folder before they get sent out. However, since it is connecting
using the port, I will get an error if I turn off the SMTP service. I need
t... more >>
Just In Time Question
Posted by wackyphill NO[at]SPAM yahoo.com at 8/16/2004 12:23:09 PM
I'm new to C# and so far I'm pretty happy with the language and the
design behind it. My only real concern is about performance.
I wanted to ask a question about how a program you build in Visual
studio gets handled.
After it is built you have what looks like an normal win32 exe. And at
lea... more >>
Center Dialog on Panel - position is too far right? Why?
Posted by johns1111 NO[at]SPAM gmx.de at 8/16/2004 11:28:20 AM
Hi, I have a simple Problem. I want to center a dialog on a panel of
an application. I do the following:
public class MyDialog : System.Windows.Forms.Form
{
private Panel m_ParentPanel;
public MyDialog(Panel panel)
{
this.m_ParentPanel = panel;
// some controls
}
... more >>
Anyone have a Regex pattern for finding name/value pairs in a string?
Posted by Bill at 8/16/2004 11:22:03 AM
I have strings returned from a config file that contain zero or more
name/value pairs using a pattern like "name = value;"
I want to extract the value of a given name (passwords, etc.). I want this
to ignore whitespace in the pattern match and not be case sensitive.
Anyone have a pattern tha... more >>
Access form with handle
Posted by Fred B. Nell at 8/16/2004 11:12:51 AM
How can I access form with handle?
SetFormCaption(System.IntPtr FormHandle, string FormCaption)
{
//set form caption here
}
... more >>
Reading a processes memory
Posted by Matt Burland at 8/16/2004 11:05:04 AM
I am trying to read the memory being used by a process but I can't
quite figure out how to do it (or if it's even possible). I can get a
reference to the process using Process.GetProcessesByName and I can get the
base address using Process.MainModule.BaseAddress (which returns a IntPtr).
I ... more >>
Passing function pointers to a unmanaged c++ dll from c#
Posted by Mitchell Hughes at 8/16/2004 10:37:05 AM
Hi,
I have code from a previous project that I've packaged into a dll in c++.
I'm now trying to call functions within that c++ dll from my c# code.
I've managed to get it to work for ints and other basic types but now I'm
trying to pass a pointer to a function but I can't figure out a way... more >>
Integration with a C++ console app
Posted by A.M at 8/16/2004 10:25:25 AM
Hi,
I have a C++ console application and I need to integrate it with a C#.NET
application.
Could you refer me to a resource or link that shows me what kins of options
do I have to integrate a C# application with a C++ console app?
Thanks,
Alan
... more >>
Creating doc files on the fly
Posted by Neven Klofutar at 8/16/2004 9:37:08 AM
Hi,
Can someone please send me an example or a link related to the topic ...
Thanx, Neven
... more >>
Encoding problem
Posted by bmth NO[at]SPAM hi.is at 8/16/2004 9:33:18 AM
Hi all
I am trying to contvert a message from my server to unicode. I
initially got a base64 endoced byte[] message. After some debugging I
saw the base64 string had "\0" in the end wich resulted in an error
when converting from base64. So I cut it away and can now see my
string in byte[]. I ... more >>
Regular Expression Problem
Posted by philgoogle2003 NO[at]SPAM yahoo.com at 8/16/2004 9:32:47 AM
Hello everyone,
I have had a look at some newsgroup articles but cannot seem to find
anything to hekp me so please bear with me if this is a simple
question.
I am using Regular expressions for the first time and am trying out a
simnple expression which is not working properly.
The phras... more >>
Threaded modal progress window
Posted by bob_jeffcoat NO[at]SPAM hotmail.com at 8/16/2004 9:12:19 AM
Hello,
In my appliction I try to pop up a progress dialog box while an
analysis is being run:
//method progress window
public void Run(IWin32Window parent)
{
Thread analysisThread = new Thread(new ThreadStart(runAnalysis));
analysisThread.Start();
ShowDialog(parent);
}
so you see... more >>
Sending Email via Excel Workbook question
Posted by mruvinov NO[at]SPAM yahoo.com at 8/16/2004 9:11:30 AM
I have a C# app that sends an excel file as an attachment. The only
problem is that it prompts the user with a dailog box asking if really
necessary to send it - saying it could possibly be a virus if not
intended for email... I have Windows 2000 and would really want to
disable this manual inte... more >>
imagelist question
Posted by Tony Caduto at 8/16/2004 8:47:35 AM
Is there anyway to share a image list between multiple forms at design time?
I am a former Delphi user and it seems odd that this is not possible with
C#.
I have been able to do it at run time, but it is clunky at best.
Thanks,
--
Tony Caduto
Inexpensive Corporate Messaging
AM Softwa... more >>
Components.Count
Posted by sergey at 8/16/2004 8:45:19 AM
Hi,
I want show all components names on form when I press button. I wrote this
code button's.onclick event:
for (int i = 0; i<=this.components.Components.count - 1; i++)
MessageBox.Show(this.components.Components[i].ToString());
But when I click button, system show error message.
How... more >>
How do you get .Net To Intelisence comments
Posted by wackyphill NO[at]SPAM yahoo.com at 8/16/2004 8:27:20 AM
In Visual C++ I Can do This
//-------------------
//Name: myMethod()
//Desc: This Method Does Somthing Cool And Returns True Or False
//-------------------
bool Obj::myMethod() {}
When I went to use this method and typed:
obj.m
The little intellisense window thing would show my method ... more >>
Add an event handler from other threads using BeginInvoke
Posted by Koji Ishii at 8/16/2004 6:19:01 AM
I have a worker thread, and the thread needs to listen to WinForms Control's
SizeChanged event. Here's my code.
Control c = ...;
if (c.InvokeRequired) {
c.BeginInvoke(===don't know how to write here===);
} else {
c.SizeChanged += new EventHandler(this.OnOwnerSizeChanged);
}
I know I... more >>
Popup Menu
Posted by Maldonado at 8/16/2004 5:53:02 AM
Hy everyone...
How can I do to add a link to a program when the user clicks with the right
button on a file at the windows explorer??
Thank's
--
André Almeida Maldonado - Brazilian - Com orgulho!... more >>
transactional file copy
Posted by msuk at 8/16/2004 3:45:03 AM
All,
I have a byte[] array that I save as a file to disk, is there anyway of
saving the file as a transaction. For example I save the file to disk and
virus scan it, if no virus is found I commit the transaction, if a virus is
found I abort the transaction and the file is never written. ... more >>
invalidate ??
Posted by Marge Inoferror at 8/16/2004 1:20:40 AM
I am trying to display a number of images and have them scale when the
window is resized.
I have all the code to draw the window in an OnPaint() override.
However, it only draws correctly the first time it is displayed. When I
resize the window, it keeps the remnants of the first window and... more >>
ActiveX Interop Question about Events
Posted by Rich S. at 8/16/2004 12:09:01 AM
Hello,
I have imported an ActiveX control and I'm trying to use it inside a C#
class. The problem is that since the event handlers are required to be
"static" functions, I can't reference the instance members of my class from
inside them.
As of now, it gives me compile errors... more >>
|