-
- Sort "Add New Item" dialog. . .
by Blair Allen Stark
- 3 Replies
- Last post
by Roland Sommer
- Is there any way to change the sort order of the items presented in the "Add New Item" dialog
Or am I just the only moron that can't recognize the meaning of the icons
-
- Store array in LinkedList
by shah123
- 3 Replies
- Last post
by shah123
- Hi All,
I am working on linked list application which the structure is as: [code] public static void Main(String[] args) { Console.WriteLine("Please Enter the data to be Inserted in the LinkList..."); Object obj = new Object(); node n = new node(); linklistImp llist = new linklistImp(); ArrayList ast = new ArrayList(); obj = Console.ReadLine();
-
- Interfaces and Abstract Classes
by Sammy1971
- 14 Replies
- Last post
by Indian Ocean
- Hi, I am hoping someone can explain this to me. Lets say I have an abstract class called Employee, from Employee, the following classes are inherited, Manager and Cleaner Can someone explain to me how to incorporate an Interface for this scenario so my application can tell which type of object "Manager or Cleaner" its dealing with Thanks
-
- Class names not being highlighted.
by Kris Kramer
- 9 Replies
- Last post
by Kris Kramer
- This is probably a fairly easy question, and it might belong in a VS forum somewhere but I couldn't find a VS - General forum here. So since I'm coding in C#, I'll try here.
I opened VS today and one of my files no longer has the class names highlighted in light blue. It still builds, the site works and everything, but VS doesn't seem to recognize any of the classes or references on that one pa
-
- generic error in gdi+
by mcnamaragio
- 9 Replies
- Last post
by Figo Fei - MSFT
- Can you please tell me why I'm getting generic error in gdi+ error in this code:
Code Snippet IntPtr hdcSrc = winapi.GetWindowDC(winapi.GetDesktopWindow()); // get the size winapi.RECT windowRect = new winapi.RECT(); winapi.GetWindowRect(winapi.GetDesktopWindow(), ref windowRect); int width = windowRect.right - windowRect.left; int height = windowRect.bottom - windowRect.top; // create a
-
- Type Initializer Exception !
by soujanya
- 4 Replies
- Last post
by soujanya
- Hi..
I'm using Visual Studio 2005. In Main() before running my main form of the App, I'm calling a function that checks for some mandatory DLLs and OCXs for the App. Depending of the bool value returned by that function, the main form of the App starts.
something like this....
static void Main()
{
try
{
if (! MyClass.MyStaticFunction() ) return;
-
- Using assignment in an if/while/ condition?
by Matthew Galligan
- 4 Replies
- Last post
by abcdefgqwerty2
- Hey all,
I am currently working on a rather large product and am nearing completion, and I was currently working on some of the Excel/Word conversion and IO routines and I thought to do something like this...
StreamReader sr = new ...blah blah blah
while ((tempString = sr.Readline()) != null)
{
< parsing code here...> }
.. Is there anything absolute
-
- Application.Run() without showing the parsed form
by Cminor
- 2 Replies
- Last post
by Peter Ritchie
- Evening all,
My question is can I have an System.Windows.Forms.Application.Run(MainForm) statement and execute it without having parsed MainForm visually appear. I have attempted to set properties such as Visible and methods like Hide() in the Form_Load event to no avail. It still shows the form.
//This is the class where i try and run my mainForm code
Trip_GenericWebBrowser _newGenericB
-
- opening other programs?
by Wolf_92
- 2 Replies
- Last post
by theblueeyz
- Hello, is it possible with C# to open up the user's default internet browser and take it to a certain web page I would like it to open it outside the program (if you understand). If you can do this, is it possible to open any program
-
- C#, try/catch blocks
by recherche
- 12 Replies
- Last post
by recherche
- Hi!
I want to know, under what circumstances you use try/catch blocks in constructors and destructors Example
Thanks
-
- ArrayList.IndexOf
by Azurewrath
- 14 Replies
- Last post
by Azurewrath
- Hi all, I am trying this method, but with an arraylist that contains Vector3 data types, I don't know how to find a particular one. I tried: Console.WriteLine ( "IndexOf Vector3: {0}", a.IndexOf ( new Vector3 ( 0, 0, 1 ) ) ); But this returns -1, even though there is a Vector3 ( 0, 0, 1 ) in the arraylist. Any idea on how to solve this Thanks, Aw
-
- byte[] Array to Hex String
by tlc660
- 5 Replies
- Last post
by PZahra
- is there any method provide in .net for conversion like byteToHex(byte[]) Byte [] Bytes = {0xFF, 0xD0, 0xFF, 0xD1} to "FFD0FFD1" thnx
-
- Running a console app from Windows Service
by awj100
- 3 Replies
- Last post
by Mark Betz
- I'm building an application which uses the console interface of the Nokia Multimedia Converter and passing in switches to control the resultant file. I can currently run this in 2 ways:
1. Straight from the command line (manually). Using this method it takes about 4 seconds to complete.
2. Running an application which starts the Converter as a new Process and passes in the switches through t
-
- VC# Express crash with form designer
by Pauluss86
- 3 Replies
- Last post
by Pauluss86
- Hello everyone, my first post here :) I have a problem viewing my Form in Form Designer; however, this only happens with the current project i'm working on. When I try to view my form i get the following error:
One or more
errors encountered while loading the designer. The errors are listed below. Some
errors can be fixed by rebuilding your project, while others may require code
cha
-
- C# and Adobe PDF Reader
by kryptonkal
- 3 Replies
- Last post
by Eragon
- We all know how easy it is to display a pdf in a C# application, but
the problem that I can't seem to figure out is how to create a
reference to any version of Adobe Reader installed on the users machine. If
I use AcroPDF.dll from reader 8, I cannot open a pdf within my application if the
user has either a newer or older version installed. Is there any way
around this Can I create a reference
-
- System.Threading.ThreadAbortException
by Wiltek Ghozali
- 14 Replies
- Last post
by Matthew Watson
- How to avoid this error, when closing my application i have put the thread codes into try{}catch{}, but this error still shown when aborting the thread. See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text ************** System.Threading.ThreadAbortException: Thread was being aborted. at MIPSearch.FormMain.For
-
- Unable to copy vshost.exe after publish
by BastianT
- 3 Replies
- Last post
by Boldrik
- Hallo,
I use VS 2005 SP1 and C#.
I've a small project wich I could build and debug.
Today I try to publish the project to an unc path wich works.
After that I can build and debug the project only once.
If I stop the project and try to debug it a second time
I always get the error that the vshost.exe file could not be copied to the Debug path.
If I close
-
- Building Deployment projects from the command line (devenv.exe)
by i386
- 2 Replies
- Last post
by Gabriel Lozano-Moran
- Hey, I have a need to build a single deployment project from the command line using devenv but I have a need not to rebuild any dependant projects in its solution (ie when the deployment project take the output of another solution I want so assume that this is already built). Is this at all possible James
-
- Question re the possible usage of attributes
by Zamial
- 3 Replies
- Last post
by Zamial
- We have a class that takes another class in the constructor and loops through all the properties on the class passed to it.
Lately it has been decided there are certain cases where different rules should apply.
Currently there is a simple method looping through all properties and performing some work. The same on each. Now that we want a slightly different approach a quick fix is nee
-
- Help needed...
by CWtF
- 1 Replies
- Last post
by Peter Ritchie
- Does someone know how to port this to a windows forms application http://blogs.msdn.com/toub/archive/2006/05/03/589423.aspx
-
- C# Delegate Method Reflection Capabilities
by software_writer_nyc
- 7 Replies
- Last post
by software_writer_nyc
- PRIMARY QUESTION
Can one get a unique id from a method name in the C# language
.....................................................................................
the method name is the name that can be passed to a c# delegate
(for this thread .. lets agree a method name is NOT a literal string wiht quotes such as "my_interesting_method")
How flexible is a delegate i
-
- static method - Is there any workaround?
by TrevorW
- 14 Replies
- Last post
by TrevorW
- I think most know we cannot declare a static anything in an interface. However, let's say I have this:
public sealed class MyClass {
private MyClass(string someText) { m_someModifiedText = someText; }
private readonly static m_someModifiedText;
public static MyClass Create( string someText ) { string modifiedText= ModifyText(someText); return new MyClass(someText);
-
- How to convert PDF to TIFF through C#?
by Ravi Bhatt
- 14 Replies
- Last post
by Jason Zhao
- Hi,
I am sending PDF as fax from my application.It works fine bt the only issue is, Adobe Acrobat's new instance gets opened automatically.The solutions I got is to fax TIFF files rather than PDF.
Can anyone do let meknow how to convert PDF to TIFF through C#
Thanks,
Ravi Bhatt
-
- Finalize and Dispose
by TomPearson
- 4 Replies
- Last post
by TomPearson
- Hello
I have a class that implements IDisposable with the following code.
/// <summary>
/// This should be called to free up system resources when the object is finished with
/// </summary>
public void Dispose()
{
// Call the clean up routine
CleanUp( true );
// Stop the finializer calling
GC .SuppressFinalize( this );
}
-
- [C#] Process to port mapper
by mecano14_bis
- 7 Replies
- Last post
by mecano14_bis
- I cant find how to realize a process(PID) to port mapping with C#
For example : port 21 is used by PID 826 (Filezilla.exe)
Someone knows if it's possible