all groups > c# > july 2005 > threads for friday july 29
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
simple out parameter as ArrayList
Posted by andrewcw at 7/29/2005 11:05:01 PM
Why is it that I get these errors on this function
1.) The out parameter 'Avalues' must be assigned to before control leaves
the current method
2.) Use of unassigned local variable 'Avalues'
public bool getStringFieldAsArrayList( out ArrayList Avalues)
{
bool retVal=false ;
Avalues.Add... more >>
Where does DragDrop event come from???
Posted by Dan at 7/29/2005 10:20:55 PM
How do I find out what control a DragDrop event comes from? I initially
presumed that it was the "sender" parameter. But this always seems to be
the destination.
Ie ...
private void listviewMonday_DragDrop (object sender,
System.Windows.Forms.DragEventArgs e)
{
// "sender" always se... more >>
BASIC interpreter source in C#
Posted by scott_hutter NO[at]SPAM yahoo.com at 7/29/2005 9:00:40 PM
Hello, Im in need of a BASIC interpreter source code in C#. If anyone
can point me to something like this, it would be appreciated.
... more >>
display one string and store another in same combobox item
Posted by VMI at 7/29/2005 5:59:26 PM
Is it possible to display something in a combobox and store something else?
For example, can I display "Query for active employees" and save the actual
query in the same combobox item? That way I can automatically retrieve the
specific query for the option the user chose.
Is this possible... more >>
public function from class in other namespace inaccessible
Posted by Peter Speybrouck at 7/29/2005 5:29:03 PM
I have a little problem with a webservice. I reproduced the problem in the
following simplified example.
I just create a new C# ASP.NET webservice and a c# console application.
I added a new class test to the namespace of the webservice which I try to
access from the console
application.
... more >>
Best Way to Learn C#
Posted by robbiebell22 at 7/29/2005 4:50:01 PM
I have been looking all over the internet on how to learn C# .net. I have
read a couple of books, lots of forums, and tutorials, but i am still at a
very big loss as far as trying to write my own GUI Windows application. I
was just wondering how everyone one learns C# so well that they progr... more >>
Dynamic asp form via cs (c#) code
Posted by dpfollmer NO[at]SPAM yahoo.com at 7/29/2005 2:03:32 PM
I am currently designing a ASP.NET form for contacts which displays a
picture depending on which contact is being viewed. This code works
perfectly thus far, but I want to add an if-case for when the picture
does not exist.
In english it would be something like this:
If file exists ("..... more >>
C# Process.Start (applications return code to OS)
Posted by Tony at 7/29/2005 1:24:23 PM
I am running an application called AcroComm.exe to poll time clocks here at
our company. I have written a small C# app that will poll the clocks based
on information found in a DB. My problem is that AcroComm will sometimes
stop polling in the middle of the process and terminate. The programing
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Sharing classes
Posted by dbcuser NO[at]SPAM gmail.com at 7/29/2005 12:42:36 PM
Hi All,
This is a very simple question. I have a proxy class (for web service)
and couple of other classes that are common for 3 of my projects. As a
developer, I would like to keep these common classes seperatly and use
them in three different projects. How can I do that?
Thanks.
... more >>
public static enum?
Posted by jim at 7/29/2005 12:33:35 PM
I have a configuration class which a handful of enum's that I want to
access from another assembly/project. Is this possible?
... more >>
Which Microsoft Visual Studio .NET to go with?
Posted by wASP at 7/29/2005 11:43:45 AM
Hi,
I am contemplating the purchase of Microsoft Visual Studio .NET,
and I've noticed that the prices range anywhere from $200 to $600 USD:
<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>
http://www.calibex.com/Microsoft-Visual-Studio-NET--zz57175175z0znz1zvisual
_st... more >>
Form1_SizeChanged .....Maximize minimize events cannot capture
Posted by JJ at 7/29/2005 11:29:44 AM
I have athe following code, but nothing happens when I minimize or maximze
the form using "top right corner minimze/maximize buttons". What am I
missing!!!!! Help please!!!!!!!!!!
Thanks
JJ
private void Form1_SizeChanged(object sender, System.EventArgs e)
{
if(this.WindowState == ... more >>
SoundCard/Modem
Posted by Sahil Malik [MVP] at 7/29/2005 11:22:28 AM
A really simple question.
I have an interactive application that works using a microphone and speakers
plugged into the sound card.
I'd like this app to work over a telephone now. VOIP or a real telephone
line - both are workable options.
I am clueless how to proceed further, this was d... more >>
form1_Sizechanged (maximize/minimize ???)
Posted by JJ at 7/29/2005 10:53:53 AM
I have athe following code, but nothing happens when I minimize or maximze
the form using "top right corner minimze/maximize icons". What am I
missing!!!!! Help please!!!!!!!!!!
Thanks
JJ
private void Form1_SizeChanged(object sender, System.EventArgs e)
{
if(this.WindowState == Fo... more >>
Freeing Memory
Posted by yehoshua at 7/29/2005 10:35:46 AM
Is there anyway to explicitly tell the garbage collector you are done
with an object? In my app I have a point where I am sure there should
be no references to an set of objects (well i remove what i assume is
the last reference to them) and I want them to be GCed. But for some
reason my app i... more >>
Custom Control Help
Posted by graeme g at 7/29/2005 10:31:48 AM
Hi
I have a control i've written which works fine... but my question is this...
some of the properties in the control are actually a class and i want to
be able to view the properties of that class... e.g. like Font, so i
want to able to display a + - next to it
how do i do this?
I'm... more >>
Can a key- say F3 be bound to a string with C#?
Posted by arcticool at 7/29/2005 10:29:37 AM
I have a commonly used password that is low security, but part of my
application testing so I want to just bind it somehow to an F-key say F3
and maybe another to F4. So I can click on the field and just hit F3 to
fill in the PW.
If you saw how many times a day I have to do this you would und... more >>
Converting Regular expression match
Posted by Paul Johnston at 7/29/2005 9:25:39 AM
Hi Just started using c# to do a task I usually use Perl to do and hit
a limit in my knowledge :-)
I have a program which reads from a large text file, extracts certain
lines then gets a string from these lines.
Question
If the object I extract is in the form of a number how can I cast it
in... more >>
System.ComponentModel.IContainer
Posted by Fernando at 7/29/2005 8:36:20 AM
Why do some forms on my project have the components variable as
System.ComponentModel.IContainer components = null;
Yet others have
System.ComponentModel.Container components = null;
What is the difference of this variable being a reference to the Container
class as opposed to the Inte... more >>
RichTextBox on Form -- Exception.. Cannot access a disposed object
Posted by mthgk at 7/29/2005 6:51:04 AM
I have a C# MDI app. The child forms do alot of work, so this work is
perfomed on a different thread created using ThreadPool.QueueUserWorkItem().
Because the status of the work is important to the user, I post the results
in a richTextBox on the child form. I have created an event to do th... more >>
How to convert from 32argb to 8bpp correctly
Posted by James dean at 7/29/2005 4:13:34 AM
Do i have to create an index pallette. How do i do that?. Or, Can i not
just make an ordinary 8pp pixel format without this indexed
problem......
*** Sent via Developersdex http://www.developersdex.com ***... more >>
How to use iTextSharp in c#
Posted by Ravi at 7/29/2005 3:51:01 AM
Hi,
i need to use iTextSharp to generate the PDF in c# web application. if
any one know it will be of greate help.
Thanks
--
ravib... more >>
A nested enum?
Posted by Steven Blair at 7/29/2005 1:54:40 AM
Hi,
As the title suggests, I am looking for soemthing which would
essentially give me a nested enum, or perhaps someone can suggest a more
suitable approach to my problem.
I have a DLL which allows the user to select which type of DB they are
using and also how to connect (ODBC, OleDb etc) ... more >>
what the c# equivalent of ...
Posted by jose g. de jesus jr mcp, mcdba at 7/29/2005 1:31:01 AM
vb.net val function
c=val(a$)+val(b$)
thanks... more >>
Boxing causing problem during comparisons
Posted by Aamir Mahmood at 7/29/2005 12:00:00 AM
Hi
I am on framework version 1.1 (SP1). Consider the following code.
public static void Main() {
int i=1;
int j=1;
object a=1;
object b=1;
object c=i;
object d=j;
object e=i;
object f=i;
object g=b;
object h=b;
Console.WriteLine("a==b " + (a==b)); // prints Fal... more >>
MQ Series Client API
Posted by NG at 7/29/2005 12:00:00 AM
Hi All
Can anyone pls let me know if there is a MQI wrapper (MQ clinet API) that I
can use in C#.
Thanks
Nitesh
... more >>
Boxing confuses MS VS 2003 also
Posted by Aamir Mahmood at 7/29/2005 12:00:00 AM
Hi
I am sure that this is a bug in MS VS 2003;
Consider the following code:
----
public static void Main() {
int i=1;
int j=1;
object a=1;
object b=1;
object c=i;
object d=j;
object e=i;
object f=i;
object g=b;
object h=b;
if (a==b) {
... more >>
Data Oriented vs Object Oriented Design
Posted by Patrick at 7/29/2005 12:00:00 AM
Hi all,
New to .NET, I'm working on an Winforms client application using VS
2005 beta2. My needs considering data storage are the followings:
(1) Small files (0 < length < 10 mb), containing lots of small
'objects' that need to be loaded into memory at runtime, in order to
garantee small ac... more >>
Dealing with large files (random access)
Posted by Patrick at 7/29/2005 12:00:00 AM
Hi,
This post is the 'sequel' ;) of the "Data Oriented vs Object Oriented
Design" post, but it can be read and treated apart from that one. I
will just quote the beginning of my previous message to expose the
problem:
[QUOTE]
New to .NET, I'm working on an Winforms client application usi... more >>
TreeView and node duplication question
Posted by lallous at 7/29/2005 12:00:00 AM
Hello
I'm new to C# language and wonder if the code is correct syntax wise but not
necessarily logic wise.
private void nodeMoveUp(TreeView tv)
{
TreeNode tn = tv.SelectedNode;
if (tn == null || tn.Index == 0)
return;
int newindex = tn.Index - 1;
TreeNode newnode = (TreeNode)... more >>
|