-
- SecurityException
by Alexei_shk
- 8 Replies
- Last post
by Alexei_shk
- Hi,
I got the security exception in underlined code:
string sAppProgID = "Excel.Application";
object oExcel = null ;
try
{
oExcel = Marshal.GetActiveObject(sAppProgID);
}
catch (Exception ex)
{
MessageBox.Show(ex.StackTrace);
try
{
Type tExcelObj = Type.GetTypeFromProgID(sAppProgID);
oExcel = Activator.CreateInstance(tExcelObj);
}
catch (Ex
-
- Rules, that FxCop cannot check
by cyberjoe2
- 2 Replies
- Last post
by Peter Ritchie
- Hi,
We have plenty of coding convention rules, we cannot check using FxCop.
I mean rules that are related to comments or regions in our source code.
Do you know tool, we can use to check such rules
What are your experiences with problem like this
cyberjoe2
-
- 'Go to Definition' option in Visual Studio 2005
by TechTalk
- 12 Replies
- Last post
by Newbie_NZ
- On selecting the 'Go To Definition' option in the editor, for a C# Framework library Class, takes me to the class definition. However, I can only see the signatures of its member functions. Is there a way I can get to the actual implementation for those functions or was it intentional to hide the implementations
Thanks
-
- What is the meaning of driver? Can I use C# to write a driver such as I/O driver?
by john wen
- 3 Replies
- Last post
by Martin Xie - MSFT
- Hello I am asking 2 different questions: 1) What is the meaning of driver 2) Can I use C# to write a driver such as I/O driver Please answer above 2 questions. Thank you. John Wen 15 - July - 07
-
- Garbage Collector consumes 100% processor time - Framework bug?
by John Lagonikas
- 7 Replies
- Last post
by OmegaMan
- Hello,
I'm facing a really strange problem which seems to be caused by the framework rather than my code. I've verified most of what I'm writing below with WinDbg and the results are totaly incoherent...
I've written a quite complex application, with heavy (and strategically optimized) use of multithreading and tcp sockets. Part of the application is implementation of an IVR system,
-
- SImple Inheritance Question - Inherited Form
by M Thomas
- 3 Replies
- Last post
by Barzot
- In VS 2005, C#, WinForms app I have a form "BaseForm" which contains a 'protected' button. The button's click event code is 'MessageBox.Show("BASE FORM")'. I have another form, "ChildForm" which inherits from "BaseForm". In the inherited button's click event code is "MeaasgeBox.Show("CHILD FORM") When I run the child form and click on the butt
-
- What's the difference between string and String?
by James_Steven
- 9 Replies
- Last post
by Ashok Debnath
- What is the difference between string and String
Which of them should i normally use
-
- How good C# is for Client/Server Applications?
by Victor Lawrence
- 5 Replies
- Last post
by Wiltek Ghozali
- Victor A. Metzler - Brazil - SP I'm a Delphi programmer and I was thinking to learn a new language but I don't know if C# support all that Delphi support on Windows. PDF, Reports, Office, Email, File Manage, etc... All that in a Client/Server development. Is that a good idea to learn and develop a C# Client/Server application and expand after to .Net or stand with Delphi that I know Is worth
-
- Get textbox value at RunTime C#
by NativeSoftware
- 6 Replies
- Last post
by Ron Kunce
- Hi people,
I am working on a soap client program. It firstly takes a WSDL and generates a proxy, etc.....
Anyway, there are many webmethods with different parameters as input.
That's why I need to generate a number of textboxs at run time.
But now, I have no idea how do I get the values from each run time generated textbox.
By the way, this is windows based application.
T
-
- Height of controls
by JBS
- 4 Replies
- Last post
by ThE_lOtUs
- Hi all!
It's my first time here because I've just began with C#.
I'm doing a layout study for the forms I'll use in my application and I use controlos in flat style.
I've the problem when I use a texbox wiht font size 8, the control has a heigt of 14. Using a combobox with the same font, gives me a height of 21. Changing the height in the designer or in the code, doesn't change. What can
-
- panel.visiable's problem..I've to double click then it works
by JCJCJC
- 10 Replies
- Last post
by JCJCJC
- // in my webpage I put my controls in a panel , when page load I set panel.visable = false. only when botton_click and then panel.visable=true //my problem is panel doesn't appear when I click once. I've to double click and then panel become visiable.. what's going wrong
is my problem concern with "post back " I've no idea...
P.S... I write panel.visiable while datareader.read()
-
- Assigning keyboard shortcuts - again?
by lallousx86
- 2 Replies
- Last post
by Suma Sushilendra MSFT
- Hello
I have VC++ 6 mappings, and I want to add a shortcut to Edit->Intellisense->Resolve.
I use this whenever in C# a class is used without proper "using xyz" code, thus a red line is under this class and with the mouse we can resolve.
I tried the Tools->Options->Environment->Keyboard, there is not command for "Resolve", am I doing someth
-
- Parent and Child Tables
by Can-Ann
- 5 Replies
- Last post
by Andrej Tozon
- I have two tables joined
Parent Table A
Child TableB
TableA is bound to a datagridview, In one of the columns I want to show a field from TableB.
Can anyone explain how and where to put TableB.Field so it shows in the datagridview.
This may not be the correct forum..
-
- Windows Service - needs user interaction... or help with it :P
by rternier
- 7 Replies
- Last post
by rternier
- I have a windows service that transmits data to a webservice. This service needs to be running at all times. However, if there is a chance that the Web Services cookie session is lost the Windows Service needs to prompt the user that they will need to "Sign In" to re-authenticate themselves. What is the best way for my service to tell the user to do something... The service is always run
-
- a general question on try-catch
by CutiePie
- 6 Replies
- Last post
by CutiePie
- Hi all,
I wanted to ask about the try, catch statement..I am making a program in which i am not sure if a row of an array contains another array(in the form of some concrete classes) or it has one normal element...By this i mean for example:
object[] ARR = new object[2];
then i made a class as follow:
public class NameClass
{
private string name;
public string Name
get
-
- ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
by Senthil.P
- 13 Replies
- Last post
by RizwanSharp
- Hi All,
When i tried to connect Oracle database(8i) .I am getting an error "ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified".
My Connection string is :
"Provider=msdaora;DSN=U500.WORLD;Uid=xyz;Pwd=123;"
Please help me out to clear this task.
Thanks in Advance
-
- Web Service
by windows_mss
- 1 Replies
- Last post
by sharpMoon
- hi,
is't possible to inherit the windows control using Web Service in C#..
thanks in advance
-
- Installing a c# app with .net framework
by Oscarfh
- 11 Replies
- Last post
by Oscarfh
- Hi, I want to create a wizard that also installs the .net framework. Is this possible Thanks
-
- StringCollection in Embedded Resources
by thedruggist
- 5 Replies
- Last post
by OmegaMan
- I'm trying to add a StringCollection to the resources of my application. In the VS Resource Editor there is a section called "Other" and accourding to the MSDN article it is possible to add any native type that supports serialization, but I'm unable to do it. The grid is inactive. Does anybody know a solution to the problem
-
- How to verify signed file signature in code?
by Micanopy23
- 3 Replies
- Last post
by Qazqwe
- Technology: C# .NET 2.0
Situation:
I would like one exe file to be able to check another exe file to see if it they were both signed by the same private key.
Story so far:
I can include either the CER file or the public key itself inside the first application as a resource, so I guess I'm really just asking how do you verify a signed file using a separate public key using .NET 2.0
-
- How to remove all integers from a string ?
by Kulvinder
- 13 Replies
- Last post
by CalvinR
- Hi,
I have a string "1AA,1BB,1CC" and i want to remove all the integers from this string.
What should be the best way (Hint : Don't look at the "," and use string.split(',') and operate and rejoin)
Thanks
Kulvinder Singh
-
- What exactly does VS 2005 when I select "Register for COM Interop".
by Leonid L
- 9 Replies
- Last post
by Azh_Ali
- I have a C# project in Visual Studio 2005 , which compiles into a dll. It used to have the option "Register for COM Interop" set, and everything worked fine. In order to build this project, the user requires local admin privileges. We have a test user whos role is to get the latest code, build it and run a series of test each night. Our sys admin does not want to give that user administ
-
- Smart Comment Editing in VS.NET 2005
by Mikey Likes It
- 3 Replies
- Last post
by Mikey Likes It
- can't figure out how to turn on Smart Comment Editing in Visual Studio 2005. An MSDN article mentions that you can access this feature from the Formatting, C#/J#, Text Editor, Options Dialog Box dialog in your project property pages, but I can't see anything there. This does not exist. This was a great feature. Does anyone know how I can get this working, or has it been removed from the release
-
- how to remove the bold rtf chracters in C# by programatically
by Maheswari
- 1 Replies
- Last post
by Vincent Degrave
- One table has a column with values like
{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fcharset0 Microsoft Sans Serif;}} \viewkind4\uc1\pard\f0\fs17 Created the record and just testing \par \par }
{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fcharset0 Microsoft Sans Serif;}} \viewkind4\uc1\pard\f0\fs17 Venkat in touch with Mukesh mrohatgi@mazdausa.
-
- structure information in WM_COPYDATA
by learning33
- 4 Replies
- Last post
by learning33
- I'm trying to use WM_COPYDATA to send information from a very simple programming language to C#. I'm sending approximately 50 variables at once. What is the best way to organize these variables I've thought of two ways: -using the send function 50 times -sending 50 variables in one string and then splitting them up at delimiters. The only thing I don't like here is that the strings won't have lab