all groups > c# > august 2003 > threads for thursday august 28
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
how to create .msi ?
Posted by Lloyd Dupont at 8/28/2003 11:24:14 PM
I have a C# application solution (with 2 projects)
it's finished and I'm happy with that I have.
I use VS.NET 2003 for the development.
now I want to create an install package (typically a .msi), well, I have
absoultely no idea where to start, not even which documentation look !
Could anyon... more >>
Convention in Csharp
Posted by SuperFrog at 8/28/2003 10:32:02 PM
HI there,
Is there is any resources on the Conventions for Csharp?
I tried to do a search but did not find any.
I would prefer to use a convention that is consistant
thus making my codes easier to read and understand. =)
Any resources on this?
thansk... more >>
DLL and Message Posting
Posted by Ken Williams at 8/28/2003 10:19:30 PM
Hi I have a DLL written in C/C++ that is passed Hwnd when it is called.
When the DLL has data for the calling program it uses Hwnd to post a windows
message back to the calling program saying it wants attention.
I have looked at Delegates and events, but it's not obvious how I can
replicate ... more >>
PrintSettings2
Posted by VR at 8/28/2003 9:39:10 PM
Also,
I noticed that PageBounds and PageMargins rectangles are
not properly representing the page size (or it could be
the printer). The code below draws a rectangle on the
screen which isn't really centered, but rather shifted to
the right of the page:
private void OnPrintPage
(
... more >>
Fixing a form on the screen
Posted by Patrick De Ridder at 8/28/2003 9:37:15 PM
My program produces a number of overviews, for which
I use different forms, which are displayed. These forms are
displayed at certain positions on the screen. I don't want
the user of the program to start moving them about.
Is there a way to fix displayed forms on the screen so
they cannot be... more >>
Reading XML attributes
Posted by Hans Kamp at 8/28/2003 8:53:57 PM
My program fails reading XML attributes. A fragment of the code is:
private void showXmlNodeAtTreeNode(XmlNodeList xnl, TreeNode tn)
{
int i;
for (i = 0; i < xnl.Count; i++)
{
XmlNode xn = xnl[i];
XmlNodeType nodeType = xn.NodeType;
if (nodeType == XmlNodeType.Xm... more >>
threading parameter
Posted by grmAbay at 8/28/2003 8:03:50 PM
Hello,
This might sound as a stupid question, but how can I pass parameters to a
thread? Let me rephrase that.
When I have a method, i declare it like this:
public void DoSomething(string aParameter, int anotherParameter) {
....
}
When I want to use this method with a thread I do it l... more >>
Binary stream does not contain a valid BinaryHeader
Posted by BH at 8/28/2003 7:49:56 PM
I'm trying a simple object serialization and deserialization, and keep
getting this error:
System.Runtime.Serialization.SerializationException: Binary stream does not
contain a valid BinaryHeader, 0 possible causes, invalid stream or object
version change between serialization and deserializat... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
How can I download file from a website need authentication
Posted by Sam at 8/28/2003 6:57:54 PM
Hello everyone, WebClient object works very well with the
no-need-to-authentication website. Can it also work also with authentication
website? Thanks in advance. Sam
... more >>
how do i... iterate a struct?
Posted by Matteo Cima at 8/28/2003 6:45:52 PM
hi!
i have a struct like:
Public struct conf
{
public bool debug=false;
public int opPalm=-1;
public int neMess=0;
public bool caPart = false;
}
how can i iterate the members of the struct to get the names of the
variables inside?
I'd like to save the entire struct v... more >>
Silly suggestion - thinking aloud
Posted by Jon Skeet at 8/28/2003 6:39:26 PM
I've been briefly musing on what is probably a pretty silly idea, but
one which would no doubt benefit from being discussed and thoroughly
shot down in flames rather than being allowed to fester in my head.
Quite a lot of the time when I would logically use foreach in C#, I
can't because I ... more >>
Get Reference
Posted by Tatyana at 8/28/2003 6:20:33 PM
I have a function
private static TypeA GetA()
{...}
Now I need to pass object that I get from GetA() as a
reference to a base class constructor. How to do it?
I tried doing
public MyClass() :
base(GetA())
{
}
but the compiler complains
"Argument '1': cannot convert from 'TypeA' to ... more >>
CCW and method parameters being classes?????
Posted by José Joye at 8/28/2003 5:31:11 PM
Hello,
I'm having a problem with CCW and method parameters. Some of the parameters
are classes.
It seems that these classes (or at least the properties inside the class)
are not seen from my VB client
Do I have to declare an interface for these classes (eg. TransModes)? If
yes, does anyone k... more >>
Question about Assembly.Load
Posted by Lee Alexander at 8/28/2003 5:16:21 PM
Why does Assembly.Load allow this:
Assembly.Load( "mscorlib" );
if you try the following it fails as expected:
Assembly.Load( "System" );
Since it should be (for framework 1.1):
Assembly.Load( "System, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089" );
I... more >>
dynamic PRoxy
Posted by Richard Cook at 8/28/2003 5:02:26 PM
Is there anything equivalent to java.lang.reflect.Proxy?
... more >>
method inheritance question
Posted by Jim Owen at 8/28/2003 3:51:23 PM
In the following code, as I understnad it, the resulting
display would be "I am B", because I have overridden the
constructor in B. However, what if what I really want to
do is display "I am A" followed by "I am B', so that A's
constructor is called, followed by B's constructor? Also,
does... more >>
Namespace: System.Data.OracleClient
Posted by Ahmet AKGUN at 8/28/2003 2:54:45 PM
Hi;
I have framework 1.0 installed and I dont have OracleClient under
System.Data
Can anybody tell me how to install it ?
thanks..
... more >>
Compiler problems
Posted by cameron at 8/28/2003 2:39:05 PM
I compile my project. No errors. Then I hit my page and I get an
Error in Application "/"
[No relevant source lines]
I change nothing and recompile. Works fine. If I compile twice in a row,
still get the error. I have to compile, hit the page, compile again.
Every single time. It is dri... more >>
internal class, public members?
Posted by Andrew R. Thomas-Cramer at 8/28/2003 2:27:03 PM
Can I simply mark a class as internal, or should I change all its public
members to internal as well?
If I can mark the class only as internal, it makes modifications easy.
... more >>
TreeView node.Bounds.Width and DrawString
Posted by timtos at 8/28/2003 1:52:46 PM
I am working on a custom treeView and have some problems with
a) node.Bounds.Width
b) concatenate strings drawn with DrawString(...)
a)
I want to highlight a selected node and used the node.Bounds dimensions
to draw a rectangle around the node but the node.Bounds.Width property
seems to be w... more >>
baffling C# question
Posted by Mike at 8/28/2003 1:51:49 PM
I have posted this before, but no one responds, so here
it goes again. I think my question is intimidating people
and I have no idea why?!? This is not a new concept. You
can do this with other programming languages, so why is
C# so different? Again, here is my baffling C# question.
I hav... more >>
Assigning fields to controls
Posted by Jesper DK at 8/28/2003 12:27:48 PM
Hi,
I'm making a 'settings dialog' for my program with a
seperate form and the ShowDialog(). However, initializing
the controls with values, writing eventhandlers to store
changes when e.g a checkbox is checked - is a little
cumbersome. I remember when programming in MFC that there
were... more >>
How to use the ConfigurationSettings
Posted by muhamad kassem at 8/28/2003 11:47:12 AM
hi
the code that get the data from the defualt file config is
String server =ConfigurationSettings.AppSettings.Get("Server").ToString()
how i can use another file config
in example file.xml ??????????
thanks
... more >>
How to get the hyperlink source (ASP.Net C#)
Posted by amil [c#newbie] at 8/28/2003 11:33:03 AM
Hi all,
Given that I have two hyperlinks that points to the same page. Is it
possible to know which was hyperlink was clicked from the target page's
point of view?
TIA
... more >>
Free tools for .net development
Posted by FabrÃcio de Novaes Kucinskis at 8/28/2003 11:32:42 AM
Hi all,
I'm searching for free and open source solutions to develop .net
applications for free.
I've found the SharpDevelop IDE (http://www.icsharpcode.net/OpenSource/SD/),
the WebMatrix IDE (http://asp.net/webmatrix/default.aspx), to develop in
ASP.net, SharpZipLib (http://www.icsharpcode.... more >>
Accessor access modifiers
Posted by Ben R. Bolton at 8/28/2003 11:24:53 AM
Is it possible to define a property such that the get accessor is public and
the set accessor is private?
Ben
... more >>
REQ HELP: Recompile of DLL causes other Apps to need recompiles as well?
Posted by Nicholas at 8/28/2003 10:26:38 AM
My associate made this claim during a meeting about which I have
doubts - perhaps someone would clarify this:
(1) He compiles his C#.Net 1.1 DLL and installs it to the GAC.
(2) Other applications (.Net framework) use his DLL.
(3) He makes a slight change to a method and recompiles his DL... more >>
Flithy .NET SPAMMERS - http://www.ticktop.net
Posted by John Timney (Microsoft MVP) at 8/28/2003 10:25:19 AM
Aplologies for the cross-posted mail.
This crap .NET component provider, who would likely win the worst web site
in the world competition are a dirty SPAMMING company and send out junk mail
to random mail list with false reply addresses.
Don't support this scum company by buying their produc... more >>
Copy constructor in C#
Posted by Jesper at 8/28/2003 9:50:38 AM
Hi,
Does the concept "copy constructor" from c++ excist in
c#. What is the syntax.
best regards Jesper.... more >>
http object
Posted by john at 8/28/2003 9:43:30 AM
is there a .net object that lets me use the http verbs
like get, put, post?... more >>
Compare between byte
Posted by chris chan at 8/28/2003 9:35:12 AM
Is there any way to compare two byte by XOR in a fast way
and return the number of bits is equal .
e.g.
b1 = 11100011
b2 = 01010010
after XOR compare will return 4 bit is equal
--
http://bbs.find-tutors.com/viewforum.php?f=30
... more >>
Threading Question
Posted by Adam Barker at 8/28/2003 9:26:02 AM
Hi guys
Not sure if my approach to threading in my app is causing more problems than
it should.
Let's say I have a form with four buttons on it. Each one goes away and does
something extensive (data retrieval from the web) and displays a result on
the form.
Whats the best way to code thi... more >>
how to create a property with drop options???
Posted by Lucas Sain at 8/28/2003 8:57:42 AM
Hi,
I'm trying to create a property in a class that should be apepar as
dropdown combo at design time with X options. Something like the
WindowStateProperty where you can select 3 options. How can this be done
I've tried several ways but can't get it to work. Whta am I doing wrong?.
This ... more >>
HOW-TO: "Hide" a property of a base class
Posted by Marc Scheuner [MVP ADSI] at 8/28/2003 8:56:58 AM
Folks,
I've created a descendant of ListView, and I would like to be able to
tell it to "hide" two of the base class's properties - how can I
accomplish this?
I know I can add a [Browsable(false)] attribute to the properties to
remove them from the object inspector window - that's not all,... more >>
Aborting a constructor
Posted by Marc Scheuner [MVP ADSI] at 8/28/2003 8:54:58 AM
Folks,
I have a plug-in system where I have a host that creates child forms
to be displayed (in an MDI manner). One requirement is that if certain
conditions apply, a child form should not be created, e.g. I would
have to be able to abort the child's constructor, if I see that
certain things ... more >>
MessageBox XP Styles
Posted by John Hoffman at 8/28/2003 8:43:20 AM
Hello,
I have a C# app that uses XP styles for controls. All
controls work fine. When I pop a message box, the message
box is displayed without the XP style.
Anyone know how to fix this?
TIA,
John Hoffman
... more >>
HTML in a windows formas application
Posted by Ralph Mason at 8/28/2003 7:21:47 AM
I would like to use HTML to layout pages / create reports in forms
application (well xml and xsl creating html)
This seems far easier than downing my own drawing code etc.
I also want to include buttons etc in the htlm that I can raise events in
the dotnet application if possible.
Can a... more >>
Self-deserialising object
Posted by Paul E Collins at 8/28/2003 7:21:23 AM
I'm using XmlSerializer to write objects of my own class to disk. I'd prefer
to do this from inside the class, so that I can just write
Settings.Load(...) and Settings.Save(...).
The code I tried is below. However, the Load method fails because the 'this'
object is read-only.
Is there a sim... more >>
sending object to a com object instead of variant
Posted by iamfree2002 NO[at]SPAM yahoo.com at 8/28/2003 6:26:22 AM
Hi there,
i writing a c# application which call to a com object written in vb.
the function in this object which i call gets as parameter: a variant
array and a variant dsnstring.
i tried to cast my array into object before sending it to the function
but i steel get an exception....
any ideas?... more >>
Read from a dataset
Posted by Fabrizio at 8/28/2003 5:53:05 AM
Hi,
I need to read data from a dataset filled with a READXML
method. I'd like to put data in some parameters.
There is any reader for that?
thanks,
Fabrizio
... more >>
Using SqlConnection Object to Oracle
Posted by Ramesh at 8/28/2003 5:52:19 AM
hi,
Can we use SQLConnection object to connect to oracle?
I understand that for connecting Oracle we have to use
only ODP.net (or) OLEDB Object. Is it correct? Please...
Thanks,
Ramesh... more >>
optimization
Posted by Zoury at 8/28/2003 3:50:07 AM
Hi everyone! :O)
I need a C# equivalent for the VB's CallByName() function.. I've looked at
the Delegate information in the MSDN and I'm familiar with Reflection (i've
listed the members of an assembly). I'm quite new to all these topics though
and I couldn't figured out the best way to do the... more >>
How to generate a RSA KEY
Posted by namri at 8/28/2003 3:21:25 AM
Hi
I want to generate a RSA KEY, if some one can help me
thanks... more >>
Multithreading question...
Posted by Just Browsing at 8/28/2003 2:53:23 AM
Hi,
I've been playing around with C# and was trying to put together a small
application that uses multiple threads as a learning exercise. For a simple
(but fun <g>) sample project, I thought I would do a simple game like pong.
Unfortunately it isn't working. My approach was to create a thre... more >>
Holy crap! "foreach" isn't indexed!
Posted by Jon Davis at 8/28/2003 2:02:21 AM
Wow. I just wasted another two weeks because I didn't know that "foreach"
and the ArrayList class isn't in indexed order!!
a;lsdkjf ;alsdkfj ;alsdkfj ;alsdkf j;adlskfj ;lsadkjf ;lsadkjf ;laskdfj
God bless you! a;lsdkjf;las djkf
Sincerely,
Jon Davis
http://www.powerblog.net/
... more >>
How to handle WM_GETTEXT in overridden WndProc ?
Posted by mav.northwind NO[at]SPAM web.de at 8/28/2003 1:55:52 AM
Hi folks!
I have a .NET RichTextBox derived class which has to react differently
to WM_GETTEXT (and some other messages) than it does by default
(mainly converting between \n and \r\n).
I override WndProc, but returning the (altered) text does not work:
protected override void WndProc(ref S... more >>
|