I would like to have the grid automatically add a new row when the user presses "Tab" from the last cell in the last row of the grid. I have set AllowUserAddRows property to "false" Thanks, Sri
sri_0099
Posts
-
Automatically add a new row when the user presses "Tab" -
IE show up on Top of parentFormHello Eddy, Yes, i set the parent form as property. And before closing childform i called prentform.activate() method. Regards, Sri
-
IE show up on Top of parentFormHello All, When internet explorer open and have it maximized on the screen, and if then goback to my application and then click on menuitem. Which popups a child form. Upon closing child form, parent form loosing its focus and IE show uop on Top of my application. How i can i activate my Application when any child form closed. Thanks In Advance. Sri
-
Windows Crypto API is not working on 64 bitThanks for the help. I had compiled all the solution for 32 bit. Now it is working great. Thanks, Sri
-
Windows Crypto API is not working on 64 bitHello All, My application is using CryptGenRandom() API to get random numbers. This API is working in all 32-bit computers. I recently installed my application in windows-7 64-bit computer. On this machine CryptGenRandom() API is throwing below error. Problem Event Name: APPCRASH Application Timestamp: 4b84b933 Fault Module Name: StackHash_6299 Fault Module Version: 0.0.0.0 Fault Module Timestamp: 00000000 Exception Code: c0000005 Exception Offset: 000007ff005880cb OS Version: 6.1.7600.2.0.0.256.48 Locale ID: 1033 Additional Information 1: 6299 Additional Information 2: 6299b6a70d20c6215a02ce0a4291f9cc Additional Information 3: 7130 Additional Information 4: 71302fa4a91436747a963f67bb2f095e Sample Code: ReDim bChallengeArray(127) lres = CryptGenRandom(lhcsp, 128, bChallengeArray(0)) lres = CryptEncrypt(lhkey, 0, 1, 0, bCryptBufferArray(0), ldatalength, lBufferLength) Please don't ask me to use managed code, because this is maintanance project client will not agree to change the code. If anybody have any idea, please let me know the solution. Thnaks in advance. Sri
modified on Friday, February 26, 2010 5:16 AM
-
XSD class generation toolHello CBadal, Do you have any luck on generating .cs files for the schemas that are imported. If so can you please help me how to do. Please assist me. Thanks, Sri
-
System.Xml.Serialization.XmlElementAttribute as a parameter to WebMethodhi, I am trying to test a webservice using a proxy class, but i cannot understand what to pass as a parameter to the methods in my class. They all take a (System.Xml.Serialization.XmlElementAttribute([namespace]) ref class classobject) - can someone please explain? do i have to read the appropriate xml request and somehow pass it to the method? your help would be greatly appreciated. thanks
-
WebService using WSDL and XSDsHello, We have given WSDL and XSD's and asked to create web service, binding, etc in .NET environment. Can anyone please help me, how to create webservice based on WSDL and XSDs. What we did is, 1. created .cs file from multiple XSD's - XSD.EXE 2. created proxy class of wsdl file using wsdl.exe utility. what to do next for the web service creation. Thanks, Sri
-
How can I generate multiple classes from xsd’s with common includes?I have a few nice xsd files which I want to convert to classes using xsd.exe. All the xsd's have the same includes, like this: When I generate a class for each xsd the types declared in these files are duplicated for each original xsd. Is there any way not to duplicate enums,clasess and etc. Please assist me. Regard, Sri
-
How to know print given to network printer is successThanks Dave, My application is printing checks. Before printing check number is saved to database. If print fails at any reason (Paper Jam,Paper Out,Not connected...etc) i nedd to update database with default check number "000000". Thats why i need print staus of check. Dave, Can you please give me idea to get the status.Please Thanks, Sri
-
How to know print given to network printer is successHello All, I have called PrintDocument.Print() method to print given document. How to check given print is success or not. Regards, Sri
-
Unable to catch print exceptionsBob, No luck with Try/Catch. With PrintDoc.Print() it is adding document in queue. where as my old system not adding doc to printer and is shoing error like network error. Really i want solution for this..if printer does not return any vaklue then my code goes wrong.Please assist me. Regards, Sr
-
Reference dlls in sub foldersNathan, Use System.AppDomain.CurrentDomain.BaseDirectory to get root directory where EXE is. from rootdirectory you can fetch directories inside root directory. Regards, Sr
-
Need help on which function/method to use [SOLVED]Vijay, use contains method like.. If name.contains("") 'your code Hope it helps
-
Unable to catch print exceptionsHello All, I am new to .NET. Can any body please tell me how to catch all possible error that PrintDocument.Print() method returns!!! I have installed a dummy printer on my machine..and tried to give print using PrintDocument.Print() method, but it is not giving any error. When i tried with an older application(which is written in C,C++)..it is throwing an error saying Network printer error. How can i catch same error using VB.NET 2005. Thanks in advance. Regards, Sr
-
Event and delegate from C# to VB.NETThanks Navneeth, Can you please expline how to do this. I am new to vb.net. Please.
-
Event and delegate from C# to VB.NETHi, i have below short code in C# public delegate void MsgEventHandler(object sender, ChatEventArgs e); public static event MsgEventHandler ChatEvent; private void Message(ChatEventArgs e) { MsgEventHandler temp = ChatEvent; if (temp != null) { foreach (MsgEventHandler handler in temp.GetInvocationList()) { handler.BeginInvoke(this, e, new AsyncCallback(EndAsync), null); } } } and when we translate in vb.NET Public Delegate Sub MsgEventHandler(ByVal sender As Object, ByVal e As ChatEventArgs) Public Shared Event ChatEvent As MsgEventHandler Private Sub EmergencyMessage(ByVal e As ChatEventArgs) Dim temp As MsgEventHandler = ChatEvent If temp <> Nothing Then For Each handler As MsgEventHandler In temp.GetInvocationList() handler.BeginInvoke(Me, e, New AsyncCallback(AddressOf EndAsync), Nothing) Next End If End Sub but i have error, Saying ChatEvent is an event and can not be called directly.Use a 'Raise Event' statement to raise an event. can u help me to figure it out from c# to vb.net? thank you regards Sri
-
Event and delegate from C# to VB.NETHi, i have below short code in C# public delegate void MsgEventHandler(object sender, ChatEventArgs e); public static event MsgEventHandler ChatEvent; private void Message(ChatEventArgs e) { MsgEventHandler temp = ChatEvent; if (temp != null) { foreach (MsgEventHandler handler in temp.GetInvocationList()) { handler.BeginInvoke(this, e, new AsyncCallback(EndAsync), null); } } } and when we translate in vb.NET Public Delegate Sub MsgEventHandler(ByVal sender As Object, ByVal e As ChatEventArgs) Public Shared Event ChatEvent As MsgEventHandler Private Sub EmergencyMessage(ByVal e As ChatEventArgs) Dim temp As MsgEventHandler = ChatEvent If temp <> Nothing Then For Each handler As MsgEventHandler In temp.GetInvocationList() handler.BeginInvoke(Me, e, New AsyncCallback(AddressOf EndAsync), Nothing) Next End If End Sub but i have error, Saying ChatEvent is an event and can not be called directly.Use a 'Raise Event' statement to raise an event. can u help me to figure it out from c# to vb.net? thank you regards Sri
-
Show NotificationThanks Richard. But the article is for standerd message box. I have created my own message box (Form), for which i need to set either "ServiceNotification" or "DefaultDesktopOnly". I am not able to find, how to set those properties. Please help me. Thanks
-
Show NotificationThanks Richard, I am developing custom MessageBox. When i call it from winservice it is thrwoing error. It says set servicenotification. Richard, How to set "ServiceNotification" propert of custom messagebox. Thanks