-
- How to decide who is calling a class library?
by Guostong
- 4 Replies
- Last post
by Guostong
- A IE extension wrote with c#, how decide who is the container ( iexplore or explorer ), I found this.container is null
-
- virtual MIDI device driver library?
by gafferuk
- 1 Replies
- Last post
by John Pompeii
- I wish to create an app which controls my sequancer software(ableton live).
I wish to send MIDI messages to it so i need to create a virtual device. Any ideas which way to go
I wish for my software to appear as a new MIDI device under windows.
-
- Is there anyway to clear all handlers for an event?
by Nickeay
- 2 Replies
- Last post
by Udhaya Kumar D
- hi,
I am just thinking if there is a way to remove all handlers for an event, like button1.Click += new MyEventHander(OnButton1Click); button1.Click += new EventHandler(OnButton1StandardClick); ... I think you can hook up as many as you want handlers to a single Click event. The question is how to remove all of them Is it the only way that remove one by one by using -= Thanks.
-
- .net framework/ c# questions for interview purpose
by KillyChaw
- 8 Replies
- Last post
by InterviewCracker
- Hello everybody,
i want to study .net 2.0 framework/ c# questions for interview purpose. Any good sites please.
million thanks.
-
- Could anybody please, help in converting the following few lines to C#???
by nesrine
- 7 Replies
- Last post
by TilakGopi
- Could anybody please, help in converting the following few lines to C# Public
Sub Send_Email2(ByVal claimID As Integer, ByVal ApartmentID As Integer,
ByVal strComplaintTitle As String, ByVal strFullName As String, ByVal
strPriority As String, ByVal strProblemDetails As String) Dim UNMtxt As String = " nesrine72@hotmail.com " Try Dim varMailbody As String
-
- debuging multi thread application problem
by ashk1860
- 14 Replies
- Last post
by ashk1860
- hi
I have a windows application which have much intraction with the webservices. so I use backgroundworkers to make connection with webservices. I mostly handle DoWork and RunWorkerCompleted events to get the data in one and set in the other. and application is in debuging step now.
Just assume that the user loose the connection to internet when a backgroundworker is trying to connect to the
-
- Fails trying to serialize a class it shouldn't be?
by Alan M.
- 4 Replies
- Last post
by houtexwebdev
- Hi, I have a simple application with one main form. The main form has some data that it is trying to serialize to a file with the following code.
Code Snippet
public void SaveData() { string filename = String.Format("SIM_{0:0000}.id", panelData.SystemData.Id); Stream s = File.Open(filename, FileMode.Create); BinaryFormatter b = new BinaryFormatter(); b.Serialize(s, panelData.
-
- get HTML content using c#.net
by Fred FR
- 1 Replies
- Last post
by Jetttik
- Hy, How can I get info from a web page What I'm trying to do here is: Compile a program that has a command to get to the html source page and get only what I tell him to do, for instance, to get only what's after "name" and "age", then it outputs the name and the age of the person. Can anyone help Thank you for your time. Fred FR
-
- Read XMP Metadata information Using C#
by Fraas
- 6 Replies
- Last post
by AbirB
- Hi How can I read (XMP) Metadata information using C# Adobe photoshop Save and retrieve (XMP) Metadata information from the files .. In Adobe photoshop if you will go to File>>FileInfo you will see the (XMP) Information. I have try it to (JPG,JPEG) files How can I write Application in .NET to read and write (XMP) metadata information to files And thanks with my best regarding Fraas
-
- Does the lock release on exception
by shinu
- 5 Replies
- Last post
by shinu
- will the lock release if an unhandled exception raised inside lock
-
- Compiler Issue?
by mrmarktwo
- 7 Replies
- Last post
by mrmarktwo
- In chapter 20.6.5 of the language spec it states that the following statement:- F (G < A, B >> 7); should be interpreted as a call to F with 2 arguments. ie 1st argument is G < A, 2nd argument is B >> 7 However when you compile such a statement you get the error error CS0019: Operator '>' cannot be applied to operands of type 'method group' and 'int' which implies the compiler
-
- Timespan between two times
by HarryBedi
- 3 Replies
- Last post
by Matthew Watson
- Guys,
I am trying to work out if a timespan I get bac is greater than a designated amount of time. However, my designated time always defaults to zero, even though it should be 2000 milliseconds.
The code is as follows.
public void WorkingTime (DataTable dt)
{
foreach (DataRow row in dt.Rows)
{
if (row["Action"].ToString()=="Working" &&
-
- How to transfer color images to grey images using C#
by FugersonHall
- 7 Replies
- Last post
by FugersonHall
- Hi,
I am trying to use C# 2.0 and visual studio 2005 to compile a window app or web app. In this app, I have to transfer almost 2,000 colorful images to grey images. I do not know how to do that Anyone can provide a block of simple example for that Thanks a lot.
-
- Prevent a third party from using a dll?
by cohowap
- 12 Replies
- Last post
by © ???? ???¦Ò????, ²¦È¦µ
- Hello,
I am doing some dynamic code compilation that uses some functions I wrote in a dll. I am afraid that people will be able to take this dll and load it into their .net application and use the functions I wrote. Is there a way that the dll wont load unless something is specified I though i ran across this before and there was an attribute i can add to each of the functions in the dll, a
-
- INI Reader fails to compile for debug check
by Zack Loveless
- 2 Replies
- Last post
by Zack "MathK1LL" Love
- This is my first post here, so I feel odd...But anyway: public class INI { [DllImport("kernel32.dll")] public static extern bool GetPrivateProfileString(string lpAppName, string lpKeyName, string lpDefault, StringBuilder lpReturnedString, int nSize, string lpFileName); public static string ReadINI(string File, string Section, string KeyName) { StringBuilder buff
-
- How to use multiple fonts in single table in word doc
by chuckdawit
- 0 Replies
- Last post
by chuckdawit
- I'm using the office tools suite to create a word document w/ a C# gui. In my document I create a table and then place text into the table. This table is only 1 x 1 and contains only text. It looks like this
The problem I'm having is that I can't use/modify different fonts or sizes within this single 1x1 table. The "supplier", "product
-
- Java method.Super() keyword in C#
by Al6200
- 3 Replies
- Last post
by Al6200
- I tried to use super() is a class but it turned an error. What method in C# adds a method from a superclass into a subclass
Also, If I have in my superClass:
public int superClassMethod(int x) {
return x
}
and in my subclass:
public int superClassMethod(int x) {
super(x);
//class specific code
}
Class specific code won't even run, because super is part of the
-
- Verifying if a cd-rom driver is opened or not
by Oscarfh
- 2 Replies
- Last post
by Oscarfh
- Hi, I'm developing an application that opens and closes the CD-ROM driver with a button. But I want to use a button only. When it is opened, the button closes, when it is closed, the button opens the driver. How can I verify if the driver is opened or closed (Just to remember: the user can open via software and close physicaly, so a boolean value would not work). Thanks
-
- use C functions in C#
by gr_arm
- 6 Replies
- Last post
by Thomas Danecker
- Hello,
I have a lot of pure C functions and I would like to use its in C# project,
which is the easyest way
thanks
-
- Getting a Structure of Function Ptr from Native DLL in C#
by ne_plus_ultra
- 2 Replies
- Last post
by ne_plus_ultra
- Hi All,
I have a serious problem here which is bugging me for past few days.
I have a native DLL(Win32), and it exposes only on function called
GetFunctionList
Now this function takes a pointer to pointer of a Structure as an argument.
The Structure is something like
struct func_pointer_list{
void (*fnA)(int a,int b); int (*fnB)(float a, double b); }
Now I have to write
-
- How do I Handle Multiple Timers combined with an Exit Handler?
by Paul Marchant
- 2 Replies
- Last post
by Paul Marchant
- Hi C# Gurus,
I need to create a timer event-handler combined with an exit handler because my application will read/write stuff to a database or flat-files on a high/low priority queue but could be terminated by another application so a graceful exit is a must.
The high-priority queue will execute say once every five seconds while the low-priority queue will execute say once a minute.
-
- reading app.config custom section
by pravi
- 4 Replies
- Last post
by pravi
- Hi, I am looking for a ways to read custom section of app.config as NameValueCollection. My custom section is as follows: ~~~~~~~~~~~~~~~~~~~~~~~
< configSections >
< sectionGroup name = " mySectionGroup " >
< section name = " mySection " type = " System.Configuration.NameValueSectionHandler " />
</ sectionGroup >
</ con
-
- How to retrieve NTFS Permissions with C#
by springy126
- 2 Replies
- Last post
by Udhaya Kumar D
- How to retrieve NTFS Permissions with C#
-
- An object reference is required for the nonstatic field, method, or property
by Smegg
- 10 Replies
- Last post
by Smegg
- I know you have all seen this one before, for which i am sorry. But I can't figure this out.
I am not sure if what I am trying to do here will even work in the end but this is my first project and I am learning as I go, so please try not to laugh.
I have a combobox of form1 that is bound to a data source and on form3 I have a report viewer that (I hope) will load using the text that is in t
-
- String compa Cannot implicitly
by NoEgo
- 9 Replies
- Last post
by James Curran
- I cannot get the syntaxt to work on the string compare here. I don't know why I keep getting a message saying it's trying to conver an integer to abool in my String.Compare:
foreach (string excelDescription in exceldata) &