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
M

Mandaar Kulkarni

@Mandaar Kulkarni
About
Posts
40
Topics
5
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Help in calling form
    M Mandaar Kulkarni

    a) if the form is in the same assembly of your method Assembly asm = Assembly.GetExecutingAssembly(); Form frmTemp = asm.CreateInstance(Your_Namespace + "." + Your_Form_Name); frmTemp.Show(); b) if the form to be called in from some other assembly Assembly asm = Assembly.LoadFrom(AssemblyPath); Form frmTemp = asm.CreateInstance(Your_Namespace + "." + Your_Form_Name); frmTemp.Show(); Hope this helps

    C# help question

  • how to run exe at instllation time
    M Mandaar Kulkarni

    You can write your own class which will be derived from the Installer class.

    Naveed khan nido wrote:

    I want to know how to add an exe path to run at vs deployment time.

    You will get savedState parameter( It is of IDictionary type) in the Install method. You can add the exe path to this savedState.

    Naveed khan nido wrote:

    I want to add an exe run at when installation is in process.

    simply Process.Invoke with the path saved into savedState will do the job for you. You will have to specify this class (rather your installer dll) in the custom actions of your deployment project. Thanks.

    C# visual-studio sysadmin tutorial

  • Sorting?
    M Mandaar Kulkarni

    The default sorting is based on the ascii values where you are getting 'BB ' entry before 'aA'. In your case you will have to write your own way of sorting the array.

    C# question algorithms data-structures tutorial

  • about html operate [modified]
    M Mandaar Kulkarni

    Can you just try out using mshtml.HTMLDocument class? I remember using it for somewhat similar purpose. Or else if possible mail me your file I will look if I can do any thing. Thanks...

    C# csharp html xml question

  • Get Thread Result (IAsyncResult)
    M Mandaar Kulkarni

    check this out http://authors.aspalliance.com/aspxtreme/sys/IAsyncResultClass.aspx[^]

    C# help question learning

  • about html operate [modified]
    M Mandaar Kulkarni

    Basically SHDocVw is a com dll. Add following references... .NET -> Microsoft.MSHtml COM -> Microsoft Internet Controls Then You can use MSHTml.HTMLDocument object to access various properties of HTML like activeelement, baseurl, childnodes etc...

    C# csharp html xml question

  • about html operate [modified]
    M Mandaar Kulkarni

    check SHDocVw.dll (Microsoft Internet Controls) You can use Document property WebBrowserClass to get the HTMLDocument. Hope this helps you.

    C# csharp html xml question

  • how to upload image to the database?
    M Mandaar Kulkarni

    Do you know something about BLOB? Check, it may help you.

    C# database help tutorial question

  • Check taskbar flashing
    M Mandaar Kulkarni

    You can get the active window using GetActiveWindow API defined in user32.dll You will have to periodically check for the active window.

    C# question

  • Update data base
    M Mandaar Kulkarni

    The update methods of dataset are quite useful when you are dealing with bulk of data. For single or a few records it doesno't matter whether you use sql or bulk update. Stored procedure are better than sql statements with respect to faster execution as they are compiled and the sql gets compiled runtime.

    C# csharp database question announcement

  • Time values in datagrid
    M Mandaar Kulkarni

    If you are not directly binding the data to the Grid, you can get the value into DateTime type and use .ToShortTimeString() method and assign to the tinme value. If you are directly binding data to the grid, then you probably have to format the column to time format.Check if DataBound like event is available or not. If you are providing your own SQL for data retrival use TO_CHAR(DATE_COLUMN, 'HH:MM:SS') in sql to get the data in time format.

    C# help database

  • MSBuild command line
    M Mandaar Kulkarni

    Check out followings You can get this by firing csc -? on .NET command prompt - OUTPUT FILES - /out: Specify output file name (default: base name of file with main class or first file) /target:exe Build a console executable (default) (Short form: /t:exe) /target:winexe Build a Windows executable (Short form: /t:winexe) /target:library Build a library (Short form: /t:library) /target:module Build a module that can be added to another assembly (Short form: /t:module) /delaysign[+|-] Delay-sign the assembly using only the public portion of the strong name key /doc: XML Documentation file to generate /keyfile: Specify a strong name key file /keycontainer: Specify a strong name key container /platform: Limit which platforms this code can run on: x86, Itanium, x64, or anycpu. The default is anycpu. - INPUT FILES - /recurse: Include all files in the current directory and subdirectories according to the wildcard specifications /reference:= Reference metadata from the specified assembly file using the given alias (Short form: /r) /reference: Reference metadata from the specified assembly files (Short form: /r) /addmodule: Link the specified modules into this assembly - RESOURCES - /win32res: Specify a Win32 resource file (.res) /win32icon: Use this icon for the output /resource: Embed the specified resource (Short form: /res) /linkresource: Link the specified resource to this assembly (Short form: /linkres) Where the resinfo format is [,[,public|private]] - CODE GENERATION - /debug[+|-] Emit debugging information /debug:{full|pdbonly} Specify debugging type ('full' is default, and enables attaching a debugger to a running program) /optimize[+|-] Enable optimizations (Short form: /o) - ERRORS AND WARNINGS - /warnaserror[+|-] Report all warnings as errors /warnaserror[+|-]: Report specific warnings as errors /warn: Set warning level (0-4) (Short form: /w) /nowarn: Disable specific warni

    C# visual-studio tutorial

  • help..any one helpp..!
    M Mandaar Kulkarni

    I don't know whether any article exists for such case, but I can give you some more hints about this as you know now how to deal with lines. Take out a list of values that are required for all the shapes that you are using. Create a structure e.g. structShape which contains members for holding all the values. Include a shapeType field in the structShape which will let you know what type of shape you are drawing. It might be the case that a shape would not contain all the properties. So copy values that are available and keep the remaining blank (or something like "NA" which means not applicable for this type of shape). I recommand using structure because if you want to read again from that file you can read in the same sequence that you wrote to the file. Your shapeType attribute will decide which shape is to be drawn. Is that fair enough? Let me know if any problem in this.....

    C# graphics help

  • help..any one helpp..!
    M Mandaar Kulkarni

    Let me make it simpler for you... When you are drawing line, you have its information like start point, end point, RGB. Create a structure e.g. structLine which contains members for holding start point , end point (each of appropriate type). Copy the values to objLine of type structLine before you call DrawLine Method. When you click Save button // create a writer and open the file TextWriter tw = new StreamWriter("line.txt"); // write a line of text to the file tw.WriteLine(objLine.StartPoint.ToString() + ", " objLine.EndPoint.ToString()); // mention all values of struct // close the stream tw.Close(); I recommand you override the method ToString() method of structLine in which you provide way to represent the structure in sting format. Now is this okey?

    C# graphics help

  • help..any one helpp..!
    M Mandaar Kulkarni

    Try this link.... It shows how to write structure to file http://www.codeproject.com/useritems/readwritestructstobinfile.asp[^]

    C# graphics help

  • Files size?
    M Mandaar Kulkarni

    Try This.... foreach (string file in arSourceFiles) { FileInfo finfo = new FileInfo(file); int filesize = finfo.Length; // Length returns the size of file. }

    C# tutorial question

  • help..any one helpp..!
    M Mandaar Kulkarni

    1. First decide which all properties you want to save to the text file. 2. Create a structure for holding data for the shape using these properties. 3. Design the structure in such a way that it will cover most common properties for all shapes. 4. When you draw the shape, copy the values to the instanece of structure. 5. Finally write the structure to the file. How about this?

    C# graphics help

  • Highlight button
    M Mandaar Kulkarni

    Try setting focus mannually in the Click event or CheckedChanged event of the radio button using BtnNext.Focus()

    C# question

  • Cross Thread Operation
    M Mandaar Kulkarni

    You are getting the cross thread application basically because of the nature of windows controls. Windows form controls are not Thread safe meaning if you instantiate a contol in a thread (main thread) and try to access the data from other thread it won't allow you to do that way. Now in order to access the other control you have to use Invoke method for the control. Have a look at the following articles. http://www.codeproject.com/csharp/threadsafeforms.asp http://msdn2.microsoft.com/en-us/library/ms171728.aspx

    C# question help

  • Events in web service....
    M Mandaar Kulkarni

    I have asynchronous method in the webservice. I have call back method and from this call back method I have raised an event. But the problem is when I refer this web service, the event that has been exposed by webservice is not seen in client application. Thanks.

    C# help
  • Login

  • Don't have an account? Register

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