all groups > c# > june 2004 > threads for sunday june 13
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
foreach for ArrayList - unexpected behavior...
Posted by Kail at 6/13/2004 11:49:58 PM
Hello all,
today i found a very strange situation of ArrayList - at least for me.
let's take 3 elementes that were put into list variable (list.add(point 1 -
3)):
Point(1,1);
Point(2,2);
Point(2,2);
list is an instance of ArrayList
foreach(Point p in list) {
Point p = (Point) list... more >>
Application problem
Posted by Sean at 6/13/2004 11:40:21 PM
Hi,
I have a problem running my application. When I run my
application, the window program starts as being minimized
on the taskbar and the worst thing is that I can't even
maximize or put it back to normal...
I suspect this is a problem in the resource thingy in
Visual Studio. I had t... more >>
Redirect in an Iframe
Posted by Jac at 6/13/2004 11:25:01 PM
Aspx-problem :
I want to write code (C-sharp) behind a button, that determines on some criteria which webpage an IFRAME has to show.
To change a normal webpage you do a redirect in c-scharp (response.redirect "page1.aspx).
But in a webpage I have an IFRAME and I want only to change the conte... more >>
DataGrid
Posted by [Yosi] at 6/13/2004 11:07:01 PM
In dataGrid when I move down until last row, the dataGrid add automaticaly new row, how can I disable this feature.... more >>
Service starts then stops
Posted by Beeeeeves at 6/13/2004 10:45:21 PM
Hi, hope somebody can help...
I have created a service which has a filesystemwatcher as its main
component, it then logs information received in the events to an access
database. I was using a setup project to install it, then attach to its
process, very successfully for quite a while, I was alm... more >>
What the fsck am I doing wrong here
Posted by sdmanson NO[at]SPAM stewireless.com at 6/13/2004 8:57:55 PM
StringBuilder bldr=new StringBuilder();
int res=GetClassName(0x00240110,bldr,255);
Debug.WriteLine(bldr.ToString());
if(bldr.ToString()=="AfxFrameOrView42s")
Debug.Write("Things SHOULD work");
hWnd=FindWindow(bldr.ToString(),"");
if(hWnd==(IntPtr) 0)
{
Debug.WriteL... more >>
web control error in c#
Posted by Neo at 6/13/2004 6:55:44 PM
I build a web control.It works fine in VB.net, but in C#, there is an
error:The type 'mycontrol' must be marked as Serializable or have a
TypeConverter other than ReferenceConverter to be put in viewstate.
I added Serializable attribute on the class.but the error is still there.
what should ... more >>
newbie needs help with code
Posted by Raymond Du at 6/13/2004 3:42:59 PM
Hi,
I have a SqlDataReader object, say the name is dr1, it has only one column,
say its name is "Name", how do I convert dr1 to an array of Strings, i.e.
String[].
Thanks in Advance
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
/// <summary>
Posted by Sam at 6/13/2004 2:54:02 PM
I have an extended class in a dll and have put summaries for each method like this
/// <summary>
/// Removes all occurences of a given object.
/// </summary>
The problem is that when I see my methods in the intellisense, the summary shows up only within the namespace and if I use my classes an... more >>
Stupid Compiler Question or Compiler Stupid Question
Posted by Bill at 6/13/2004 1:11:01 PM
I am confused why I must cast an enum to a type int if I defined the enum as follows:
enum COLUMNS :int
{
IP=0,
MSG =1
}
IMHO the compiler should be able to make the conversion without requiring a cast. I am curious why the cast is required.
Bill... more >>
Extending the toolbarbutton control
Posted by cakewalkr7 NO[at]SPAM hotmail.com at 6/13/2004 12:23:41 PM
I am trying to learn how to create my own controls. I want to create
my own toolbar which would be similar to the .net toolbar except that
my version would allow 3 images per button (off, over, down). I
haven't been able to find anything on msdn on extending the
toolbarbutton control to add in... more >>
System.String vs string
Posted by Jay at 6/13/2004 11:13:33 AM
What is the difference between these two types. The both seem to have the
same methods. Is there an advantage to one over the other?
... more >>
List View property
Posted by [Yosi] at 6/13/2004 6:57:02 AM
I have alist view with more than one colloms and I don't want to select all the
row I want to select the data in each colom .
How to do that... more >>
FileInfo - Equals
Posted by Sam at 6/13/2004 6:43:01 AM
Hello,
I just want to check something. I have two objects of FileInfo.
FileInfo f1 = new FileInfo(“sam.exeâ€);
FileInfo f2 = new FileInfo(“sam.exeâ€);
If I use the f1.Equals(f2); it gives false but I want true because it’s the same file. What should I do? I want that when I call Equa... more >>
IIS Problem
Posted by Denna at 6/13/2004 6:10:01 AM
Hello, I've built a webpage using ASP.NET, now, when I compile and run the project locally, it works fine, though, when I try to access my site remotely, IE hangs and nothing comes up
Even if I try to access an individual file, say a text file, it loads up in IE locally, though it wont work remot... more >>
Good book that touches on handling windows messages with C#?
Posted by harrylmh at 6/13/2004 5:36:45 AM
Anyone knows of a good book that touches on windows message handling
with C#?
Thank you... more >>
'out' keyword in methodes param
Posted by [Yosi] at 6/13/2004 4:14:01 AM
I have the following dll function:
RW_DLL_API int ReadBDll(DWORD Address, DWORD NumOfUnits, BYTE * val)
From my C# application I call this one as following :
[DllImport("RW_DLL.dll")]
extern static int ReadBDll(UInt32 Address, UInt32 NumOfUnits, out byte [] Block);
byte [] arr = new byte[5]... more >>
'Out' keyword in methods parameter
Posted by [Yosi] at 6/13/2004 4:07:01 AM
I have the following DLL function prototype:
RW_DLL_API int ReadBDll(DWORD Address,DWORD NumOfUnits, BYTE * val);
I use this function from C# application as following:
[DllImport("RW_DLL.dll")]
extern static int ReadBDll(UInt32 Add, UInt32 NumOfUnits, out byte [] Block);
then I call this ... more >>
Collection datatype question.
Posted by Dmitrii PapaGerogio at 6/13/2004 4:06:08 AM
Right now I am using Vector to store two values...something in the lines
of...
Vector v = new Vector();
v.Add("bob", 21);
v.Add("dan", 26);
v.Add("sally", 24);
but now using Vector which will only hold 2 values is not enough. Is
there something in the MS collections package that can sto... more >>
Accessibility modifier question
Posted by Hans De Schrijver at 6/13/2004 2:41:48 AM
I'm a little confused about an accessibility issue I'm encountering. Maybe
someone can shed some light on it for me.
I have an abstract class AClass1, an abstract class AClass2 that inherits
from AClass1, a regular class 'Class3' that inherits from AClass2 and a
regular class Class4 that inher... more >>
Launching TimeDate.cpl
Posted by Robert Misiak at 6/13/2004 1:14:37 AM
In a program that I wrote, it is very important for the user to have the
correct time zone configured. As such, in its properties window I display
the current configured time zone, and if it is incorrect there is a button
that the user can click on which launches TimeDate.cpl. This is how I run... more >>
BeginReceive Async network socket example
Posted by shofu_au NO[at]SPAM yahoo.com.au at 6/13/2004 1:10:08 AM
Dear Readers,
I am in the process of implementing a non-blocking ASYNC TCP client
using the .Net socket class. I am a little confused by the MSDN
example. I have pasted the code here.
private static void ReceiveCallback( IAsyncResult ar ) {
try {
// Retrieve the state object ... more >>
C# XML documentation question
Posted by Jeff Johnson [MVP: VB] at 6/13/2004 12:13:44 AM
[I got no response in the vsnet.ide group so I'm asking here.]
When you type /// in the editor in a C# source file, a comment block is
created as soon as the last slash is typed. Is the format of the output
(i.e., the generated template) hard-coded into the IDE or does the IDE call
a macro whi... more >>
|