473,809 Members | 2,740 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C# / C Sharp Forum

3
3,946
thread by: Marty McDonald | last post Nov 13 '05 by: Tian Min Huang
protected abstract static string SetConnectionToUse(DataMode whatMode); This is illegal to the C# compiler, because "static" & "abstract" don't go together. But how else can one force deriving classes to implement a method while still making the method static?
1
18,281
thread by: Michael Hetrick | last post Nov 13 '05 by: Michael Hetrick
How would I pass parameters to a console application? I would like to do something like this: consoleapp.exe /o \\fileshare\origindirectory /d \\fileshare\destinationdirectory I'm not sure how to start the console app to read from the command line. Any assistance would be appreciated! Michael Hetrick
15
31,816
thread by: Anand Ganesh | last post Nov 13 '05 by: Jonathan Schafer
HI All, I have an Image. I want to clip a portion of it and copy to another image. How to do this? I know the bounding rectangle to clip. Any suggestions please. Thanks for your time and help. Regards
0
2,540
thread by: Alien | last post Nov 13 '05 by: Alien
Why does this code Console.WriteLine(g.MeasureString("a", new Font("Lucida Console", 11f)).Width); Console.WriteLine(g.MeasureString("aa", new Font("Lucida Console", 11f)).Width); produce this output: 13.9911
2
2,076
thread by: Kate Luu | last post Nov 13 '05 by: Kate Luu
Hi All, First of all, My computer have only one comm port, and I did set up the port as looping call back. I have one form with one button. When the form load, I call WriteFile to open the port and then create a thread for reading back the port if some thing arrive into the port. When I click the button, I write the word: "Hello World" to...
0
3,043
thread by: Richard | last post Nov 13 '05 by: Richard
Hi, I'm trying to do drag-n-drop from MS Outlook onto a C# form. I'm just proving a concept for management here so we don't need to get fancy; assume I'm dropping an Outlook e-mail message with 2 file attachements onto a form. I've read everything I could find in MSDN that is relevant and I've got the basic hooks in place: private...
0
1,401
thread by: Bijoy | last post Nov 13 '05 by: Bijoy
Just wondering wether it would be possible to programatically attach processes like aspnet_wp.exe to the debugger. Otherwise we need to attach it every time which seems to be quite time consuming in a large project like ours Any help would be muchly appreciated cheers Bijoy
2
5,562
thread by: fragget | last post Nov 13 '05 by: fragget
hi i have a string like "ffff032d" which represents a color. i want to create a color object given this value but am having trouble. this is what i have so far.
0
1,961
thread by: Bob | last post Nov 13 '05 by: Bob
I have been trying to us an unmanaged dll for a while now with no good results. Most of the dll methods i can use and have been. I however have a problem with this one. I am supposed to ref 15 objects as the following type. This is one of the 15 variables i am using. object secondaryFieldScoreDataSA = new int ;
6
3,912
thread by: Patrick De Ridder | last post Nov 13 '05 by: Patrick De Ridder
How do I get this to work? Libraries to use etc.? Thanks, Patrick. Timer timer = new Timer() timer.Interval = 1000; // Once a second timer.Tick += new EventHandler(OnTick); timer.Enabled = true; timer.Start();
2
1,996
thread by: David Elliott | last post Nov 13 '05 by: Allen Jones
I have written an application and am looking to extend its capabilities. I am looking to create pluggins and don't know where to start. I am also looking to store the pluggins in a subdirectory from the application root. I looked on MSDN and some of the other code sites but couldn't find and example. Does anyone have an example? ...
0
1,317
thread by: Mario Garcia | last post Nov 13 '05 by: Mario Garcia
Is there a way to increase the socket list limit on the select call? I get an index out of range exception on any list count over 64.
2
2,108
thread by: nfr | last post Nov 13 '05 by: nfr
I keep getting the following warning in my compile: Warning: The dependency 'WBWebServices, Version=1.0.1289.13943, Culture=neutral' in project 'WBWin' cannot be copied to the run directory because it would overwrite the reference 'WBWebServices, Version=1.0.1289.15088, Culture=neutral'. If I delete and readd the reference, it compiles fine...
1
4,957
thread by: Patrick Blackman | last post Nov 13 '05 by: Nicholas Paldino [.NET/C# MVP]
Has anyone used CreateWindowEX API to create a control in C#? I want to create the Richtextbox control using this method so I can have better control over the underlying interfaces to substantial extend the functionality. Any Ideas would be appreciated. What I really want to do is create the control with a limited exposure of properties,...
12
2,261
thread by: Ron Bullman | last post Nov 13 '05 by: Edwin Kusters
Hi, I haven't been able to find proper (commonly agreed) names for the following kinds of methods. Class (static) methods: c1) returns value, doesn't modify the content of its argument(s) and doesn't change the state of class (class accessor?) c2) returns value, doesn't modify the content of its argument(s) and changes the state of...
4
12,340
thread by: Chris | last post Nov 13 '05 by: Chris
Hi, I think I'm having some problems here with garbage collection. Currently, I have the following code: public struct Event { public int timestamp;
0
1,782
thread by: Martin | last post Nov 13 '05 by: Martin
I have written a modified textbox. Is there a way to get a combobox to use a custom textbox control?
2
4,846
thread by: Vadym Stetsyak | last post Nov 13 '05 by: Vadym Stetsyak
Hello! How can I get the info about the function at which goes the execution. I mean information that can be obtained with the help of __FUNCTION__ , __FILE__, __LINE__ in the C-language. -- Vadym Stetsyak ICQ 161730125
3
2,265
thread by: Les Caudle | last post Nov 13 '05 by: Jay B. Harlow [MVP - Outlook]
When I compile my project in VS.NET 2003, the projectName.exe.config file in the BIN directory is deleted. This was not the case in VS.NET 2002. How can I resolve this? -- Thanks in advance, Les Caudle
3
11,770
thread by: JJ | last post Nov 13 '05 by: JJ
Hi All, How can I get the handle to a window in c#? I did notice that for a form in C# there is a hwnd property, is this one and the same? Thanks, JJ
2
19,614
thread by: Coder Coder | last post Nov 13 '05 by: Ignacio Machin
Hi, I have the following: private enum LineFormat { LEFT_TO_RIGHT, RIGHT_TO_LEFT }; private void DrawLine ( LineFormat ) { // draw differently depending on the parameter }
2
8,491
thread by: Michael Wu | last post Nov 13 '05 by: Ignacio Machin
I have a string looked this "2003-07-08T13:04:00.0000000" How do I convert it into a System.DateTime object? Regards
1
1,139
thread by: Tom | last post Nov 13 '05 by: Ignacio Machin
Has anyone had this happen. I'm in a ASP.NET application using c#. I drag a label and text box to my page. I add a table add some <tr>'s <td>'s. Then I nest another table, line my code up so it all indents just the way I like it. I then switch to design view, then back to HTML view only to find my code is now repositioned.
3
3,027
thread by: nfr | last post Nov 13 '05 by: nfr
I have a Singleton Model object that can be instantiated by different applications at runtime. This object activates a Channel using the config file in its constructor, which needs the name of the config file as a string. Because the object does not know the application in which it is being instantiated and because it's constructor is...
1
5,733
thread by: John Barr | last post Nov 13 '05 by: Nicholas Paldino [.NET/C# MVP]
I am using C# to import data from an Excel File, and trying only want to get a rowcount of rows with data in them, not 65536. Is there a way to do this, or do I need to cycle through all the rows to determine if data exists..?

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.