Search Result

Collapse
436 results in 0.0037 seconds.
Keywords
Members
Tags
c#
  •  

  • GigaKatowice
    started a topic Using C++ library in C#

    Using C++ library in C#

    Hi.

    I need help with my code.
    I'm trying to run unmanaged code from my C# code.


    C++ Code
    Code:
    Result_t oemGetImage(PBYTE pImageBuffer,
                         PDWORD pdwSize, WORD nTop,
                         WORD nLeft, WORD nRight,
                         WORD nBottom, WORD nSkip,
                         WORD nBits, FileFormat_t nFormat,
                         WORD nWhiteValue,
    ...
    See more | Go to post

  • khiat
    started a topic IIS stopped Working

    IIS stopped Working

    I am developing web application using (C#) and (ASP.NET Web API) and MS SQL 2008 R2 and hosting on IIS7 in Windows Server 2008, All APIs return data in JSON

    When i call any API from any web browser and refresh the page to call again before the first call finishes it give me warning in the event viewer and after 0 to 5 minutes the worker process in the II7 stopped for about 2 minutes(hang) and all APIs calls from all users at the period...
    See more | Go to post

  • Evolution445
    started a topic ListBox with background image

    ListBox with background image

    Hi,


    I have been trying to put a background image on a listbox control.

    The only way I saw possible was to inherit the listbox control and override the OnPaint event.

    Code:
        class ListboxWithBgimage : ListBox
        {
            // Property does not accept null, weird
            Image bgImage = Resources.list_log;
    
            public ListboxWithBgimage() : base()
            {
    ...
    See more | Go to post

  • jumbojs
    started a topic Class Design Tips

    Class Design Tips

    When I design a class, I'm thinking that the rules below apply. Am I correct in thinking this way?

    A variable should be local to the method unless it needs to exist in more than one method and live longer than the life of one method. Otherwise it should be a global variable or field.

    If a group of variables and methods work together in a class that has other methods that work with a different subset of fields, look to...
    See more | Go to post

  • ebbi
    started a topic Close Previouse Foam in C#

    Close Previouse Foam in C#

    when i am closing me previous foam by using


    this.close();
    my all application become close !!
    please help me

    mY Code is here
    Code:
    private void btnNewInvoice_Click(object sender, EventArgs e)
            {
             
                using (AmdDataSet.InvoiceHeaderTableDataTable htabel = new AmdDataSet.InvoiceHeaderTableDataTable())
                {
                    AmdDataSet.InvoiceHeaderTableRow
    ...
    See more | Go to post
    Last edited by PsychoCoder; May 25 '12, 06:00 PM. Reason: Code tags added

  • C# Windows Service -- How to Configure Security

    I have created a Windows service application in C# that utilizes a FileSystemWatch er object to monitor changes to files in a directory specified in a configuration file. This service is being hosted on a Win2K3 server. The folder to be monitored is specified using a UNC path to a named share on a different Win2K3 server. The service is configured to run using a domain account that was created specifically for this service to run under.
    ...
    See more | Go to post

  • jobikjohn
    started a topic Install windows service on a linux machine
    in .NET

    Install windows service on a linux machine

    I've a windows service. I want to install and use on a linux machine. How to install and how to do the start and stop actions in linux machine?
    See more | Go to post

  • maheshwag
    started a topic Keep Focus To Main Controls On Click To Another

    Keep Focus To Main Controls On Click To Another

    I have a datagridview and listbox control on winforms . My task is not to lost focus from datagridview on press or click to listbox control.

    I want to keep focus on datagridview.

    For Example: when datagridview have focus and if I press or click to listbox then the datagridview lost the focus but I just want to keep focusing datagridview on press or click to listbox. Any help will appreciated.

    I have tried...
    See more | Go to post

  • 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

  • lightwalker19
    started a topic I need to do a post with comments. help

    I need to do a post with comments. help

    hello i need to do a post with comments, im using a listview to view the posts, and comment too, but the list view only lets me see the posts when the table comment has data... even if the table post is full of data it wont display because the table comment has no data... how can i overcome this??
    See more | Go to post

  • Double extensions when compressing file with c# (*.GZip)

    I have an application that saves data to a MS Access database and then compresses it. The annoyance here is that I get a double extension on my zip folder. (*.accdb.gz).

    I have come up with an alternative but it causes the compressed file to not get any extension at all. The problem is that I name both the folder and the file in the same line and I'm wondering if there's a way to seperate them.

    Code:
    private void CompressFile(string
    ...
    See more | Go to post

  • How can i bind Profile.property to datalist label?

    i have the property UserName and FullName. i am already returning The username like

    Code:
     <asp:Label ID="DeLabel" runat="server" Text='<%# Eval("De") %>' />
    But what i want is something like this

    Code:
     <asp:Label ID="DeLabel" runat="server" Text='<%# Eval(Profile.GetProfile("De").GetPropertyValue("FullName").ToString()) %>'
    ...
    See more | Go to post

  • GoldenKing
    started a topic MVC3 razor view dropdownlist from Enum

    MVC3 razor view dropdownlist from Enum

    I am filling my dropdownlist with items from Enum.How can I get the index of enum items to dropdown list ?

    Here is my Enum
    Code:
    public enum Colors{ red,blue,green,yellow,orange,white,black,Teal,Custom }
    Here is my dropdownlist
    Code:
     @Html.DropDownList("SelectedColourId", Model.ColourList, "(Select one Color)")
    Here is my ViewModel
    Code:
     myPageViewModel:BasicViewModel
    ...
    See more | Go to post

  • hamidi
    started a topic 910209 - Where's ResizeEnd event?

    910209 - Where's ResizeEnd event?

    hi
    i need to know when resize ends in my Silverlight application. how can i do that?
    See more | Go to post

  • make a list of all the numbers in a listbox

    i want to make a list of all the numbers in a listbox(sql data source) and then delete all the numbers in a dropdownlist all the numbers found on listbox....

    i have no idea how to do this..
    i managed to get the numbers in the correct order, but for example i add 1 to the the listbox,my dropdownlist would start at 2 but then add 15, meaning my dropdownlist would start at 16 and 2,3,4,5..16 is gone ... basically what i want to...
    See more | Go to post
Working...