Search Result

Collapse
91 results in 0.0018 seconds.
Keywords
Members
Tags
c sharp
  •  

  • Dr Cake
    started a topic Custom Enum for MessageBox

    Custom Enum for MessageBox

    Hello, recently I've been trying to "play" with MessageBoxes and wondered how may I add custom buttons. A basic MessageBox should look like this:
    Code:
    MessageBox.Show("Message", "Title", MessageBoxButtons.Something);
    However, I'd like to know how to create one with Once, Weekly, Monthly, Daily and Cancel, instead of MessageBoxButto ns.Something. I've tried creating an enum and it displayed on the MessageBox,...
    See more | Go to post

  • SHRI
    started a topic marshal delegate to function pointer: memory corrupt

    marshal delegate to function pointer: memory corrupt

    Code:
    public class SendImage 
    {     [INDENT]public delegate int DWatch(int bytesLeftToSend, IntPtr Response);     
    ret=0xffff;      
    public void ReadImageFile()     
    {         [INDENT]int len = 1495;         
    DWatch pfWatch = DResponse;         
    IntPtr pfMethod = Marshal.GetFunctionPointerForDelegate(pfWatch);         
    ret=Send(len, pfMethod);[/INDENT]
    }      
    public int DResponse(int bytesLeftToSend, IntPtr[/]
    ...
    See more | Go to post

  • vasan raju
    started a topic how to call c sharp method in javscript
    in .NET

    how to call c sharp method in javscript

    I've a textbox and gridview in asp.net.. I've loaded some data into gridview form sql..
    when I type a leter in textbox and pressing enter button the data which are starting letter that I've typed in textbox should be displayed .
    I've used a method in sharp as below

    public void search()
    {
    SqlDataAdapter da = new SqlDataAdapter( "select * from mast_bloodgroup 2 where bloodgroup like'"...
    See more | Go to post

  • Fidelis Sobotta
    started a topic Using aften in c#

    Using aften in c#

    Aften is a ac3 encoder.

    There's a libaften.dll but trying to add it leads to "A reference to the "libaften.d ll" could not be added.Please make sure that the file is accessible and that it is a valid assembly"

    What now?
    See more | Go to post

  • John West
    started a topic Get information from USB skanner to file

    Get information from USB skanner to file

    Hi,
    I have problem. I want to get information form USB scanner to file, using C#. I use RightTag series 3000 RFID reader and want get reader result information to .txt file. Can somebody help with code, were to begin to solve this problem.

    Plz, help and BIG tnx.
    See more | Go to post

  • Dave750
    started a topic 2 way socket between applications/devices

    2 way socket between applications/devices

    I am new to C# and am writing a program that will run on a pc and allow either another program or an external device, like a touchpanel control system, to connect to it. I have the rest of my code ready, but I can't figure out how to make the socket connection work.
    I need the following

    My application listens for a connection.
    Device connects to my application.
    the socket stays open until it is disconnected by the...
    See more | Go to post

  • Dave750
    started a topic C# Queue

    C# Queue

    I am very new to C# and am writing a program that needs a Form with some controls and 2 other separate threads that run continuously and talk to each other.

    this example has worked really well for me in a similar application in Python in the past and I understand it well, so I would like to bring it over to C# if possible. I am stuck at how to share the q object between the two classes. Can anyone point me in the right direction?...
    See more | Go to post

  • bhagyap
    started a topic StackOverflowExceptionUnhandled

    StackOverflowExceptionUnhandled

    this.tableLayou tPanel1.ResumeL ayout(false);

    An unhandled exception of type 'System.StackOv erflowException ' occurred in mscorlib.dll occurred for the above line.. Please help me...
    See more | Go to post

  • Listing subfolders and files from an main folder within treeview c#

    Hi..

    I am populating a treeview in form1 based on the checkeditems in checkedlistbox which is in form2 but am unable to list the subfolders and files of the checked folder..

    Can anyone please help me????

    Thanks..

    hi..

    This is my scenario but am not getting any error..

    I have two forms form1 and form2,in form1 i have an treeview and in form2 i have checkedlistbox...
    See more | Go to post
    Last edited by Niheel; Dec 12 '11, 03:19 AM. Reason: merged code into description

  • bhagyap
    started a topic Create XML file using folder path..

    Create XML file using folder path..

    Hi..

    I have checkedlistbox in Form1 which gives me path of an folder with the checked items now using the checked items(path) i want to create XML File and populate it into TreeView in Form2..

    Can anyone please help me??
    See more | Go to post

  • bhagyap
    started a topic CheckedListbox

    CheckedListbox

    I have an checkedlistbox in one form Form1,and an treeview in another form Form2,i want to retain state of checkedlistbox in Form2 and create XML dynamically and finally populate treeview..

    System.IO.Direc toryInfo di = new System.IO.Direc toryInfo("E:\\T esting");
    //System.IO.FileS ystemInfo[] files = di.GetFileSyste mInfos();
    System.IO.FileS ystemInfo[] files = di.GetDirectori es();
    ...
    See more | Go to post

  • MConlisk
    started a topic Working with Media Player in Multiple forms

    Working with Media Player in Multiple forms

    Hello,

    I need to write a program that plays Windows Media on a second monitor. I have a control booth and a presentation screen where I work. I want a program that will have a form for the media player controls on my screen in the booth, while playing the media on the presentation screen.

    I have found code for making the player open in fullscreen on the presentation screen using something like:

    Code:
    
    
    ...
    See more | Go to post

  • MConlisk
    started a topic Working with Media Player in Multiple forms
    in C

    Working with Media Player in Multiple forms

    Hello,

    I need to write a program that plays Windows Media on a second monitor. I have a control booth and a presentation screen where I work. I want a program that will have a form for the media player controls on my screen in the booth, while playing the media on the presentation screen.

    I have found code for making the player open in fullscreen on the presentation screen using something like:

    Code:
    Screen[]
    ...
    See more | Go to post

  • aleact
    started a topic stop gridview posting back on clicking anywhere

    stop gridview posting back on clicking anywhere

    I have a gridview bound to some sql data and I have some textboxes that let me search this data. The problem is that when the client enters a search term, they can click anywhere on the page and the search happens. But they only want it to happen when the "search" button is pressed. (I am surprised this is a 'problem' but what can I do?)

    Can I somehow stop the postback from happening until I call it? I tried an Update...
    See more | Go to post
    Last edited by Niheel; Oct 10 '11, 08:06 PM. Reason: part of question, merged

  • MFrederickson
    started a topic File Attachment error with smtpop

    File Attachment error with smtpop

    Hello! I'm using smtpop to try and download an e-mail from the server. I haven't been able to get past the part in the code where it attempts to get the filename from the attachment (attach.FileNam e) This comes back as "". I was wondering what the issue was as I have *not* modified the source in any way.

    Here is my code:
    Code:
    using System;
    using System.Collections.Generic;
    using System.Linq;
    ...
    See more | Go to post
Working...