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

madhusri

@madhusri
About
Posts
36
Topics
24
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Web browser control (Print() functionality) - Printing in landscape from code
    M madhusri

    Hi all, I have developed a windows application in C#, which is going to display a report and print itt automatically without intimating the user. The report is displayed in the web browser control using XSL in a windows forms application. I would like to know how to print the report in the landscape format? The user should not be allowed to set the page options like Portrait/landscape. Please let me know of how this can be achieved from coding Thanks in Advance.

    Thanks and Regards Madhu

    C# csharp winforms xml tutorial question

  • Gatagridview control - WrapMode property
    M madhusri

    Hello All, I have a datagridview control to display information like the file name and file path. The file paths displayed are all long strings and i want them to wrap to the column. To achieve this i have set the follwinf properties: 1) DefaultCellStyle.WrapMode = DataGridViewTriState.True 2) AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill 3) AutoSizeRowsMode = DataGridViewAutoSizeRowsMode.DisplayedCellsExceptHeaders Here i find that the text gets wrapped only if space is provided in the text. I have almost all the file paths with no space and hence the text is not getting wrapped. Please help me out to solve this issue. Thanks in advance

    Thanks and Regards Madhu

    C# help

  • XPATH query to get the child elemets of a node
    M madhusri

    Hi, Thanks. it solved the issue...

    Thanks and Regards Madhu

    XML / XSL xml database question

  • XPATH query to get the child elemets of a node
    M madhusri

    Hi, Heres a sample XML document: A M B 1 If i get the count of childnodes of the node , using the following statement: xmlNamenode.Childnodes.count, it returns 6 (i.e) it also includes the comments as a child node. Is there any way to directly get the count of number of elemets (excluding comment nodes) instead of alll the childnodes? Thanks and Regards Madhu

    XML / XSL xml database question

  • Getting Child nodes count of an element
    M madhusri

    Hi, Heres a sample XML document: A M B 1 If i get the count of childnodes of the node , using the following statement: xmlNamenode.Childnodes.count, it returns 6 (i.e) it also includes the comments as a child node. Is there any way to directly get the count of number of elemets (excluding comment nodes) instead of alll the childnodes? Thanks in advance Regards Madhu

    C# xml question

  • Web browser hangs in some systems
    M madhusri

    Hi, I am using the webbroser control in winforms and find that during the page load operation, the application itself hangs in some systems. This is not reproducable in all the systems. Here an XML file is being generated and it displayed in the web browser control using XSL. Can anyone help me out in this issue... Thanks in advance

    Thanks and Regards Madhu

    C# xml help csharp winforms

  • Generating XSL for the given XML [modified]
    M madhusri

    Hello all, I have an XML whick has the details regarding the function names and parameters. I'll have to display the details in a table format. The sample XML and table format required are given below: XML Format: input value unit input value sdg sdg sdg sg sgd sdg sdg sg sgd sdg sdg sdg sdg TABLE FORMAT: __________________________________________________________________ Function Name Results ____________________________________________________ Input Name Value Unit Low High /Output Limit Limit ___________________________________________________________________ Samp1 Output Abc 786 - - - ___________________________________________________________________ Samp2 Input Xyz 909 M 10 100 _____________________________________________________ Input Pqr 9899 X - - _____________________________________________________ Output Zzz 8899 - - - ___________________________________________________________________ The number of input and output parameters for every function may vary. Please help me out in generating the XSL for this XML. I had tried it out but am not able to align them properly. I want the table width to be 100% and not more than that. Thanks in advance. Madhu

    XML / XSL xml help

  • Datetime to integer conversion and vice versa
    M madhusri

    i want to be converted to int only

    Thanks and Regards Madhu

    C#

  • Datetime to integer conversion and vice versa
    M madhusri

    any thing is fine but it must work in c# if i give system.datetime.now i must be able to convert to integer and again back to datetime.

    Thanks and Regards Madhu

    C#

  • DateTime to Int conversion and vice versa
    M madhusri

    How to convert Int to DateTime and vice versa?

    Thanks and Regards Madhu

    C# tutorial question

  • MultiThreading - Synchronization issues
    M madhusri

    Hi, My scenario is as follows: I spawn mukltiple threads simultaneously and all threads invoke functions simultaneously. These functions are in a single threaded application. What happens if one thread invokes the function and before it completes its processing, another thread also invoke it? Will both the threads execute the function simultaneously or will one thread complete its operation and only then the other will start processing?. In my case I want one specific function to be executed synchronously. Only one thread should execute it at a time because it makes use of certain resources whic can be used by only one thread at a time. How to lock the entire method? Can lock(this) { //Code goes here... } be used in this scenario. It would be better if any of you are able to suggest a solution for this.

    Thanks and Regards Madhu

    C# tutorial question

  • Designer Error in C#
    M madhusri

    Hi, I have a user control in the project. The user control when loaded in the design view gives an error and VS 2005 automatically shuts down. But the same user control opens in all other systems. Any idea of what the problem would be???

    Thanks and Regards Madhu

    C# help csharp visual-studio design question

  • Singleton object doesn't detroy when i assign it to null.
    M madhusri

    Hi leppie, When i = null is assigned, there are no reference pointers pointing to the singleton object. Hence if there is a GC, then the singleton object has to be deleted. In this case, next time an instance to the singleton object is created, it should be a new object again. But the old object is being retained and returned when i call createInstance() again. Basically, when will the singleton object be destroyed from memory? We understand that an object will be deleted if there are no references to that object or if the object is set to null. Is this right?

    Thanks and Regards Madhu

    C# question

  • Singleton object doesn't detroy when i assign it to null.
    M madhusri

    Here is the code sample of sington class and their clients public class single { public string str = "Hello"; private static single s = null; private single() { } public static single CreateInstance() { if (s == null) s = new single(); return s; } public string Get() { return str; } } class Program { static void Main(string[] args) { single i = single.CreateInstance(); string str1 = i.Get(); Console.WriteLine(str1); i.str = "World"; i = null; single j = single.CreateInstance(); string str2 = j.Get(); Console.WriteLine(str2); j = single.CreateInstance(); j.str = "New"; string str3 = j.Get(); Console.WriteLine(str3); } } Output:: Hello World New But it should be Hello Hello New since we assigned i=null then the singleton must be destroyed and new instance should be created when j = single.CreateInstance(); executed right?

    Thanks and Regards Madhu

    C# question

  • SOAP Exception Class
    M madhusri

    What is SOAP exception Class? How to implement it for Webservices in C# .net? Thanks and Regards Madhu

    ASP.NET csharp question wcf xml tutorial

  • Generation of Class Diagrams
    M madhusri

    Hello all, How to generate class diagrams from VS 2005 .net for C++ project? Thanks and Regards Madhu

    Managed C++/CLI csharp c++ visual-studio tutorial question

  • Invoking native dlls in C#
    M madhusri

    Hi I have faced one problem on calling the native dll's functions from C# .Net coding.Actually i wrote one dll to control the Digital Multimeter in a remote programming mode through GPIB interface. Initially i have imported the win32 dll provided with GPIB driver in my coding and tried to send the data to the Digital Multimeter, Whenever i send the data, it throws this Exception " System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt." , but i will send the data from VC++ application,its working fine. Is there any specific settings needs to do? Please help me to solve this problem. For your reference i have pasted the header file function ,VC++ coding as well as C# coding here. Header file function ---------------------------- extern long int _cdecl ieee488_send (long int,char *,unsigned long,long int *); #define send(addr,s,status) ieee488_send(addr,(char *) (s),0xFFFF,(long int *) status) VC++ ---------- send(temp,info,&status); info is character pointer Status - int C# -- I have tried in the folowing ways ------------------------------------------------------ 1. [DllImport("IIEEE_32M")] public extern static int send(int address,string strCommand , ref int status); send(inGpibAddress, Command, ref inStatus); 2. [DllImport("IIEEE_32M")] public extern static int send(int address,string strCommand , out int status); send(inGpibAddress, Command, out inStatus); 3. [DllImport("IIEEE_32M")] public extern static int send(int address,[MarshalAs(UnmanagedType.LPStr)] string strCommand, out int status); send(inGpibAddress, Command, out inStatus); 4. [DllImport("IIEEE_32M")] public extern static int send(int address,[MarshalAs(UnmanagedType.LPStr)] string strCommand, intptr status); send(inGpibAddress, Command, out intptr inStatus); Thanks in Advance Thanks and Regards Madhu

    C# csharp c++ help performance question

  • CSimpleStringT::GetBuffer in C#
    M madhusri

    Hi all could you please anyone tell me what is the equivalent of CSimpleStringT::GetBuffer in C# Thanks and Regards Madhu

    C# csharp question

  • CSimpleStringT::GetBuffer equivalent in C#
    M madhusri

    Hi all could you please anyone tell me what is the equivalent of CSimpleStringT::GetBuffer in C# Thanks and Regards Madhu

    C / C++ / MFC csharp question

  • listbox - valuemember access
    M madhusri

    Stefan Troschütz wrote:

    for (int index = 0; index < listBox.Items.Count; index++) { PropertyInfo info = listBox.Items[index].GetType().GetProperty(listBox.ValueMember); object valuemember = info.GetValue(listBox.Items[index], null);}

    Stefan, thanks for the sample code. it helped me to get the valuemamber. Thanks and Regards Madhu

    C# help tutorial question
  • Login

  • Don't have an account? Register

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