Mahmoud Gourar's Q&A profile
Visual Basic Focus not setting on text box
I have a sub that goes off when a tab selection is changed. The only part of it that doesn't seem to work right is the part that sets the focus on the text box. It seem to be a trivial thing to do but I can't seem to get it to work. I have other focus objects which work in other places but this one doesn't seem to want to work. I know the Text boxes are correct and do not get any errors. I have walked though the code in debug mode and and it steps through the lines one by one. It even executes the Focus line but returns false for a value. Anyone have an idea why Here is the code: Private Sub TabControl_Selected( ByVal sender As System.Object, ByVal e As System.Windows.Forms.TabControlEventAr ...Show All
Windows Forms C# namespace...
Hi, i'm writing a shell extension in c# that will add two menu's to the right-click menu of explorer. Here is the problem. If i select one file and use the standard OPEN context menu all is well, but if i select two or more files and use the standard OPEN context menu it seems to want to run through the code for MY created menu. Here is the code in question: int IContextMenu.QueryContextMenu(uint hmenu,uint iMenu, int idCmdFirst,int idCmdLast,uint uFlags) { // The first id to use (should be 1) int id = 1; if ((uFlags & 0xf) == 0 || (uFlags & (uint)CMF.CMF_EXPLORE) != 0) { // Create a new Menu Item to add to the context menu MENUITEMINFO mii = new MENUITEMINFO(); mii.cbSize = 48; mii.fMas ...Show All
Windows Search Technologies Ol desktop search options in control panel
I just opened the control panel, saw a desktop search item and opened it. To my surprise it is from the OLD (2.6.5) version. Looks like somehting went wrong with the uninstall. Where is the cpl file located so I can remove it ...Show All
Visual C# enumerate the list of services associated with a Process in C#
hi everyone i'm looking for a way to display the service(s) associated with a process (eg, services associated with svchost.exe). Searching the net i found that "QueryServiceStatusEx" is the way to go, i looked in MSDN but because i have very little Win32 API experience i got lost in their example and im struggling implementing it in my C# project. can anyone please give me a head start a code example would be great. Thank you ...Show All
Windows Forms Possibility of Windows authentication in Windows application
Hi, I have developed Windows form application( C#). I need to authenticate user using Windows Authentication mode. i.e When a user tries to access the developed Windows form application , the windows authentication log on screen should pop up asking for the user credentials ( user name , user password, domain). Our requirement is to use the default windows logon screen which generally pops up to get the user credential instead of the custom developed logon screen. This is similar to Windows authentication in ASP.Net but for Windows form application , Is it possible to authenticate user using Windows authentication mode If so how Hi I have the same problem. Though I have n't found a solution yet , my plan is to check ...Show All
Visual C++ 1.#INF00
When I divide two float values sometimes I get 1.#INF00. Does anyone know what this means, infinity I seem to get it sometimes when subtracting 2 float values, but that makes no sense. Does anyone know a fix. Thank You Yes, that's infinity, more precise positive infinite (or course negative infinite has a - in front). You get infinity when the result of an operation falls outside of the range supported for the specific data type. In the case of float the range is aprox. -3.4E38 .. + 3.4E38. You can try to use double which has a range of aprox. -1.7E308 .. 1.7E308. ...Show All
SQL Server my script not working when the name of a DB has - (the dash character)
Hi, this script uses MSforEachDB to check all the SPs in all the databases and look for a keyword LockCookie . The script runs well except when there is a database with a dash - in ots name. ie: When in the script is replaced by a database whose name contains a dash - the dash and the rest of the database name after the dash is ignored. And I get the message for example: Could not locate entry in sysdatabases for database 'SharePoint_AdminContent_f5c0f71f'. No entry found with that name. Make sure that the name is entered correctly. Here is the script: exec sp_MSforeachDB ' use select ''LockCookie'' as searchedTxt, o.name AS ProcName ,Len(SubString(object_definition(o.object_id),1, PatIndex(''%LockCookie%'', object_definitio ...Show All
.NET Development process.StartInfo.Arguments
I am trying ot run this programm from a windows form application but at command line it stops with message: "Reading passphrase from file descriptor 0 ..." and nothing happens. Same program run fine on command line with follwoing line: C:\Program Files\GNU\GnuPG>gpg --passphrase-fd 0 < c:\gnupg\passphrase.txt -o c:\HIF\Clock.swf -d c:\gnupg\Clock.gpg This is a command to decrypt the file using GnuPG encryption and decryption program. Any help is most welcome. Thank you. Bharat Gadhia. ================================= public void Decrypt() { string strArg = @" --passphrase-fd 0 < c:\gnupg\passphrase.txt -o c:\HIF\Clock.swf -d c:\gnupg\\Clock.gpg"; process.Start ...Show All
Visual Studio Team System Checking buttons on webpage
Hi, is it possible to check for .gif or buttons on a webpage after recording by adding some validation controls . Please help In this case, you'll need to use the Match Attribute Name and Match Attribute Value properties on the validation rule. These properties are used to differentiate between multiple tags. In your example, I'd add MatchAttributeName=name and MatchAttributeValue=dgrMessages$ctl01$ctl01 to match the Exclamation image button. Josh ...Show All
Visual C# using an Observer Design Pattern with a reference property
Hi, I was wondering if anyone who has used the Observer Design Pattern with a container of observers knows how to notify when there was a change to a Reference type Property's property. I have searched all over online, but all I can find is when the Property is of a Value Type. For example, check out my "TODO's" in the following code below: class Wheel { private double _diameter; private double _width; public double Diameter { get { return _diameter; } set { _diameter = value; // TO DO: How do I say that ...Show All
Visual Basic Using panel in a custom control
For my project I'm designing a custom control. It contains a title (as a link), a checkbox and a panel. When the title is clicked, the control is minimized to just one line, only displaying the title and the checkbox. When clicked again, the control resizes to its original size, also displaying the panel and its contents. My problem is: when I build this control, add it to a form and try to add controls onto the panel, these controls are not on the panel, but on the form. When the panel is hidden, the controls remain visible. But off course these controls should also hide, when the panel is hidden. Currently I am using Visual Basic .NET 2003, while 2005 is not supplied by the company I work for. Wellproc, ...Show All
SQL Server Error message "Interface not registered"
Hi I got the following error message when I make a new integration service project Failed to save package file "C:\Documents and Settings\Administrator\Local Settings\Temp\1\tmp2B.tmp" with error 0x80040155 "Interface not registered". Can someone help Me Hi, I have the exact same problem but it is when I try to burn a cd using Win Media Player 10. I tried registering the .dll's, but since I don't have the SQL 2005 installed in my machine, the regsvr32 msxml6.dll gives me the same error message. I see that this forum is mainly for SQL but if anybody knows what I can do, it would be appreciated. Thanks, Jason ...Show All
Visual C++ Regarding the warning C4100: 'dwParam3' : unreferenced formal parameter
Hi, I am getting the following warning while compiling the vc++ code in visual studio 2005. anyone know how to solve this warning . Thanks, Ganesh I think you can simply remove or comment the name of the parameter. For example, instead of void MyFunction( int x, int y, int dwParam3 ) { . . . } use void MyFunction( int x, int y, int /* dwParam3 */ ) { . . . } Alternatively, if possible, remove the parameter entirely: void MyFunction( int x, int y) { . . . } I hope this help. ...Show All
SQL Server Use of Undouble in package
HI, I am using the sample Undouble in a package, which I believe is OK, but when I deploy and run my package it gives me errors: Message: The component metadata for "component "UnDouble" (1)" could not be upgraded to the newer version of the component. The PerformUpgrade method failed. Event Name: OnError Message: The component is missing, not registered, not upgradeable, or missing required interfaces. The contact information for this component is "". Do I have to distribute the dll for this or is it handled in the deployment of the package Thanks Hi can you please explain me how to use the undouble component in the data flow task step by stpe by ste ...Show All
Visual J# need help with runescape java
i have the site sponsored client window to the game Runescape by Jagex. When I open this file i can get all the way to the login, login and then after the game (java based web-browser game) it comes up with the error: This program has performed an illegal operation and will be shut down. RUNESCAPE caused an invalid page fault in module JIT.DLL at 017f:7c319f2. Followed by some register information. I have no idea wat this means but i cannot play the game in the client window and this frustrates me. please help, btw i have slightly altered the security (ie accepting some scripts etc.) in vain to allow it to play, please help me. Hello, Can you provide some details into this problem Whic ...Show All
