Software Development Network Logo
  • SharePoint Products
  • SQL Server
  • Game Technologies
  • Visual Basic
  • Microsoft ISV
  • Visual C++
  • Windows Forms
  • Audio and Video
  • IE Development
  • .NET Development
  • Visual Studio
  • Windows Vista
  • VS Team System
  • Smart Devicet
  • Visual C#

Software Development Network >> Visual C#

Visual C#

New Question

Where are the messages going to?
Why? WSE910: An error happened during the processing of a response message.
Start process on remote machine
Visual C# 2003 + Framework 2 SDK?
help with designer
Monitor Brightness Contrast adjustment
Best way to update a class when modifying a member
reg - Tree View
Do Loops in C#
Showing form while a process is running

Top Answerers

PsyCadelik
GMan5309
Okwatangen
polymorphicx
Timwright2006
C. Alan
Jim Perry
RAYMOND KNIGHT
Bill Brennan
rchokler
RT脡 News
Only Title

Answer Questions

  • ozhonetech COM Functions from Win32 DLL

    Hi all I need to access functions exposed by a COM Component from within a win32 dll. I feel this should be possible technically. Please note that a) The COM Component is developed in C# b) win32 dll and COM component will be available on the same machine for the users to use. Following are my questions: 1) Is it a good design 2) What are the possible ways of accessing functions (using C++/CLI) 3) Is there any technical difficulty that might be encountered during heavy two way data communication 4) Instead of invoking the COM component and accessing getter/setter methods - can we use interprocess communication as the two components will be available on the same pc Please note that we need to communicate between C++ and presumably c ...Show All

  • Jarod Lavay Error message about string

    if (comboBox1.SelectedItem.ToString() == "Circle") thats the errenous code this is the error Possible unintended reference comparison; to get a value comparison, cast the left hand side to type 'string I originally had just selected item, so I thought the fix would be .ToString(), but as I found out, apparently not.. yes peter - thats correct and what I was trying to say but didnt come out correctly, thank-you for making it clear ;-) Geek Squad wrote: if (comboBox1.SelectedItem.ToString() == "Circle") thats the errenous code this is the error Possible unintended reference comparison; to get a value comparison, cast the left hand side to type 'string I originally had just selected item, so I thought th ...Show All

  • PJFINTRAX C# - How powerful?

    I know C# is sort of like C++, but is it as powerful as C++ Just as 'C' replaced assembly, and C++ replaced C, I suspect C#/JAVA will replace C++. The question isn't how powerful is it, the question is how powerful do you need it. There are things that you can do in C++ more easily than in C#, but those things are probably the minority. The future is C#/JAVA. I love C++, but I too must adapt. Do I love C#/JAVA..., not yet, maybe with time. Efficiency of execution is lost (Please don't blast me with statistics, I too can site statistics to support any argument I wish) but does that loss of execution efficiency matter as compared to the productivity gain at implementation. How powerful is C# If ...Show All

  • Agent00 Address of array

    Hi, Could you help me to get the address of the, lets say, integer array and write it out to the console screen. How I can do it in pure C# or using .NET Framework Example: public int[] a = new int[10]; ... Console.WriteLine("Address of a is ", ); Thank you in advance u can use unsafe option. Regards, Sudeesh Hi, You can use the function " UnsafeAddrOfPinnedArrayElement" As follows: int [] MyArray; MyArray = new int [5]; Console.WriteLine(Marshal.UnsafeAddrOfPinnedArrayElement(MyArray, 0)); You can iterate changin the indexer for the address of each element. The function returns a IntPtr that you ...Show All

  • NotMyself how to set system time?

    HI, ALL, i want to set system time by using CoreDll.dll. i did not find this DLL in my computer. i am using Windows XP. So i download it and put it into C:\WINDOWS\system32. and then restart my computer. but when i run my application, i still keep getting error "Unable to load DLL(CoreDll.dll)". Do you have any idea i use the code i found in MSDN: http: / / msdn2. microsoft. com/ en- us/ library/ ms172517. aspx thanks a lot yjm I've just tried to do this and works well for me (make sure you have admin privledges to set the system date/time) //top of class [ StructLayout ( LayoutKind .Sequential)] public struct SYSTEMTIME { public short wYear; public short ...Show All

  • AngusHuey Logon windows

    hello everyone here is my problem: i have a logon windows,has database,username and password,textboxes for input inforamtion,also i use a checkbox for use default logon inforamtion automatically fill the textboxes blanks.it is show as below : when i set the checkbox checked,it has this process: textBox1.text = 'pst'; textBox2.text = Environment.username.tostring();(here shows the windows logon name); textBox3.text = (i want here to show the windows logon password); can anyone help me Hi, you can't retrieve the user's logon password from anywhere. It's a sensitive information and allowing that would be a serious security risk. You'll have to make user enter her password. Alt ...Show All

  • matthew lyden How to create exe file from my program

    Please help me quickly !Thanks . Create from what Source code in some language Do you want to create a compiler I am not sure what you mean, but try the following! Whenever you compile your code an exe is created in the Project Name\Project Name\bin\Debug\ directory.... For example if your project was called test1 and you have saved it in C:\, the you should check the directory C:\test1\test1\bin\Debug\ for the .exe file kirchu I make a software and i want my software can create a exe file.Using c#.Thanks Hi, Use CodeDom Apis for that, [I assume that you are using existing cs code files or you are inputting code in c# from your application and then creating exe] Compile code using csc with the command l ...Show All

  • Magic PC How to use ActiveX in a Windows Service

    I developed a Windows Service, which will create instance of ActiveX, but I got an error: System.Threading.ThreadStateException: Could not instantiate ActiveX control 'b0b25446-7656-456c-8d3c-60a0ac6eac49' because the current thread is not in a single-threaded apartment. at System.Windows.Forms.AxHost..ctor(String clsid, Int32 flags) at System.Windows.Forms.AxHost..ctor(String clsid) at AxJDSMSCtrl.AxJindiSMSControl..ctor() at SMSPlatForm.MainService.start() [Code] AxJDSMSCtrl.AxJindiSMSControl ocx = new AxJDSMSCtrl.AxJindiSMSControl(); This service log on as Local System, and "Allow service to interact with Desktop". This service communicates with serial port, the functionality is provided by a third party OCX ...Show All

  • drew_p Passing parameters in C#

    Hello Members, I am trying to call a sql function in C# ,it work fine when I call for SqlCommand cmd = new SqlCommand("SELECT dbo.Calc(1, 18, 4) as totalCost ",cnn); But when I try to so the same with calling parameters it doesn't show the result. e.g SqlCommand cmd = new SqlCommand("SELECT dbo.Calc(Par1,Par2,Par3) as totalCost ",cnn); Any answers You'll need to pass the values of the 'parameters', not the names: SqlCommand cmd = new SqlCommand("SELECT dbo.Calc(" + Par1.ToString() + ", " + Par2.ToString() + ", " + Par3.ToString() + ") as totalCost  ",cnn); Also, it's highly recommended to use stored procedures rather than constructing sql strings in code. David Anton ...Show All

  • rmxdave What is with all of the files for a simple program?

    I posted this in the IDE section but got no reply so I am trying it here. I am just learning C# and made a solution for a command line program. I would like to know what the heck all of these output files are for and can I somehow force them not to make subdirectories. I was able to remove the bin directory but not the obj\Debug etc. directory. Also don't understand the Test.vshost.exe file and the duplicated Test.exe and Test.pdb files. \---Test | Test.sln | \---Test | Program.cs - Main Program | Test.csproj - Project | +---bin | \---Debug | Test.exe - Executable | Test.pdb - program database for debugging | Test.vshost.exe - WHAT IS THIS FOR | +---obj | | Test. ...Show All

  • Bob Lyden How to have main program wait for data

    I have a program that basically does this: Main() Start GetQuotes(); Calculations(from GetQuotes) Thread.Sleep(3000); Loop back to start Sometimes GetQuotes() takes 1-2 seconds, sometimes 5-6 seconds(I am getting streaming stock quotes). If it takes longer than 3 seconds, then my program freezes. My question is this: How can I get the main program to wait until GetQuotes is completed I have tried Thread.Sleep, Waitone(in the GetQuotes sub). I have an autoreset event in GetQuotes, which I think is correct. Any help would be appreciated. Yes, Async works. Here is the GetQuotes() sub: GetQuotes() GotData = new AutoResetEvent(false); new AsyncQuery.DataHandler(TalOnData)<<<<<This gets quot ...Show All

  • Hf Kok validating gender

    I am using this code to validate my records .. but the problem come always from gender ... I want it to be male or female but alwayes when I type male it does not pass the validator.. help me this is m code if (Request.QueryString["username"]=="123" && Request.QueryString["password"]=="123") { if (Request.QueryString["id"] =="" || Request.QueryString["id"].Length>4) { Response.Write("-2"); Response.End(); } if (Request.QueryString["name"] =="" || Request.QueryString["name"].Length >50) { Response.Write("-3"); Response.End(); } if (Request.QueryStr ...Show All

  • ledwinka Help with a 'Delete' MessageBox

    Hi I am pretty new to C# and VS2005 so I am sorry if this sounds like a stupid question but; I am trying to create a messagebox like the one that appears when you attempt to delete something in windows. Form1 has fields for editing data into an SQL database which works fine from a control within Form1. I have created a new form (form2) and can get it to display no problem but what I can’t do is get the button on form2 to run the script for deleting the data on form1. "On form1 user wants to delete data from database, clicks delete, messagebox pops up (form2) 'Are you Sure', user clicks 'yes' form2 disappears, and data is deleted". (This is what I am trying to achieve). Currently all databinding etc ...Show All

  • dickP Mini Forms

    Is it possiable to create mini forms in c# for example the regular form has.. the minimize, maximize, close boxes.. and the mini form just has the "X" box. Or maybe something alternate to this Perfect FixedToolWindow was what I was looking for. thanx Hi, to hide Maximize and Minimize buttons, set form's MaximizeBox and MinimizeBox properties to false. You could also set FormBorderStyle to FixedToolWindow or SizableToolWindow. Andrej ...Show All

  • Donaghy Exporting and Importing RSA Keys in Binary!!!

    Hello, RSACryptoServiceProvider class provides 3 different ways to import and export Crypto keys. To and from XML To and from BLOB (Binary) To and from RSAParamters I have worked fine with XML implementaion, I Export and save XML based key pair and use it later when I need. For some reason I want to use Binary implementation, The simplest solution seems that I use following: RSACryptoServiceProvider rsaCryptoServiceProvidesCipher; rsaCryptoServiceProvidesCipher = new RSACryptoServiceProvider (2048); byte [] key = this .rsaCryptoServiceProvidesCipher.ExportCspBlob( true ); now I hardcode this key in the assembly and use it later. Now the problem is what if someone decompiles the assembly and knows ...Show All

575859606162636465666768697071727374

©2008 Software Development Network

powered by phorum