-
- Code Folding/Collapsing
by Stuby085
- 1 Replies
- Last post
by Martin Xie - MSFT
- How can you implement code folding/collapsing within your own programs I am working on a basic text editor with code highlighting and would like to allow the folding functionality also.
-
- Unix and .Net interoperability
by Asim Patnaik
- 3 Replies
- Last post
by Asim
- Hi,
The following is the requirement in my project:
There are a few components developed using C++ and these components are hosted on a Unix machine. The requirement is to access these components using .Net components from a Windows machine.
Can anybody help me. A small chunk of code would be helpful too.
Regards,
Asim.
-
- How easy is this in C#?
by Bwilhite
- 14 Replies
- Last post
by Bwilhite
- Sorry for the very general subject line. I've been working on a problem for some time right now that will have two separate applications passing information back and forth and preferably sharing objects. To date, I've been working on this problem using C++ and the WinAPI. However, the WinAPI and Visual Studio c++ 2005 don't really integrate very well. I've been taking a look at C# lately, and it
-
- C# Help creating a Switch or IF Statement
by Michael Burk
- 9 Replies
- Last post
by Jim de la Bastide
- Hello,
I am looking for some help to add the following 3 domains to be replaced upon entering an application. I am not a C# programmer and have tried multiple if statements with no luck. You can see that I remove the healthsouth and those users can access the site with no trouble I have tried multiple if statements and have not been able to repeat my success. As I mentioned I need a stateme
-
- Catching the FolderName
by Ashvi
- 3 Replies
- Last post
by Ashvi
- I am writing an app that needs to upload files. Currently, it is set for the user to select the folder path where the files reside to upload, but in a perfect world, I would like it to search for the folder "UploadFiles". Is there any way of doing this without setting / defining the path in the code itself and only defining the folder to be searched Would this be in the System.IO.Directo
-
- What [STATHREAD] do?
by the_atom
- 2 Replies
- Last post
by the_atom
- I'm just curious what does [STATHREAD] does I understand the "THREAD" part but the "STA". What does it mean
-
- what is Impersonation
by IMBack
- 14 Replies
- Last post
by IMBack
- can someone expain me what is Impersonation from an ASP.NET side and when it can be used. If you have any simple examples, please share.
Thank you,
-
- find largest double from an array of doubles
by lbytesxk
- 9 Replies
- Last post
by Jeremy Filburn
- Hi, I'm new here. A few years ago I wrote a function in VB6 that determines the largest integer from an array of integers. Recently I needed the same functionality for my C# project, so I sort of ported the VB code and re wrote it in C#. Now there is a problem with the C# version, when the it does not always finds the right integer to be the largest, it seems to happen when the largest integer is
-
- On pressing F10 or F11 debugging is ending
by Santosh BSK
- 3 Replies
- Last post
by TaylorMichaelL
- Hi,
I am using VS 2005 with SP1 , C# In my solution , i put a break point and it is getting hit. But, when i press F10 or F11 unable to continue further, just ending the debug with error : The program '[5892] AdminLoader.exe: Managed' has exited with code -532459699 (0xe0434f4d). I tried looking at all settings and dignostic attributes but everything is fine. Any Ideas kumar
-
- Create new c# project similar to an existing c# project
by Saltzmeyer
- 3 Replies
- Last post
by Saltzmeyer
- In Visual Studio programming C#
How do I create a new project that is similar to an existing project
I want to keep BOTH the new project and the old project.
-
- Deep copy vs Shallow copy
by seanperry
- 4 Replies
- Last post
by seanperry
- Hi All,
I've looked through the online documentation and read through a lot of explanation but still its not making any sense to me about what they mean. Probably just documentation no example. If someone could show me with the proper examples as how they differ.
I would like to see the results with examples how they differ from each other. I'd be ever so appreciative! Many thanks.
-
- Reference issue
by DHooper
- 10 Replies
- Last post
by DHooper
- heres an example, i have four objects: Object start; Object mid1= start; Object end; Object mid2 = end; using mid1 and mid2, how do i make start and end reference the same thing(ie, when i change start, end changes also) is this even possible simply setting mid1 = mid2 does not work as it removes mid1's previous reference, essentially setting up this relationship: start=mid1=mid2 end(unrelated) a
-
- Double Precision Issue in C#.net 2005
by fongye
- 13 Replies
- Last post
by sirjis
- Hi,
I'm having problem with the C# double precision issue.
When i run the equation below, i get the result
8183.23 - 6695.37 = 1487.8599999999997
why i can not get 1487.86
when i convert the double variable to string and show in the message box, it round to the correct figure i want.
double i = Convert.ToDouble(dr["Qty"]) - Convert.ToDoulbe
-
- help with user control disapperaing from designer
by elint
- 1 Replies
- Last post
by Ross Dargan
- I'm new to C# and having problem with a user control. From what I've read, I believe this is an inherited control from the TextBox class. The way I add the BarcodeTextBox to my project now is by first adding a regular TextBox in the designer. I then go into the code view and change
private System.Windows.Forms.TextBox esSearchLabNum;
to
p rivate Barcode.BarcodeControls.BarcodeTextBox
-
- I need help on programming Drag-n-drop feature
by Fantonis
- 3 Replies
- Last post
by RizwanSharp
- Hi,
I was asked to implement drag-n-drop with TreeView and the requirement is : "Drag-n-drop a file from Explorer to the TreeView and display the tree. The file is in XML format."
Can someone give me some advices as I'm newbie in C# and I have no idea on how to do it
Thank you.
Email: fantonis_nus@hotmai.com
-
- Shouldn't VS.Net (and Intellisense) show the signature for a generic delegate?
by vtcoder
- 8 Replies
- Last post
by Stephan Smetsers
- This could probably be posted in some VS forum, but I'm wondering if there is a technical reason for this. If not it is perhaps just an issue with VS or intellisense.
If you have a generic delegate, like System.Predicate<T>, when calling a method that has a parameter of this type, you only see:
Predicate<T> match
instead of what I'd expect to see:
Predicate<T>(T o
-
- Help me on LoaderLock
by Beorne
- 2 Replies
- Last post
by Martin Xie - MSFT
- I'm trying to call a third party dll routine from C# using pinvoke. Unfortunately I obtain a LoaderLock exception and my application stops. I've seen that it must be some uncorrect behaviour of the called routine, but I can't modify it. Note that calling this routine from a C++ project does not give off any error. How can I do Thank you!
-
- What is Reflection ?
by thukralz
- 3 Replies
- Last post
by nahguam
- This is not a coding question, but I want to know what exactly reflection is. If someone can give a code sample the way to do same thing with and without Reflection.
Thanks,
Harsimrat
-
- C# and c++
by Big Bill
- 6 Replies
- Last post
by Big Bill
- whats the differnce between c# and c++
-
- Strange behaviour re. the IDE
by Zamial
- 4 Replies
- Last post
by Zamial
- We have a winforms application and some of the forms have properties etc.
When viewing certain forms, sometimes the 'ErrorForm' we have created pops up like it would at runtime saying a property has not been initialized, it actually pops up as a window like it would show at runtime
Also I note after some changes to a separate project, namely adding a static class with a static method that re
-
- method group problem
by Letherian
- 2 Replies
- Last post
by Karthikeya Pavan Kumar .B
- Hi! I'm new with c# and i have a question. I want to send new value taken from trackbar when I scroll it, to serial port. But it says "Cannot assign to 'Write' because it is a 'method group'" for
sp.Write = (trackBar1.Value);
How can I do it Is there any other mistake you notice Thanks....
Code:
using System;
using System.Collections.Generic;
using System.Comp
-
- Instantiate an arbitrary class based on a type or identifier given at runtime
by Jace Mango
- 2 Replies
- Last post
by Jace Mango
- Hi, Does C# have a way to instantiate an arbitrary class based on a type or identifier given at runtime For expamle, if I had a list of classes (in this case a list of derived classes) and I want to create a instance of one based on some unique identifier, I would do something like this: BaseClass CreateObject( UniqueID type) { case UniqueID.Foo: return new Foo(); case UniqueID.Bar: ret
-
- Outstanding Performance!
by martinhughes
- 1 Replies
- Last post
by OmegaMan
- Not so much of a question, but a comment on the outstanding performance of C# and .Net 2.0.
I do all of my development on my Dell Inspiron 9200. This laptop is pretty much run of the mill; 1.69Ghz Pentium M, 5600 RPM Disk Drive, but a fairly nice 17" screen. About the only performance optomisation is that I add an extra gig of ram, now totalling 2 Gigs.
On my laptop I run VS 2005 (natch
-
- Shelling a console application with prompt
by DLG007
- 5 Replies
- Last post
by Galin Iliev
- Dear All,
I am using C# in VS.NET 2003 to develop an application shelling the command an external console application and I am using this System.Diagnostics.process and it works okay. But the console application requires user intervention such as when it's running, it prompts users such as (Y/N) or Wish to continue or something like that. The console does not accept any pre-defined arguemen
-
- SqlConnection.Open() OutOfRangeException - Need Help!
by veryxRV
- 6 Replies
- Last post
by veryxRV
- Hello!
I am trying to open a connection between my programe and a mySQL server with the SqlConnection.Open() method.
My connection string looks like this:
" Data Source=tcp:myservername, 3306;User ID=****; Pwd=******;Pooling=false;"
As soon as I call the SqlConnection.Open() command I get the following error message:
"None-negative value needed. Parameter Name: count&