BlueBSH's Q&A profile
Windows Forms User time out in Desktop Application
Hi, I want my user of desktop appliaction be logged out, if user do not press any key or click/move mouse for in last say 5minutes and be presented with a messagebox/login screen. basically i want to trap key events and mouse events at form level. I tried one logic having KeyPreview of form set to "true" and Form_KeyDwon can capture key down events on the form and on any control. The same way i want to capture mouse events wit ...Show All
Smart Device Development getting linking errors
I m trying to make a dll targetting Win Mobile Smartphone 2003. I am developing using embedded Visual C++ 4.0. Here i m using the sms api. I m quite new to this sort of programming. So to call the sms api, I m including <sms.h>. I am not able to find a way to add sms.lib as dependency, as we do in Visual Studio. I am not sure whether i have to do that in eMbedded Visual C++. The code is compiling, but it is giving following linking errors ...Show All
.NET Development Get connection string from app.config file
How do i read my connection string from app.config file I also know that connection string is saved in settings.settings, but i don't know how to get value from there either (I found info about this only for vb, not for c#) Here is the app.config file: < xml version="1.0" encoding="utf-8" > <configuration> <configSections> <sectionGroup name="userSettings" type=" ...Show All
Visual Studio Express Editions Random Letters
How do I get a Random Letter I think I need to first get a Random number, then have the number = a Letter i.e A=1, B=2 etc but how do I do this This might help: Dim str As String = "" Dim i, n As Integer Dim c As Char Dim rand As New Random For i = 0 To 9 ' Length of string required n = rand.Next(65, 65 + 26) ' A thru Z c = System.Convert.ToCh ...Show All
Visual Basic Help Me please
Hello guys, well i have some problems whit the IIS, first I installed the Windows 2003 server then the IIS and finally I downloaded de express editon of the Web Developer and isntall this. When I put www.localhost in the browser internet explorer, the browser show me a message that I attached at this mail. Another problem that I have, I was devloped a simple application in de web developer express edition beta 2, about webparts to understand thi ...Show All
.NET Development Method returning DataTable of a MBR object fails.
Hi, I have remoted a MBR object to the client using TCP channel. Now when a call is made to a method returning data table having large data, it gives following error. {"Underlying connection was closed: Either there was a fatal error on the server or client authentication failed"} Server Stack Trace "\r\nServer stack trace: \r\n at System.Runtime.Remoting.Channels.SocketHandler. ReadFromSocket (Byte[] buffer, Int32 o ...Show All
Windows Forms Clicking doesn't bring MDI windows to the front!
I have a MDI application that users generally will have a few windows open at any given time, and there is a bug where if you click on a window (Anyplace except a title bar) it won't bring that child to the front. Any ideas whats  ...Show All
SQL Server Keyboard not working (backspace and arrow keys) when viewing 2000 DTS packages from 2005 (backward compatibility)
I know my problem is not directly associated w/ SSIS, so please forgive the post here. I figured this would be the "most" appropriate place to post this challenge. We're attempting to edit a 2000 DTS package in Design mode from within the 2005 SQL Management Studio. To do this we downloaded/installed the following packages from the MS download site: Microsoft SQL Server 2000 DTS Designer Components Microsoft SQL Server 2005 Bac ...Show All
.NET Development How to make a copy of a list?
I wish to make a copy of a list, where the elements of the list are also copied, instead of just the references, so I can then change them without affecting the original elements. It seems a very simple thing, it should be like: MySecondList = MyFirstList.CopyAll(); but I cannot find it. Come to think of it, I don't know how to copy the elements one by one either if they aren't simple types. Strange, I never needed to do this before. ...Show All
Visual C# GDI+ Multi Thread
I am using GDI+ to draw to the graphics object when an OnPaint event occurs. However, if you draw lots of things, the form becomes unresponsive until all of the drawing is done. Is there anyway to put the OnPaint event in another thread, so the form can remain responsive while the painting occurs Try to create classes that contain the logic and create a IDrawable interface or something with a Draw( Graphics g ) method. Then y ...Show All
SQL Server SS2005 Replication - cannot drop subscriptions from publisher
I am executing sp_dropmergesubscription, but the rows are still in dbo.msmerge_subscriptions, and are still shown in the replication monitor as expired; the last synch dates were in april (expiration is set to 10 days). The 'expired subscription clean up' job appears to be running okay. I need to remove these subscriptions from the publisher as the subscribers are mobile devices, which sometimes are lost. I ...Show All
Visual Basic Problem with ActiveX control
Hello Everybody, my English is not very good, but I will try to explain my problem. I use Shickwave Flash Object in my project. Because this control don't have any mouse events like OnMove etc, so I create MyControl and use inherit. I want to change control's context menu on menu of my own. Public Class flash Inherits AxShockwaveFlashObjects.AxShockwaveFlash Public Const WM_RBUTTONDOWN = &H2 ...Show All
Visual Studio How to execute UnitTests from MSBuild?
Greetings! We are trying to setup an automated build framework using MSBuild. As part of the same, we want to integrate invoking the VS 2005 Automated Unit testing framework from within the MSBuild framework. So that after the build process we even have the Unit test report generated using the automated build framework.. Is there a straight forward way/target to accomplish the same Thanks in advance! Gaurav. I' ...Show All
Visual C++ Linker Error
I am writing a C++ Wrapper for the Java Access Bridge API, I am completely new to C++ and come from a Delphi background, I seem to be doing just dandy though except for what seems to be a simple problem that just requires the experience of a C++ mind :-) Here is my code: #include <windows.h> #include <winuser.h> public ref class JavaBridgeWrapper { // TODO: Add your metho ...Show All
Visual C++ help creating a .dbg file
I have read somewhere that I can use rebase to create a .dbg file from an existing .pdb. How exactly do I do this I am using Visual Studio Standard 2005. For those who are curious, I am trying to use a MinGW version of gdb to debug a Windows executable. To do that, I need symbols. I would request that you not ask me why I want to use gdb or try to disuade me unless it is just not possible. Thanks! ...Show All
