Valcom's Q&A profile
Visual C# How to select and focus at a process? and Hold down a key?
How to select and focus at a process and Hold down a key Hi i need to now how to holed down a key. To other programs windows... if i us SendKeys.Send i need to crate a for to send that constant. SendKeys.Send("{W}"); But i want to Hold down a key. How i do now and how to fockus att a process using System.Diagnostics; Process.GetProcesses(firefox.exe); Process[] firefoxProcess = ...... Plz help me... I noticed that if the process is minimized in the System Tray, that the 'MainWindowHandle' is 0, and also the 'MainWindowTitle' = "". The Id is valid, but if you try to call something such ...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
Visual Basic Blair Allen Stark
Here is the problem I am working on. It asks me to use the method CalculateCharges, but I don't fully understand how to do this or how it works. I would be grateful for any input. Lab Problem III A parking garage charges a $2.00 minimum fee to park for up to three hours. The garage charges an additional $0.50 per hour for each hour or part thereof in excess of three hours. The maximum charge for any given 24-hour period is $10.00. Assume that no car parks for longer than 24 hours at a time. Develop a console program that calculate and displays the charges for each customer who parked a car in this garage yesterday. ...Show All
Software Development for Windows Vista Dashed lines with InkOverlay
Hi, I am trying to set inkoverlay object's defaultdrawingattributes property with something that can draw a dashed line. I have a simple application that can draw shapes and I would like the user to be able to select the dashed line from a pallette of tools that I have created. When the user draws (strokes), the line will appear dotted/dashed. I have searched almost every forum and can't find anything! Help I am using the TablPC SDK (1.7) and C# (2005)... Thanks! Steve Steve, Instead of using InkOverlay, you might consider ...Show All
SQL Server Row and Cell Segurity
I am trying to implement row-security in SQL 2005 but i make a query to make a view CREATE VIEW vwVisibleLabels AS SELECT ID, Label.ToString() FROM tblUniqueLabel WITH (NOLOCK) WHERE ID IN --Classification (SELECT ID FROM tblUniqueLabelMarking WITH (NOLOCK) WHERE CategoryID = 1 AND IS_MEMBER(MarkingRoleName) = 1) AND --Compartments 1 = ALL(SELECT IS_MEMBER(MarkingRoleName) FROM tblUniqueLabelMarking WHERE CategoryID = 2 AND UniqueLabelID = tblUniqueLabel.ID) GO And the error is Msg 208, Level 16, S ...Show All
Windows Forms Checking if a directory exists.
Hi, I was just wondering if there is a quick way to check whether or not a specified directory exists. I'm having the user add a directory of his/her choice where reports will be stored, but want to default to a directory of MY choice if their given directory doesn't exist. Also, is there a way to create a directory (with code) if their direc ...Show All
Visual J# please help ?!
I am new at java... I have found this example for sending mail... import java.io.*; import javax.mail.*; import javax.mail.internet.*; import javax.activation.*; public class SendApp { public static void send(String smtpHost, int smtpPort, String from, String to, String subject, String content) &nbs ...Show All
Visual C# how to open a ur custom file extension in ur application
hi, i am developing an application in C#.For saving the state of an application i am using a custom file format.Now suppose a user using the application want to save the state of the application he can save it as "savedstate.abcd" where .abcd is the new extension to be supported by my application.Now when he double clicks on this saved file named "savedstate.abcd" my application will open up and the objects being used in my application will be instantiated with the saved data. i have done addition in the registry so than when a user double clicks file with my extension ".abcd" the application will start.but how do i read the application stat ...Show All
Windows Forms Consistent form appearance from multiple developers
My software development team is developing an inventory control application. We will develop the data, business object and web services layers internally. We will outsource the Windows user interface development. This will be a Windows MDI application built on the .net framework 2.0. We are planning to outsource the UI development to several companies so that they can work on the various (Purchase Order, Receiving, Order Picking, Delivery, Customer, Report, etc.) screens simultaneously. The UI development companies will create, read, update and delete data using the web services layer. I want the screens to have a consistent look and feel ...Show All
Visual J# Microsoft Java++, Sun Java, Redhat Java
I need to develope in Microsoft Java++. Can I port to SUN Unix, RedHat Linux, SCO Unix. If it is possible to port, will the application run the same in all the platfoms. Can anyone please give me advice Although I am not a Microsoft employee, I can tell you this: Microsoft J++ and J# are NOT Java. They have similar syntax, and allow you to use some of the java core system libraries ( for instance in J# and I believe in J++ as well, you can use java.util.Hashtable etc.) You will need to check, but I think that these libraries that are provided in J# and J++ are compatible with Java 1.1.2 or something around that. T ...Show All
SQL Server Standby Restore
I'm setting up log shipping and am running into an issue with applying the transactions logs. This is my 5th server that I'm setting up and I take a backup of the source database, restore it with replace on the standby server. Then I take a log backup, copy it over and try and restore on the standby server, but the LSN#'s are off. It tells me it's too late for the log and try an earlier.. The timestamp on my backup is 11:43 and my translog was at noon... I ran a checkpoint on the source database, but that didn't seem to do anything. What am I missing Thanks Susan I know this wi ...Show All
Windows Forms app.config file and deployment
Hello, I have a windowsform app. I have included the database string connection in the app.config file. It works fine on the developer box, but when I try to deploy, the application cannot find the connection string. Is there something I have to do with this file when deploying. Regards Peter Peter, your suggestion to use <app_name>.exe.config fixed the issue I was having. Thanks. ...Show All
Visual C++ How can I get the CheckedListBox for a Com project?
Hi, I'm developing a in process COM server to add prooperty pages to Active Directory. i'm using V.S. 2005's C++ with only the standard library. When I create the GUI resource file for the property page, there is only standard listbox availble in the Toolbox. I know that checkedListBox is availble if I were developing a window application using VC++ from the toolbox. Does anyone know how I can get that added to my toolbox for this project Thanks. Create a normal Listbox and subclass the ListBox with CCheckListBox. There is no plain control for a checked listbox. AFAIK the listbox style must be owner drawn variable. ...Show All
.NET Development Int32 - how related to ValueType?
Hi! I am looking at System.Int32, for example, and don't understand how it's related to System.ValueType . Can someone explain how ValueTypes are implemented as structs in some detail, or refer me to a good explanation on the Web Thx, Jess C# Online.NET http://www.csharp-online.net/ the answer is in the object browser. if your going to search for INT32 you'l see that one of its base class is ValueType. CTRL + W + J = Object Browser (VS2005) ...Show All
Windows Forms paste event?
I have a "paste" button on a toolbar above a richtextbox object. When I click it, I can test to see if the clipboard format is one I am expecting and then do the paste (I don't want the user to be able to paste in graphics, only formatted text). How do I do the same check if someone clicks in the richtextbox and hits " ...Show All
