-
- DLL Returns object {string[]}
by QuinDennis
- 12 Replies
- Last post
by QuinDennis
- Greetings,
Calling a DLL method that returns an array of strings, but I can't cast to string[];
object o = myMethod();
string[] s = (string[])o; //generates "Unable to cast object of type 'System.String[\*]' to type 'System.String[]'.
(I had to put the \* in, without the \, it treats it as a different [\*] as a different char)
The Autos window shows the data proper
-
- Can I use C# to write script without re-complie?
by Wood-MSDN
- 5 Replies
- Last post
by Ryan Lamansky / Kardax
- Since C# is JIT, is it possible to use C# like scripting to write script and rerun without recomplie Or do I have to use .Net scripting Other than JScript.Net, what other .Net scripting choices are available
Thanks.
-
- capturing screen output when running a scheduled task
by footballboy
- 2 Replies
- Last post
by ahmedilyas
- Hi,
I'm trying to capture screen output from a browser and run this programme as a scheduled task. However whenever the task is run and no user is logged no screen input is available (the task is run under a particular user credential and when that user is logged in everything works fine).
Is there a way to capture screen output without a user physically logged in to the machine
I'm using
-
- Grouping files in solution explorer
by Eric Jensen
- 6 Replies
- Last post
by Gabriel Lozano-Moran
- Hi,
I have files in various subdirectories that I want to include in the Solution Explorer. It is getting a little tedious to "Add Existing Item" with a link (sometimes I click the button before changing it to "link" whereby I have to delete the copied file - bad UI design IMO). The files appear as a flat list in the explorer which is also a pain.
I've discovered I can use <CSFile Include
-
- What can not be done with C# compared with C++ or Assembler?
by Eitan Mich
- 6 Replies
- Last post
by Peter Ritchie
- Please correct me if I am wrong I am not sure about that! I am learning it and I ask myself what is not possible As far I know - .net will not run on ms dos, win 3.11, win95/98 - you can not legally use .net on linux - mono may be forbidden at some day - you can not make your own operating system - you can not have a standalone version (you need .net framework) - you may not write in your license
-
- Resizing Group Box/Form resizes buttons inside it
by Sam Pearson
- 4 Replies
- Last post
by Sam Pearson
- How do I make this behavior stop I want my buttons to stay the same size when I resize their container.
-
- SecUtil.exe with error: Assembly not Authenticode signed
by JamesJ
- 5 Replies
- Last post
by JamesJ
- After using SignTool.exe to sign my console application, then I use Secutil.exe to see the hexadecimal representation of the certificate.
and gives me an error : Assembly not Authenticode signed
the command I used like this :
secutil.exe -hex -x c:\myconsole.exe
and I did sign a strong name to the myconsole.exe.....
I think it would be SingTool. but everything looks good, an
-
- Interfaces oversold???
by IS dude
- 14 Replies
- Last post
by Mark Benningfield
- First, I must admit that I am a C# novice and so I probably don¡¯t have as much knowledge and experience on the subject of interface as most of you guys reading this post.
After reading a few books on C# and interface design, I still can¡¯t see and understand the real power of interface unless of course, we are talking about interfaces as a powerful concept in OOP ¡®only¡¯ and not as a powerful c
-
- C# advantages over C++
by sham_huss
- 7 Replies
- Last post
by abcdefgqwerty2
- Hi i am doing a project and wondering if someone could provide me with some fact based information on the advantages of C# over C++. Thanks
-
- Implementing Single Sign On??
by Musafir
- 7 Replies
- Last post
by Musafir
- Hi..
What does single sign on refers to How to implement single sign on functionality using c#
-
- Access denied while using AzMan API to replicate a new store
by huabing78
- 1 Replies
- Last post
by Prabhu_engg98
- Situation: I wrote a tool using AzMan API to replicate an AzMan store. While using Azman console to view the replicated store, apparently everytying looks fine with all the elements created successfully (operations, roles, tasks, assigned roles).
Problem: While using the deplicate store to authenticate users to access an application, the user was denied with a message "access to XXX for us
-
- Make an Enumeration of Times (00:00 to 23:30)
by PlaTyPuS8
- 8 Replies
- Last post
by decyclone
- Hi!
How can I do that I want to put these Times in a combobox....
Thx for help!!
PlaTyPuS
-
- Calculating Maximum Idle Threads.
by NozFx
- 14 Replies
- Last post
by NozFx
- Hi all,
Everything has a limit and this certainly is true when it comes to multi-threading. The .NET CLR has a thread-pool of running threads that can be used for quick async tasks and boosts performance by re-using threads from the pool. Now this pool has a limit by default of 25, although this can be changed I believe this is optimized for a single processor.
My question is this; h
-
- getting the superclass of a generic type, and it's generic parameters.
by Kobi Hikri
- 2 Replies
- Last post
by Kobi Hikri
- Hey everyone,
I Was wondering (never trust a person who starts a sentence with 'I' ...) if any of you guys might show me the path on this one - and I do believe that my code will explain the problem better than words:
Code Block
using System;
using System.Collections.Generic;
using System.Text;
namespace TestApp
{
class Program
{
-
- Printing a parameter value using Reflection?
by Raulsassaa
- 3 Replies
- Last post
by Peter Ritchie
- Hi all,
I need to print (actually log it using Log4Net) my parameter variables and its values. I got to get my parameter names using Reflection, but I am still stuck on how to get its current values. Any ideas on this
Tanks
-
- What is the maximum literal address for a local file?
by DOSrelic
- 14 Replies
- Last post
by TaylorMichaelL
- I thort it was 255 but when tried I found it only == 248 CHAR full LITERAL filename & path string length!!!
How do I determine what the user can enter before submitting it to the OS as the intended filename
-
- StringBuilder
by covertx
- 11 Replies
- Last post
by dotnetideas
- Hi all, what's the best way to Append a string using StringBuilder when the character you're appending is either a '\r' or a '\n' character I can append them no problem, it's displaying it back which is the issue... I've tried using Environment.Newline but that adds too many new lines! Any ideas
-
- Can i useing shared "Application Settings" between tow project?
by omid talebi
- 3 Replies
- Last post
by Chunsheng Tang - MSFT
- senario:
i deploy application that have more than20 Form. when i load project with visual studio for programming, my program load very slow and compile slow.
i decision that create dll for my program's form except main form.
Problem:
my forms used "application settings" that now (my form converted to dll) converted form can't load "Application Settings". only
-
- Check for taskbar flashing
by Scalee
- 1 Replies
- Last post
by OmegaMan
- Is it possible to check the taskbar for all the applications that are flashing/highlighted Thanks!
-
- automated quotes
by oniluap
- 4 Replies
- Last post
by Ji Cheng Wang - MSFT
- I don't know where to post this question, so this is the best spot I could find. I was writing away in visual studio 2005(C#) and I was typing and if..else statement and without my explicitly typing "else {}" they appeared on the screen. I hate having to do that everytime in c#, but to my surprise it happened automatically. The problem is I don't know how I did it. VB.net it finishes you
-
- Adding Web References at Run Time
by Chrisql
- 5 Replies
- Last post
by Chris Bardon
- I'm working on a program and need to be able to add web references at runtime and haven't been able to find anything that would let me do this. Basically this is the way the program will work:
1. Allow user to enter asmx URL.
2. During runtime process the web service so it is accessible.
3. For now lets just say I want to print out all of the methods available from the Web Service.
-
- .NET-BroadcastEventWindow.2.0.0.0.378734a.0: {Application Name} - Application Error
by Yitzhak Steinmetz
- 4 Replies
- Last post
by Yitzhak Steinmetz
- Hi,
I keep getting the following error message every time my application closes:
.NET-BroadcastEventWindow.2.0.0.0.378734a.0: {Application Name} - Application Error The exception Breakpoint A breakpoint has been reached. (0x80000003) occurred in the application at location 0x7c901230. Click on OK to terminate the program
I have looked this up in MSDN, Google, and Google Groups, but to n
-
- Getting security warning when starting Visual Studio.
by Wout
- 2 Replies
- Last post
by Wout
- I'm building an installer which installs some example solution files. Shortcuts to these solutions are created in the windows menu. However when clicking the shortcut (they are "advertised" shortcuts, in .msi lingo), a security warning pops up. (Similar to the one mentioned in http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=395354&SiteID=1 .) Now my questions are (in order to g
-
- Members Dropdown (hide Members)
by tkrasinger
- 3 Replies
- Last post
by Jose Escrich
-
I'm currently developing a WinForms Application, and sometimes there are really a lot of controls on a form.
The Member-DropDown now shows me not only methods, but also the Members (excl. GenerateMember=false).
I set GenerateMember to false on all labels, but I just have about 30 toolStripMenuItems, GroupBoxes, Textboxes and so on, and i hardly can find any method in the dropdown,
-
- Handle exception that was thrown in another domain
by dzeaman
- 4 Replies
- Last post
by Peter Ritchie
- Hi there! I have an application that creates another domain, that loads an assembly. Then this application invoke some methods from loaded assembly. So one of this methods contains an unhandled error. As result my application crashes with a suggestion to send an error report to MS =) Is there any solution not to handle this exception, at least to show a valid error Thank you in advance for any ad