Gurpreet GIll's Q&A profile
Windows Forms sendKeys raised SecurityException
I'm looking for a way to send the enter key to a textbox when I click on another button. I found that sendKeys seems to be my solution. However, I set the focus to the target textbox and called sendKeys in my button click event handler. It will raise an securityexception. Please advise. Thanks! SendKeys partially simulates what you ask. Seeing the UnmanagedCode exception is something the enter-key wouldn't generate. To resolve the issue, you must grant the assembly or code the appropriate permission. If this is not possible in your environment, there are alternative approaches. Another alternative might be to derive a TextBox and ...Show All
Visual Basic Need FileSystemWatcher Advice
I am creating a “sweep” app for my FTP server (local, in my office, app to live on same computer) that will watch for new folders being uploaded and then move them to a pre-designated location. I am including in this app, a timed comparison check on the new folder size to make sure that the folder is fully uploaded before moving it. I assumed I would have the FileSystemWatcher on the same timed event, but apparently (I think) it is not behaving correctly because it is being turned on and off with the timer. I changed the FileSystemWatcher to load with the form, and be running constantly, and checked my CPU usage with the “W ...Show All
Windows Forms Multi-screen/display Cofiguration?
How I can make a Aplication for a multi-screen cofig with WindowsForms and c#. Example: 2 forms in 2 difrents screens/display Use the Screens class to get the secondary screens. Then simply use the bounds and location to put a new form over on the other screen. Screens are simply views onto a single infinite desktop region. ...Show All
Smart Device Development VS2005 Compiler Bug?
I have some source code that does DES, 3DES encryption decryption based on the algorithm. A lot of bit operations. The same code, with the same testing program, yields inconsistent results: - Compiled under EVC4 for PPC2003 and SP2003, test passed. - Compiled under VS2005 for Win32 desktop platform (UNICODE defined), test passed. - Compiled under VS2005 for any Windows Mobile platform (PPC2003, PPC5.0, SP2003, SP5.0), test failed. Any idea how to tackle this Is there any service pack for VS2005 device compilers Thanks, Lao K Finally found the culprit line but still thought this might be a bug in the compiler... Original line: ...Show All
.NET Development Strange construct in template code
When creating an a new ASP.NET Web Service project in VS2005 Beta 2, I am curious about the template generating the 'Public Sub Service' procedure within the genrated class (as demonstrated below). Can anyone enlighten me as to what this procedure is designed for and what, if anything I should be doing with it <WebService( Namespace :="http://tempuri.org/")> _ <WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)> _ Public Class Service Inherits System.Web.Services.WebService Public Sub Service() End ...Show All
Smart Device Development Visual C++ Express and *.ocx
I need to create a "signature" .ocx file. RSView will link to an ActiveX .ocx to run on a WinCE 4.10 box, but has to set up the linking on XP. I expect it doesn't need a "matching" COM server, just a stub with the right "signature" to read a table or variables passed. Embedded C++ will create the .ocx for use, but I've not gotten one built for linking. Can Visual C++ Express do this dave Visual C++ express edition is meant only for desktop development. You can not create an application for devices. Are you creating OCX for for desktop ...Show All
Visual C++ dialogs
hello, i just started programming using this software and i was wondering if anyone could help me. given i have 2 dialogs. how do i add the 2nd dialog class as a variable to the first dialog class thanks! First, you need to #include the header for the second class in the cpp file of the second dialog. Then you can just create instances as you would any other variable. That's assuming you only want to create a variable within a function. If you want a member variable, you need to put the #include in the header file for the first dialog. ...Show All
Visual Basic how can I update my mdb table through a datagrid??
Hi everybody ,how can I update row (s) in my Access Database through a Vb.net form has a datagrid,I used the following code to add rows to my tables. So,can some one helpe me updating it. I spent 2 days reading many questions in this forum and in others' which was under this title (updating row (s) in datagrid),but I faild to get the suitable answer. This is my code of the datagrid form in vb.net,which enable me to add data ,how can I create a code to update these row(s). Private Sub Form8_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load Dim strcon As String Try strcon = " ...Show All
.NET Development Install .Net 2.0 runtime on web hotel?
Hello all! Sorry if I'm posting this in the wrong category, but I didn't find a more apropriate one. I work for a small ISV / Hosting company. We have a web hotel with 50+ .Net 1.1 webs running on a Win2000 Datacenter box. I want to install the .Net 2.0 runtime on the server, but I was wondering about possible side effects. Will all webs automatically start using the 2.0 runtime Is there anything in the .Net 2.0 runtime that will break our applications Thanks in advance! You can have both of runtimes installed on the same machine, it should be no problem. Your webs will not aut ...Show All
Visual C++ c++ compilation strategy
Well .. this is probably not specific to C++ language. It is a more general question on the requirements of including headers, etc, and so sort of basic, of compilers. I have been looking at translation units and linking, etc. I learnt that there can't be duplicate identifiers in all of the translation units combined. If there are duplicates, it's a linking error. It can be avoided by using extern keyword for all the duplicate declarations of the identifier. Each .cpp file that is included in the project is compiled separately and so results in a compilation unit. The compiler requires that before the code is compiled, the identifier must ha ...Show All
Visual Studio 2008 (Pre-release) WPF and non Microsoft OSes...
Hi, We just started to make a web / win application with WPF. I know that you've to install WinFX on Windows XP to see the web application, but what about the non Microsoft OSes. Will be there a player like "Flash Player" or something else for this OSes There are no available runtimes of WPF/E available yet. We'll make sure to update this forum when the first preview version of it is available. -Arik ...Show All
SQL Server SSIS Tutorial Lesson 1: Debug Error
I have followed the instructions for SSIS Lesson 1 exactly but i get these 4 errors when I come to debug at the "Lookup Date Key" lookup transformation. Last step in the lesson. 1. [Lookup Date Key [66]] Error: Row yielded no match during lookup. 2. [Lookup Date Key [66]] Error: The "component "Lookup Date Key" (66)" failed because error code 0xC020901E occurred, and the error row disposition on "output "Lookup Output" (68)" specifies failure on error. An error occurred on the specified object of the specified component. 3. [DTS.Pipeline] Error: The ProcessInput method on component "Lookup Date Key" (66) failed with error code 0xC0209029. Th ...Show All
Visual Studio 2008 (Pre-release) Identity Mapping and projection queries
How will identity mapping work with projection queries If I execute the following two queries: var one = from customer in db.Customers where customer.CustomerID == "BONAP" select new {customer.CompanyName}; ObjectDumper .Write(one); var two = from order in db.Orders where order. Customer .CustomerID == "BONAP" ...Show All
Windows Forms Is the terrarium dead?
Hi, I need help. I am a newbe to terrarium and it looks interesting. But All what I can read on the internet concerning Terrarium looks a long time ago. No recent post I mean, or at the farm... or I look at the wrong place. (Where is everybody ) I see 10 peers, All LED's are green, but I never receive a creature from other peers. I can't introduce my own creature, I get a message "Terrarium is experience some server problems. Please try again later.". I connect to http://www.terrariumgame.net/Terrarium, it is the only server I know. Are their other servers ...Show All
Software Development for Windows Vista Tutorial - Lab 4 Ex 1 Tk 6 St 15 - dragging to set next state
FYI - When I executed this step, the designer did not change the existing SetState activity. It added a new one. What version of the Tutorials are you using Beta 2.2 When you executed this step, did you have a OrderCompletedState in your "TargetState" in your property ...Show All
