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
P

PravinSingh

@PravinSingh
About
Posts
42
Topics
13
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Any tool to check UI controls alignment?
    P PravinSingh

    Thanks Wonde, have posted there now. But I still don't understand how this forum is wrong. AFAIK this forum is meant for asking tools related questions as well (that's why we have the '?' icon available for the threads) and when someone answers (suggests a tool), the thread becomes part of the forum's KB.


    It's better to know some of the questions than all of the answers.
    Pravin.

    Free Tools design question

  • Any tool to check UI controls alignment?
    P PravinSingh

    Is there any tool to check if UI controls on a desktop app or a web app are properly aligned, the distance between them is consistent and the controls are following UI standards? Because if there isn't any already, I was planning to write one. :)


    It's better to know some of the questions than all of the answers.
    Pravin.

    Free Tools design question

  • How to get the physical path of a virtual directory?
    P PravinSingh

    Thanks for the answer, Luc. I already have this option of asking the user for webroot, storing them and later showing them in a drop-down to let him choose (or type a new one). I just wanted to remove this harassment by making my app a little more intelligent. All my users will be on Windows, using IIS 7, if that gives you any more ideas.


    It's better to know some of the questions than all of the answers.
    Pravin.

    C# question csharp tutorial

  • How to get the physical path of a virtual directory?
    P PravinSingh

    I have a desktop application where user can enter a virtual directory path (like http://localhost/MySite, or http://MyMachine/MySite). The path will always be local (both virtual and physical directories located on that machine itself). I should then open "MySite" in a browser, but before that I need to fetch some settings from its web.config file. For that I should know the physical location of web.config file (which is the root of "MySite") so that I can open it. So the question is: how do I get the physical location of "MySite"? Or is there any other approach to what I want to achieve? Please remember, I have a Winform application which has nothing to do with the site "MySite", it just gets its URL through an editbox. I am new to .Net, so please forgive any stupidity.


    It's better to know some of the questions than all of the answers.
    Pravin.

    C# question csharp tutorial

  • Can I increase the default width of the Console tree view in IIS Manager?
    P PravinSingh

    Wonderful.. Awesome.. Fantastic.. I can not thank you enough. You saved me at least 3 minutes of frustration every day (apart from teaching me something new). :rose:


    It's better to know some of the questions than all of the answers.
    Pravin.

    System Admin windows-admin data-structures question

  • Can I increase the default width of the Console tree view in IIS Manager?
    P PravinSingh

    I don't know if it's just me or everyone shares the pain, but when I need to change anything in a website's property, the sequence goes like: Open IIS Manager --> Expand 'local computer' node --> Expand 'Web Sites' --> Expand 'Default Web Site' --> Drag the splitter to increase width of tree view since that's too narrow to show the site names --> Select my desired site and do what I wanted to. That is 3 useless 'expands' and one irritating 'drag' every-time before I can do something meaningful. Gone through all the 'customization' options but found no way of making these nodes expanded by default or of changing the default width of the tree control. I really wish Microsoft had open sourced this tool so that I would've helped myself. Does anyone know any other way of making the nodes expanded by default or of increasing the default width of the tree control?


    It's better to know some of the questions than all of the answers.
    Pravin.

    System Admin windows-admin data-structures question

  • true/false statements in if clause
    P PravinSingh

    OK, now I get it. To be honest, I had never thought about this side effect. But, to me what seems to be the real problem here is the use of BOOL (which is essentially int)in place of bool. A bool bDoIt would have responded to any non-zero number by simply turning itself to true. Does that mean we should avoid using BOOL in general?


    It's better to know some of the questions than all of the answers.
    Pravin.

    C / C++ / MFC

  • generating random number
    P PravinSingh

    I didn't mean to offend you. What I said was just a friendly advice on how you can avoid getting into useless discussions and what will fetch you more answers; it was "life lessons" as you call it. But since you don't want it, we should stop the discussion here. I apologize for giving you unwanted advice.:rose:


    It's better to know some of the questions than all of the answers.
    Pravin.

    Algorithms tutorial question lounge

  • generating random number
    P PravinSingh

    Downvoting someone does not make anyone 'impolite and dumb'. What makes anyone that is: Not explaining what's wrong with the given answer and what's actually expected. After downvoting the answer, a 'polite and intelligent' reply like "Thanks for your efforts but what I really want is..." could have made things a lot smoother for everyone. Regarding the use of sms lingo, plz undrstnd dat dis site is read by ppl across da world, 4 many of whom English s not da 1st lang. U wud ugree dat if every1 starts using dis kinda lang then life will b hell 4 all of us. Dat's y v discourage sms lingo.


    It's better to know some of the questions than all of the answers.
    Pravin.

    Algorithms tutorial question lounge

  • true/false statements in if clause
    P PravinSingh

    Niklas Lindquist wrote:

    BOOL bDoIt = ::ExternFunction(); if (bDoIt == TRUE)

    Niklas Lindquist wrote:

    It's a matter of stupidity.

    May be I'm being a bit stupid but, what exactly is "stupid" in the code above? if (bDoIt) would've looked nicer but if (bDoIt == TRUE) isn't bad either.


    It's better to know some of the questions than all of the answers.
    Pravin.

    C / C++ / MFC

  • How to create a DataSet with two tables having a 'JOIN' in ADO.NET?
    P PravinSingh

    This is exactly what all the MSDN examples show. My questions are: 1. This code is for the case where we have a query like "SELECT something FROM dt1, dt2 WHERE dt1.PK=dt2.FK". Will this also hold good for a query like "SELECT something FROM dt1 JOIN dt2 on (dt1.PK=dt2.FK)"? 2. How does the statement DataRelation Join = new DataRelation("Join", dt1.Columns[0], dt2.Columns[0]); change if in case of a JOIN, I have a FULL JOIN, or a LEFT JOIN, or an OUTER JOIN etc.?


    It's better to know some of the questions than all of the answers.
    Pravin.

    C# tutorial csharp help question

  • How to create a DataSet with two tables having a 'JOIN' in ADO.NET?
    P PravinSingh

    I thought about that before posting, but this one is more of an ADO.NET question than a database question, so thought I'll be in good company here. :) The DB forum doesn't have many 'programming' questions, but if I don't get any answer here, probably I'll try my luck there as well.


    It's better to know some of the questions than all of the answers.
    Pravin.

    C# tutorial csharp help question

  • How to create a DataSet with two tables having a 'JOIN' in ADO.NET?
    P PravinSingh

    I want to create a DataSet that has two tables which are connected by a LEFT JOIN. All MSDN examples tell that if two tables are connected by a parent-child relation, I can add the two tables to DataSet object, create a DataRelation object by passing (parent, child) as parameters, and then add the DataRelation to the DataSet. But no example tells how to relate the tables if they are connected by a JOIN. I don't think we can create DataRelation for JOINs. If we can, how? And how to differentiate between JOIN, LEFT JOIN, FULL JOIN etc. while creating DataRelation? Any help is appreciated.


    It's better to know some of the questions than all of the answers.
    Pravin.

    C# tutorial csharp help question

  • Total days in a year !
    P PravinSingh

    Wow, I didn't know about exception #2, I always thought scientists decide after a few centuries whether this century year will be a leap year or not. :cool: Thanks.


    It's better to know some of the questions than all of the answers.
    Pravin.

    C / C++ / MFC question

  • How to display the program code as output using C or C++
    P PravinSingh

    The program that reproduces its own source as output is called quine (After American logician Willard Van Orman Quine). There are many ways to do it, but rather than I give you a complete working example, I'd appreciate if you google for quine and go through the results. :)


    It's better to know some of the questions than all of the answers.
    Pravin.

    C / C++ / MFC question c++ help tutorial

  • Comparing images in MFC
    P PravinSingh

    Wow! Guys, we are getting so many bitmap comparing questions for past couple of days, I seriously think we should ask Chris to create a new forum for 'Bitmap Comparison' questions :laugh:


    It's better to know some of the questions than all of the answers.
    Pravin.

    C / C++ / MFC c++ help tutorial question

  • Dialog toolbar problem
    P PravinSingh

    But your question spoke about making it transparent :^) ...anyway, to get the actual client area (drawing area), you can create it as a child window that covers the entire space except the toolbars etc. and put all your controls inside that child window. Then a call to GetClientRect with child window as a parameter will give you the desired rect (you can take a look at this[^]example). I am not aware of any other more sophisticated way to achieve this.


    It's better to know some of the questions than all of the answers.
    Pravin.

    C / C++ / MFC graphics help question

  • CRM Product
    P PravinSingh

    andy40121 wrote:

    It’s pretty cool that EnterpriseWizard even offers an option to start out as a SaaS model and move it behind your firewall at some later point

    This model is called 'host-to-buy' and is available with many vendors, including Microsoft. In this scenario, at some point in the future, the customer moves from a subscription service to an in-house configuration, with some or all of the fees paid for the hosted solution being applied towards an in-house licensing agreement. This model is a great development in SaaS CRM arena as it addresses some of the concerns raised in the Forrester survey. :)


    It's better to know some of the questions than all of the answers.
    Pravin.

    IT & Infrastructure com cloud security testing beta-testing

  • Dialog toolbar problem
    P PravinSingh

    Hope this helps.


    It's better to know some of the questions than all of the answers.
    Pravin.

    C / C++ / MFC graphics help question

  • How to make a non-editable Combo-box?
    P PravinSingh

    Thank you DaveyM69 for the tip. Although the solution proposed by nelsonpaixao is not what I was looking for and my current need is perfectly addressed by making DropdownStyle=DropDwonList, I will keep this solution in mind for some later day, e.g. when I need a textbox that only accepts numbers. Thank you nelsonpaixao. :)


    It's better to know some of the questions than all of the answers.
    Pravin.

    C# csharp question help tutorial
  • Login

  • Don't have an account? Register

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