Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
L

Laxman Auti

@Laxman Auti
About
Posts
540
Topics
7
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Terminate Remote Desktop Connection in Windows 7
    L Laxman Auti

    1. Launch a Command Prompt window, and authenticate to the remote host by using the following “net use” command:

    net use /user:Administrator \\\C$

    Replace with actual NetBIOS computer name or IP address of the remote host. For example, “net use /user:Administrator \\188.8.8.8\C$. Enter password when prompted. Alternatively, from Windows Explorer, map to a network drive to share a folder on the target server, and log in accordingly. 2. In Command Prompt, run the following command:

    qwinsta /server:

    Where is the actual computer name or IP address of the remote host. For example, “qwinsta /server:188.8.8.8″. 3. A list of active and connecting Remote Desktop or Terminal Services sessions will be displayed. Identify the ‘hung’ connection and its ID. To reset and disconnect the Remote Desktop connections or sessions, run the following command:

    rwinsta /server:

    4. Replace with the session ID identified with “qwinsta” command, and with the actual computer name or IP address of the remote host. For example, “rwinsta 1 /server:188.8.8.8″ Note: qwinsta is Query Window Station and rwinsta is Reset Window Station. Once a Remote Desktop or Terminal Services connection or session is terminated and disconnected, the slot will be released and remote user can login remotely again.

    Knock out 't' from can't, you can if you think you can. :cool:

    IT & Infrastructure

  • Small confusion in Nullable Type
    L Laxman Auti

    RaviSant wrote:

    Declaring bool? b = true;

    The intention of nullable types is to allow/accept null value. So when we declare "bool?" then, it is of type "Boolean" and can accept null value. You can check if the variable has the value by using "HasValue" property of variable. if it is true then get the value of variable using "Value" property.

    Knock out 't' from can't, you can if you think you can. :cool:

    C# question

  • std::map<> in C#
    L Laxman Auti

    raju_shiva wrote:

    I tried the same ,but stilll the same error

    Why don't you try something like following?

    HashSet<string> hashSet = new HashSet<string>();
    hashSet.Add("abc");
    hashSet.Add("aa");

    Knock out 't' from can't, you can if you think you can. :cool:

    modified on Monday, July 5, 2010 2:45 PM

    C# csharp c++ help

  • How to use HashSet
    L Laxman Auti

    raju_shiva wrote:

    Bu i am getting error as "A new expression requires () or [] after type"

    Check answer at your previous question http://www.codeproject.com/Messages/3521515/Re-std-map-in-Csharp.aspx[^]

    Knock out 't' from can't, you can if you think you can. :cool:

    C# csharp help tutorial

  • std::map<> in C#
    L Laxman Auti

    Actually written code was correct, but due to incorrect formatting, it was not visible. The code line should be as below.

    HashSet<string> stringSet = new HashSet<string> { "abc", "aa" };

    You could check my previous post in FireFox as below. 1. Select the code. 2. Do right click. 3. select "View Selection Source".

    Knock out 't' from can't, you can if you think you can. :cool:

    C# csharp c++ help

  • How to join 2 string[] objects
    L Laxman Auti

    Chesnokov Yuriy wrote:

    Is there a single function that takes 2 string[] arrays and concatenates them together in a single string[] array?

    I think following function will do the stuff, right?

    public static string[] ConcateArray(string[] s1, string[] s2)
    {
    string[] s = new string[s1.Length + s2.Length];
    s1.CopyTo(s, 0);
    s2.CopyTo(s, s1.Length);
    return s;
    }

    Just call the method as

    string[] s = ConcateArray(s1, s2);

    Knock out 't' from can't, you can if you think you can. :cool:

    C# question data-structures tutorial

  • std::map<> in C#
    L Laxman Auti

    raju_shiva wrote:

    How can i search in map and get the results back in CCombo.

    OK. then you could use HashSet with string as a type. This stores unique values and don't need to have key/value pair.

    //Your predefined map values.
    HashSet stringSet = new HashSet { "abc", "aa" };

    //Copy to new array for operations.
    string[] stringList = new string[stringSet.Count];
    stringSet.CopyTo(stringList);

    //Suppose you type "a" in combo box edit.
    string strValue = "a";

    //Look for all the values that contains "a"
    string[] matchedStrings = Array.FindAll(stringList, delegate(string p)
    {
    return (p.Contains(strValue));
    }

    //Sort array for correct sequence in combo box.
    Array.Sort(matchedStrings);

    //You should access predefined combox here.
    //ComboBox cmbValues = new ComboBox();

    //Clear all items from combo box.
    cmbValues.Items.Clear();

    //Fill the combo box with selected values.
    cmbValues.Items.AddRange(matchedStrings);

    //default selection to 0th value.
    cmbValues.SelectedIndex = 0;
    });

    Hope this gives some idea to you.

    Knock out 't' from can't, you can if you think you can. :cool:

    C# csharp c++ help

  • client/server periodic data transfer
    L Laxman Auti

    You are welcome. :)

    Knock out 't' from can't, you can if you think you can. :cool:

    C# sysadmin help question announcement

  • std::map<> in C#
    L Laxman Auti

    David Anton wrote:

    However, it's unusual to deal with enumerators directly in C# - instead just use a 'foreach' loop, which enumerates for you.

    Any example that lets unusual deal of C# enumerators?

    Knock out 't' from can't, you can if you think you can. :cool:

    C# csharp c++ help

  • client/server periodic data transfer
    L Laxman Auti

    teknolog123 wrote:

    My problem is that I want to update that string every minute. I can make server send the updated data every minute but how can the client keep listening?

    I think your client/server module is working reversely. Instead of server sending data to client every minute, let client do the request to server for the data and let server keep listening for the client requests. I think that makes sense, right?

    Knock out 't' from can't, you can if you think you can. :cool:

    C# sysadmin help question announcement

  • std::map<> in C#
    L Laxman Auti

    raju_shiva wrote:

    The same code i want to use in C#

    Here is the C# code

    Dictionary<string, string> hashMap = new Dictionary<string, string>();
    IDictionaryEnumerator en = hashMap.GetEnumerator();
    while (en.MoveNext())
    {
    string key = (string)en.Key;
    string keyValue = (string)en.Value;
    // Do what you want to do with key/value.
    }

    Knock out 't' from can't, you can if you think you can.

    C# csharp c++ help

  • One Suggestion
    L Laxman Auti

    Chris Maunder wrote:

    What about now?

    Looks good for me.

    Knock out 't' from can't, You can if you think you can. :cool:

    Site Bugs / Suggestions asp-net com tutorial question

  • One Suggestion
    L Laxman Auti

    Chris Maunder wrote:

    I have an idea. Give me a bit to play around. I think it will make sense.

    I would like to suggest "My Settings" menu in place of "Lounge" and "Lounge" can be moved to either of below. 1. in between "Features" and "Help!" as main menu 2. in "Features" as sub menu. What you say?

    Knock out 't' from can't, You can if you think you can. :cool:

    Site Bugs / Suggestions asp-net com tutorial question

  • TODAY's reputation points
    L Laxman Auti

    Chris Maunder wrote:

    On which page are you thinking? Forums, articles, Quick Answers?

    I am thinking of reputation points in member profile, same like total reputation points and with categorization/reputation type.

    Knock out 't' from can't, You can if you think you can. :cool:

    Site Bugs / Suggestions

  • TODAY's reputation points
    L Laxman Auti

    A suggestion, that to have an reputation points grouped by reputation type for each member and listed under his/her profile.

    Knock out 't' from can't, You can if you think you can. :cool:

    Site Bugs / Suggestions

  • Add an option to vote on survey results page
    L Laxman Auti

    Currently, we don't have any option to vote (for ongoing survey) on survey results page. We do open the survey results page on clicking the survey from surveys page http://www.codeproject.com/script/Surveys/List.aspx[^]. If interested, one would like to vote on the same page. Also, we should allow to vote for open/ongoing surveys only.

    Knock out 't' from can't, You can if you think you can. :cool:

    Site Bugs / Suggestions com tools

  • wsdl
    L Laxman Auti

    gerom77 wrote:

    I have only the wsdl file not the web service. My application is a windows service and I need to create the proxy class in order to call the webservice. I don't have the site for the webservice.

    You don't need to have a site for webservice for generating proxy classes. You can add web reference of WSDL file from local disk too like c:\consumer.wsdl as an URL while adding a web reference.

    Knock out 't' from can't, You can if you think you can :cool:

    ASP.NET tutorial csharp question visual-studio wcf

  • folder name in iis 7
    L Laxman Auti

    netJP12L wrote:

    yes, that's right it convert to %26 but path couldn't be accessed such as ../../A&R/data.txt

    If URL is encoded correctly then it should look like ../../A%26R/data.txt

    Knock out 't' from can't, You can if you think you can :cool:

    ASP.NET windows-admin help question

  • wsdl
    L Laxman Auti

    wrote:

    Can someone provide the information. Is there any step by step guide? I have search the web but I have find nothing

    Look at How to make a simple WebService and consume it.[^]

    Knock out 't' from can't, You can if you think you can :cool:

    ASP.NET tutorial csharp question visual-studio wcf

  • Textbox Validation
    L Laxman Auti

    I don't believe on restricting user for inputting. rather i will do it as following. This code will accept user decimal input and after user looses focus of this text box the validation logic will do the stuff for you.

        private void textBox1\_Validating(object sender, CancelEventArgs e)
        {
            decimal result = 0.00M;
            decimal.TryParse(textBox1.Text, out result);
            textBox1.Text = decimal.Round(result, 2).ToString();            
        }
    

    Let me know if you like this.

    wrote:

    Knock out 't' from can't, You can if you think you can :cool:

    .NET (Core and Framework)
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups