473,544 Members | 143 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C# / C Sharp Forum

2
49,997
thread by: MAF | last post Nov 13 '05 by: Cole Shelton
What is the Mod Operator in C#?
1
3,133
thread by: Jakob Persson | last post Nov 13 '05 by: Stephen Alpert
Hi Is there a way to program a DataGrid control to automatically adjust its columnwidth so it fits the contents of the columns. I am searching for a automated way to do the thing you do when you manually doubleclick on the columnheader. Yours truly
0
1,939
thread by: Marcus de Leon | last post Nov 13 '05 by: Marcus de Leon
Hi, How can I find out if my form is the top most window in the Z-order? Thanks
1
5,330
thread by: Fred. | last post Nov 13 '05 by: 100
I haven't been in OO all that long but ... I would like to upcast to a new object type and add functionality (methods only). The runtime cast opertion fails in the sample below. Is there a way to do it explicitly? Conceptually it is straightforward in cases such as this where no data is added or shielded from the base class in the derived...
2
2,060
thread by: lfjca | last post Nov 13 '05 by: lfjca
Hi everyone, Considering my website is made up of about 100 pages, I have to think of a solution to perform a search (by keyword). The serach result would be a collection of URL/links containing that keywork. Does anybody have any clue on how to efficiently carry out that search (consider 2 different scenarios: (1) using asp old model, and...
0
1,748
thread by: Ronald S. Cook | last post Nov 13 '05 by: Ronald S. Cook
I've got everything working with Forms Authentication except for one thing. When a persistent user (i.e. that checked "Remember Me" in the past and therefore now have a cookie) returns to the site, how do I identify which user it is? Do I use something like FormsAuthentication.GetAuthCookie... or maybe Request.Cookies(...? I'm guessing the...
3
10,048
thread by: Jerome Terry | last post Nov 13 '05 by: Daisy
Hi, Why don't UserControl's received Key events for the arrow keys? Further, when a user control is added to a Form, why does the form stop receiving Key events for the arrow keys? I have tried setting IsInputKey(Keys.Left, Keys.Right, Keys.Up, Keys.Down), but that doesn't work. Regards, Jerome.
1
1,237
thread by: kiran | last post Nov 13 '05 by: Ralph Gerbig
can u suggest me two good books in c# which covers the whole application issues. Kiran.
0
1,668
thread by: Andrew Mueller | last post Nov 13 '05 by: Andrew Mueller
Hello, I am writing an ActiveX dll with VB 6.0 (mainly because that is what I am comfortable with). This dll is really a wrapper around another COM object which has a lot of methods using reference properties, variants, and parameter arrays which seem make it difficult for me with C# (at least with my limited knowledge so far). With...
0
1,613
thread by: Patrick Jox | last post Nov 13 '05 by: Patrick Jox
Hello, I wrote a COM Addin using C#. Now I saw twice: 1. everytime I interate a Collection (i.e. Bookmarks) with foreach, this works but after having finished the function. The COM Addin hangs or do not trap the events to call its functions. 2. everytime I make an output with Debug.WriteLine, this works but after having finished the...
6
11,070
thread by: Francois Vanderseypen | last post Nov 13 '05 by: Adrian Vinca [MSFT]
This nested 'for' gives an out of range error on the second pass of the second loop, though it looks allright. Isn't it wierd? for (int tel1=0;tel1<3;tel1++) { for (int tel2=0;tel2<15;tel2++) { p=tel2; } }
0
1,084
thread by: OutOfAlignMent | last post Nov 13 '05 by: OutOfAlignMent
Hi, I had a few question about Events. 1. From some test code I've written it appears that the events notifications are sent to the subscribers in the order in which they where subscribed. Ex:
0
991
thread by: Claus Konrad | last post Nov 13 '05 by: Claus Konrad
Hi I'm looking for a way of manipulating a 3-thd party UI application from my code? I want to emulate a users input to buttons etc. on that UI app. How do I write an application using C# that is capable of manupulating another application by means of button presses, select boxes etc. Do I use something like windows handle etc. or how...?...
1
1,164
thread by: BK | last post Nov 13 '05 by: BK
I am gently moving my database applications from vb6 to c# . I would really appreciate if experienced c# database programmers among you could advice whether I should connect to sql databases visually using server explore controls or do it programatically as I have always done. Kaz
1
3,712
thread by: Yuelin | last post Nov 13 '05 by: Chris Hornberger
Hi again I am writing a form to show text. The text might have complicated format, such as font type, colour, line spaces, margins, etc. The text might be long - 300 words say. In this senario, other than using GDI+'s drawing text, is there any other easier approach of doing this? I am thinking simply to put the text into a Label, but it...
2
1,182
thread by: suzy | last post Nov 13 '05 by: Mark Pearce
it seems like a simple enough problem, but i need some help...... i have a table of messages (like newsgroup messages) in sql server. my application will allow people to read threads/messages and reply to messages over the net. the table has the following columns: messageId - unique primary key parent message id - if someone replies to...
1
460
thread by: Michael Smith | last post Nov 13 '05 by: Chris Capel
Hi, is there a way to send documents to the printer other than using the process class? maybe using win32 calls? -michael
1
11,991
thread by: Jon Davis | last post Nov 13 '05 by: Jon Skeet
What's the easiest and cleanest way to fetch an enum value by its name? For instance, public enum Boy { Bob, Billy, Joe } public Boy GetBoy(string boyName) { return ?? // and no, I refuse to use switch/case.
3
10,877
thread by: Andy Walldorff | last post Nov 13 '05 by: Mattias Sjögren
Given the following code.... // FooBar.cs, builds Activate.dll using System; public interface IFoo { void Bar(); }
0
1,289
thread by: adlaird | last post Nov 13 '05 by: adlaird
Hi, I created a simple webform, put a test button on it and implemented a click handler that looks like so: private void btnTest_Click(object sender, System.EventArgs e) { HttpCookieCollection oCookReq = HttpContext.Current.Request.Cookies; HttpCookieCollection oCookResp =
0
1,089
thread by: Abe Frohnman | last post Nov 13 '05 by: Abe Frohnman
I've been reading that in order for people to use my application written in C#, the enduser will need to have a copy of the .NET framework on their computer. Is this true? If so, how can I distribute my program to anyone who wants to use it w/o requiring them to download a ton of stuff from Microsoft? Thanks!
14
3,955
thread by: Ron James | last post Nov 13 '05 by: Lucean Morningside
C++ is a great language. You can instantiate an object on the stack, grab whatever resources you need, and free them in the destructor. Object destructors are called in the correct order (the reverse order), and are guaranteed to be called when the object goes out of scope. Unfortunately this is not so in C# (or Java) since you cannot...
1
1,476
thread by: alien2_51 | last post Nov 13 '05 by: alien2_51
Does anyone know where I can find a sample app that demonstrates running the app from the system tray..? I want all of my UI elements available from the context menu in the tray.. tia
0
1,583
thread by: Grant | last post Nov 13 '05 by: Grant
I have an application written in c# using the Web Browser Control. I also created a setup package to distribute this application on various machines all running windows xp or 2000. When i distribute the app, i am asked to install the .net framework, once installed the app runs. When i try to navigate to a web site using the Navigate...
2
20,735
thread by: Fatih BOY | last post Nov 13 '05 by: Adam Durity
Hi, I want to send a report from a windows application to a web page like 'report.asp' Currently i can send it via post method with a context like local=En&Username=fatih&UserId=45&Firm=none But the problem occures when i want to send a data with & sign (i.e: Firm=F&B). I try to solve this problem with using boundary, but i failed. Any...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.