PetBel's Q&A profile
Smart Device Development Data Encryption from Win Mob 5.0 Device to a Webservice
How do I encrypt data that is being synchronized from a handheld device via a webservice. My app is created with VS2005 on CF2.0 and the web service is running on Windows Server 2003... is there something like SSL for that can be used because we are sending health data to our synch server... TIA The CF v2 includes implementation for the System.Security namespace, so you can encription data in the web service on both ends. ...Show All
.NET Development Slow connection - Operation timed out
I have a application written in C# which connects to a web service thorugh https, sends a SOAP envelope and get's a reply. My problem is that during the file transmision the application locks(freezes) 'till I get some king of reply and then displays the results. That's my first problem and the second would be that if the connection is slow I get a reply saying that the operation timed out no matter if a set or not a timeout value for the proxy. No I don't use an asyncronous method for communication. I see that the cursor is moving down in my textbox by drawing a vertical line, but nothing is beei ...Show All
.NET Development .NET Framework - hotfix. Can I discard the original Framework?
I don't know where else to post this, but I just received an automated update hotfix for my .Net Framework that is 1,114 megs...this is in addition to the original .Net Framework that is also 1,114 megs. That's taking up too much of my disk space. I'd like to remove one of them if I can, but I don't know anything about the pros and the cons. Can I just remove the original and use the hotfix in it's place Thanks, Paul The update was pushed to you via Windows Update because it was rated as an Important security update. In general you don't want to disable accepting updates since it will leave your system vulnerable to attacks ...Show All
Windows Forms UnHendleException?
Sometimes i receive UnHendleException and cause the application to crash, but doesn't crash at the point the exception happened. to find that point i sat up Exceptions to*space space*into debugger in Exception dialog ( via main menu --> Debug/Exceptions/Break into debugger ). then when i run the application, receive a lot of exceptions like following and must&nb ...Show All
Windows Forms populating grid on the fly
hi friends am trying to populate data grid on the fly in button's click event. my sample code is SqlCommand myCommand = new SqlCommand ( "select * from task" ); myCommand.Connection = conn; myCommand.ExecuteNonQuery(); grdTask.DataSource = myCommand; grdTask.Refresh(); this is not loading any data or returning any error any ideas . am using VS 2005 and C# Thanks 1. You can't bind directly to a SqlCommand. You need to load the data into memory first (DataSet). 2. The ExecuteNonQuery method is to run Update, Insert, and Delete queries, that don't return any result records. For Select statements, you need some sort of Re ...Show All
.NET Development Which node was selected?
Consider the following XML fragment... <channel> ... <item> <title>John</title> ... </item> <item> <title>Jane</title> ... </item> </channel> When the file is loaded into the TreeView control and a <title> node is selected I have no idea how to determine how to identify which parent the <title> actually descends from. The TreeNode.Parent property retu ...Show All
Visual C++ VS2005 and function GetProcessMemoryInfo
Hello All, I had some old code that ran perfectly in VS 6.0 and used the function GetProcessMemoryInfo located in psapi.h and paspi.lib. This was on a 32 bit machine. I have a new computer which has the EM64T technology from intel. I have installed win XP 64 bit and VS 2005 Beta Version on this machine. I am trying to get my application to complie and run as a 64 bit application. The rest of the code complies and links just fine. However, the code is unable to link to the GetProcessMemoryInfo function in psapi.lib. I know that there are 3 versions of psapi.lib currently in my system in the following folders Program Files(x86)\visual stu ...Show All
Visual C# Raise an event from a User Control.
I created a user control, let's just say this user control "Simpsons". "Simpsons" control has some other controls on it, let's call them "Homer", "Marge" and "Bart". "Simpsons" should raise a "Click" event, whether the user clicks "Simpsons" itself or "Homer" or "Marge". How can I achieve this Thank you for your help! P.S : The names of my controls are NOT actually "Simpsons","Homer","Marge" or "Bart." :-) It had written an article to do this long back. You can read it up. BTW: I am not sure if the sample code will work as-is since it was written in .NET v1.0 Beta2 [ http://www.mastercsharp.co ...Show All
Visual Studio Tools for Office Make smart tag recognizer stop recognizing text after surrounded by XML tags?
Hello, I am using Smart Tags to replace a regular expression string, say xyz, with the following: <bill>xyz</bill> (i.e. not the string literal "<bill>" and "</bill>", but actual XML tags using InsertXML method ). This works fine, but the only problem I have is once its replaced, the new result "<bill>xyz</bill>" still has the smart tag underline beneath it, so the user can do this recursively. Once the string has been replaced, I no longer want it to be recognized! How can I accomplish this I tried using the Zero-width positive lookahead assertion grou ...Show All
Visual C# Executing a method of a class as soon as the class is reffered!
Hi, It would be great if someone could provide me a solution to my problem. I am creating a class ( say the class is named as Checkconnection.cs) that would check if my system is connected to the internet. I need to continously check for an internet connection and if there is a connection I need to carry out the required operation. Now imagine a third party is using my class, Checkconnection.cs in another application (say HisApplication),and lets say he has written the code as obj.Isconnectedtointernet(); it will check for the internet connection only when it encounters the code "obj.Isconnectedtointernet();". My problem is tha ...Show All
.NET Development Help declaring Configuration converters
All these msdn2 examples show standard and custom config converters. They show how to decorate props with them in code. When they show how to declare the converters directly in the config file section, all the examples show an undefined, not commented and ASFAIK undocumented ConfigurationConverters . This seems to be a collection of some sort. Where is it defined What items are in it Why is it declared in a comma delimited manner where the assembly type goes in the section declaration Where is that syntax defined < xml version="1.0" encoding="utf-8" > <configuration> <configSections> <secti ...Show All
Visual Studio 2008 (Pre-release) Can I download a web page by XAML
Hello, everyone! Using C#, I can get the html code of a web page. It is easy. I wonder whether I can do this by XAML! If you know this, plz tell me. Thank you! You can use a Frame element and set its Source attribute <Frame Source="http://msdn.microsoft.com" /> This is documented here: http://windowssdk.msdn.microsoft.com/library/default.asp url=/library/en-us/cpref30/html/T_System_Windows_Controls_Frame.asp ...Show All
Windows Forms Custom Control issue
Hi Everyone! I’ve a tricky question. I'm creating a new control, this new control will inherits "UserControl" or maybe "Panel". And in the new class i will have two others private control. a textBox and a Combobox. Now to access the Combobox private member I’ll have to create a property that will give accessibility to this control and the same thing for the TextBox. Then to point to the Combobox inside the new class I’ll have to write something like. Me.MyNewControlClass.MyCombobox.SelectedValue = AValue to access the Combobox and Me.MyNewControlClass.MyTextBox.Text = "Hello!" to access the TextBox. What I’ll like to have is a way to point t ...Show All
.NET Development Input string was not in a correct format
somebody, please could tell me where is mi mistake in this problem I don't understand why is trying to change from string to Int32.. here's the error I am getting.. Any ideas , suggestions thanks in advance Exception Details: System.FormatException: Input string was not in a correct format. Source Error: Line 103: objComm.Parameters.Add(parameterPosition) Line 104: Line 105: objComm.ExecuteNonQuery() 'Execute the UPDATE query Line 106: Line 107: objConn.Close() 'Close the connection Stack Trace: [FormatException: Input string was not in a correct format.] System.Number.StringToNumber(Strin ...Show All
Visual Studio Express Editions How do I change the print margins?
Visual Basic 2005 Express Edition: My application needs to print out a page.. How do I change the margins e.MarginBounds = 50 <--- Property e.MarginBounds is Read Only ...Show All
