mtsman's Q&A profile
Smart Device Development encryption on WM 5
Hi all, I'm developing application that Send/Receive data to/from the server. I need to encrypt this data via AES encryption. my questions: 1. do WM5 CF2 app supports this kind of encryption 2. I didn’t deal with encryption in the past, where should I begin any ides, links, thoughts will be great J Oren. Yes CF2 supports AES. You may use System.Security.Cryptography.RijndaelManaged class to deal with AES encryption/decryption. See this examples. http://www.c-sharpcorner.com/Code/2004/July/CryptographyInDotNET.asp http://www.osix.net/modules/article/ id=411 Examples are target ...Show All
Windows Forms How to upload file using WebBrowser class?
I want to upload file prorammatically using WebBrowser class WebBrowser.Visible property is set to false, so user cannot see the pages loaded to WebBrowser the code is: private void LoadUploadPageBtn_Click(object sender, EventArgs e) { FileStream fs = new FileStream(Environment.CurrentDirectory + "\\upload_page.htm", FileMode.Open, FileAccess.Read); byte[] buffer = new byte[fs.Length]; fs.Read(buffer, 0, buffer.Length); fs.Close(); this.webBrowser1.DocumentText = Encoding.ASCII.GetString(buffer); } upload_page.htm page is: <htm ...Show All
Visual Studio Tools for Office How do I notice when the User change the Date in Outlook Calendar
Is there any Event that raise shuold I use any Inspector I have implemented an Outlook AddIn and need to know when the User changed the Outlook-Date, I want to be able to refresh my Data. How can I find it out Selection Change event of the explorer object gets fired when the date changes. You can maintain a reference to the explorer and handle this event. The selection change event gets fired for many other things too so you may need to filter out appropriately. Thanks, Pallavi ...Show All
Software Development for Windows Vista Two questions with WorkflowRuntimeService
Hi all, I'm developping a host program(web server) with WF Beta2.2 version.I have two questions. 1.I want to stop workflowRuntime when the web server is stopped.I used SqlWorkflowPersistenceService.The running workflowInstance can be normally unloaded if i'm not use SqlTrackingService,otherwise it can't be unloaded and system event log will be marked event id 1013 which means that a process serving application pool 'gh' exceeded time limits during shut down, the process id was '2380'.Why it happens 2.I'm developping a custom persistence service with sqlserver2005.but i don't know how to use SaveCompletedContextActivity(Activit ...Show All
Visual Studio Express Editions How to Find Child Nodes in a TreeView Control
This will hopefully be a simple question... I have a treeview control (Treeview1) that gets filled programmatically with different numbers of nodes and child nodes. I am trying to find out how many child nodes one particular node has and what the text of these child nodes are. I know the parent node's name is "Drives" and that each of the child nodes under this node will be a drive letter followed by a colon and backslash (such as C:\ or D:\). Is there a way to find how many of these child nodes exist and what their names are I'm not sure if there's an easy way to use Nodes.Find, but it seems to be leading me nowhere. ...Show All
Windows Forms UserControl with other controls inside (URGENT)
Hi all i just have a question!! i’m doing my own usercontrol, and i have set a few controls inside it (a few buttons and some textboxes ) and i place my user controls inside a form. but my problem is in the code i can access the controls inside of my usercontrol using the UserControl1.Controls Property, is there anyway to no have access to those controls inside if yes How anysample !!! thks JSB Use a foreach bucle for obtain the controls into the usercontrol. You can specify a determinate type (in this case TexBox ): After, you can add this control into a ArrayList for most fa ...Show All
Visual Studio Express Editions How do i make a textbox that uses different forecolors?
I would like to make a textbox that uses a color for a word and uses another color for other words. is there any way to do this Oh thanks, it works the only problem is that the text flickers is there a way to prevent this from happening ...Show All
SQL Server Beginner T-SQL Question
I'd like to query my Tasks and TaskActivity Tables to return the following results: Case Id Estimated Hours Total Hours Remaining Hours Because I'm an SQL novice, I've had to resort to a hack of creating three different views to get the results I want: I'm sure there's a better way (i.e. a single, well-formed query) but when I try that my numbers are all wrong. Here's my hack to get the correct results: First I have a view to get my Estimated Hours and CaseId from my TASKS table: SELECT COALESCE (SUM(EstHrs), 0.00) AS EstHrs, CaseId FROM dbo.Tasks GROUP BY CaseId Then I have a view to get my Total Hours and CaseId from my TASKACTIVITES table ...Show All
Visual FoxPro small test on transaction atomicity
Need help with small test on table in database with transaction. Could somebody show state of table after execution this code: CLOSE ALL CLOSE DATABASES OPEN DATABASE "c:\ path to database\data1.dbc" SHARED BEGIN TRANSACTION UPDATE data1! table 1 SET name = 'BBBB BBBB BBBB BBBB BBBB' = Messagebox ('END TRANSACTION') END TRANSACTION if in table1 before execution was 500K records with value "AAAA" and VFP process was killed after click OK in messagebox and before all trasaction bufers was stored in dbf file (2-3 seconds after click OK) I interested in "select count(*), name from dat ...Show All
Microsoft ISV Community Center Forums Type Mismatch
Any genius’ out there that can help me with this one I'm using Access 2002 on WinXP. What I have is a document ID number system. The ID can be formatted in the following ways: 000.000 000.000.00 000.000.0000 What I’m running into is when the DLookup finds a match that is greater than 7 characters I get a type mismatch error. I thought that it may be looking at it as a number, so I’ve added a line of code that converts it back into a string if that was the case. I still get the error either way. Here’s the code: Private Sub cmbCatNo_AfterUpdate() On Error GoTo Err_cmbCatNo_AfterUpdate Dim strCatNo As String Dim strSecNo As S ...Show All
SQL Server Regarding MergeReplication-Tutorial
Hi Forum-Members, I was doing the Step by step tutorial "Developing a SQL Mobile Application with Visual Studio 2005 and SQL Server 2005". Link: http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnppcgen/html/med302_msdn_sql_mobile.asp Doing it on Windows XP (as required by the tutorial) worked fine for me, doing it on a Windows Server 2003 installation failed, as the client could not connect to the SQL Server database. Does anyone have experience stepping through the tutorial on a Windows Server 2003 machine Best Regards, Tobias Yes you are right! IUSR_MachineName requires READ Access on sn ...Show All
Visual C++ having problem in loading a resource dll
<bk pradeep@discussions.microsoft.com> wrote in message news:8d6cef00-7b72-4588-a50e-955fef9f0ddc@discussions.microsoft.com > Iam new to win32 programming. I have a resouce only dll with some > dialogs and bitmaps. Now I need to use this resource dll from my > win32 dll. I have tried using loadlibrary and loadresouce but somehow > its failing. can you kindly provide me with code snippets or refere > to some resource to achieve this. To load bitmaps, you use LoadBitmap or, preferably, LoadImage. Both take an HINSTANCE parameter that indicates which module's resourc ...Show All
Visual C# How can I use API GetClassName?
The belowing code does now work. [ DllImport ( "user32.dll" , SetLastError = true )] internal static extern int GetClassName( IntPtr hWnd, ref string lpClassName, int nMaxCount); private void Form1_Shown( object sender, EventArgs e) { string className = "" ; GetClassName( this .Handle, ref className, 255); } Can anyone help me how to fix it mohammad Mir mostafa wrote: internal static extern int GetClassName( IntPtr hWnd, ref string lpClassName, int nMaxCount); Make it internal static extern int GetClassName( IntPtr ...Show All
SQL Server Connect SQL server Over Internet
I'm going to write an application (VB.Net) to connect Sql Server 2005 over the internet, but i have no idea on this. Can some one give me some ideas Thanks you can open up a port, but I wouldnt recommend this. you should build data objects that are transported via web services or remoting objects. I highly recommend lhotka's CSLA. His new book should be out in April. www.lhotka.net ...Show All
Visual Studio 2008 (Pre-release) Select multiple Items in a Listview from codebehind
Hi all, i have a question about ListView. I want to select multiple items in the ListView from codebehind, but it selects only the last item. Here is my sourcecode: public ObservableCollection <Person. PersonObject > SelectedObjects { get { return ( ObservableCollection <Person. PersonObject >)lv.SelectedItems; } set { IEnumerator ie = value .GetEnumerator(); while (ie.MoveNext()) { lv.SelectedItem = ie.Current; } } } lv ist the ListView with a databinding to an ObservableCollection of Person items. Has anyone a solution for me Herbert ...Show All
