Sameep's Q&A profile
Visual Basic popup menus not working
I'm using VB 6 and have a strange problem with popup menus that I can't figure out. Outline of the problem: I have two forms, say A and B. Form B is launched as a modal dialog from form A. If I use a command button on form A to launch form B (using code below), then a popup menu on form B works fine: --------- Private Sub Command1_Click() Form2.Show 1 End Sub --------- However, if I use a popup menu (menu is named "menuAddSP"; menu item is named "menuNewSP") from that same command button on form A to launch form B (using code below), that same popup menu on form B does not work - no errors or anything, ...Show All
Smart Device Development Sample of IContextMenu::QueryContextMenu() for adding item in the Contact context menu in windows mobile 5.0 smartphone
I have a Cab project which extends contact's contextmenu items. But When I installed the same cab file on smartphone it installed successfully but contextmenu items remains same Could there be any change in the installation file. this is my ini file to built the cab file [Version] Signature = "$Windows NT$" Provider = "MyProject" CESignature = "$Windows CE$" [CEStrings] AppName = "MyWireless" InstallDir = %CE1%\%AppName% [Strings] NOW_PPC_Dir = D:\Projects\MyOffice\OriginalPocketPC\ ...Show All
.NET Development Caught between a lock...and a hard place.
Greetings .Net Gurus! I am writing a Windows service in C#. This service performs several related tasks. I have broken up the tasks into 2 different classes that I want to run in thier own threads. This is all fairly straightforward. The question I have revolves around how I update the text file that is logging various information for the service. I did a little research, and what I have come up with uses the Lock statement around the code that updates the text file. The object that I am using in the lock statement is declared as a public static object in a third class that is accessable by both the worker classes. If I have understood what I have read correctly using the object from the 3rd class will keep me from having any content ...Show All
.NET Development datetime insertion problem
i'm using sql server 2005 under asp.net 2.0. when i try to insert values of table columns , i get the error : {System.Data.SqlClient.SqlException: Incorrect syntax near '.2007' when i debug the sqlQuery, i see it is : INSERT INTO ASILTER_INBOX (tarih_saat,kimden,kime,konu,govde,atac,okundu,silindi) VALUES (16.02.2007 17:44:18,'ALISNMZ','ASILTER','Naber','OOo o 0o0 o OO oooo!','','false','false') the tarih_saat column is datetime at the database. could anyone reply to me, i need a quick help. thanks. Hi, You can try for cast function. INSERT INTO ASILTER_INBOX (tarih_saat,kimden,kime,konu,govde,atac,okundu,silindi) VALUES (cast('16.02.2007 17:44:18' as datetime),'ALISNMZ','ASILTER','Naber','OOo o 0o0 o OO ...Show All
SQL Server Object Explorer/Server Explorer Error
I have just installed the released VS2005 as well as the released SQL2005. When ever I try to browse my SQL Server with either the Object Explorer in MS SQL Server Management Studio or the Server Explorer in VS2005 I get the following error: Unable to cast COM object of type 'System.__ComObject' to interface type 'Microsoft.VisualStudio.OLE.Interop.IServiceProvider'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{6D5140C1-7436-11CE-8034-00AA006009FA}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)). Does any one have possible solutions for me Any help would be greatly appreciated. --Nick ...Show All
Visual Studio Express Editions Using Multiple Dialog Boxes
Hello, this is my first time posting on here. I took a class for Visual Basic but never got a chance to get real deep into it. IM currently trying to make a program that I can use to store all my serials for my games and other programs, so that it will be more organized, and possibly eventually try to make it more secured. I have my main form "form1.vb" I have a dialog box called "AddKey.vb" and another dialog box called "DeleteKey.vb". On form1.vb I have 3 buttons, one labeled Add, one labeled Delete, and one labeled Exit *for apparent reasons*. I then have a drop down combo box and a list box. I want to, after addding keys, be able to select the drop down list box select a game and have it push my serial(s) ...Show All
Visual Studio Team System How to give permission according to specific field value?
Hello I have Work Item Type , I want to allow access to edit this WI for one group according to specific value of specific field, that means, if field A get value = B , then group C can edit Work Item, Is there a way to do this Thank you I do not think that you can make entire workitem as editable or not editable based upon value of a field. It usually is done for a field. A roundabout way to achieve the result could be to make all fields "READONLY" with the condition for each of them as : <WHEN field="A" value="B"> <READONLY not="C" /> </WHEN> ...Show All
Visual Studio 2008 (Pre-release) how to inherit winfx usercontrol?
In the project I attached, I have two winfx usercontrols named UserControl1( parent class ) and UserControl2( child class ) .I want UserControl2 inherit UserControl1. Also in UserControl2 I overwrite the parent method. After inherit from the parent class UserControl1, I want to append a new button in UserControl2.xaml, but it seems that UserControl2.xaml can not display the new button control, just display the parent usercontrol1.i find a workaround is to invoke the base class method to add the new button control in UserControl1. xaml.cs. Could you please tell me why I can not add the new button control in UserControl2.xaml directly =========== UserControl1.xaml <UserControl x:Class=&quo ...Show All
SQL Server Multiple values contained in query string to be used as parameter in Report. HELP!
Hi, I'm a bit desperate here so any solutions would be much appreciated. I'm using SQL reporting services 2005 & .NET2.0 & Oracle DB. I need to pass multiple values in the query string, or any other suggested way, to my report to be used as a parameter. The idea is a user on the web app will do a search & select an item to open a new form. The user can print the report from here, by pressing a button and being redirected to the report's URL. In this form there will be many (could be alot) of IDs that I will need to pass to the report and the report will use these as a parameter. The problem is that I am passing it at the moment as a comma deliminated string so instead of the SQL doing this : "ID in ('1', '2')", it's d ...Show All
SQL Server SQL2005 Performance problem with updating subscribers with identities
Since we've upgraded to 2005 we've had major performance problems with updating subscriber tables that contain identity PK columns set to manual or auto range management. If a table has identity range management set to 'None' (the "old" 2000 way), the peformance is fine. Below are sample tables: CREATE TABLE [dbo].[ID_RANGE_TEST]( [ID] [int] IDENTITY(1,1) NOT FOR REPLICATION NOT NULL, [DATA] [int] NULL CONSTRAINT [PK_ID_RANGE_TEST] PRIMARY KEY CLUSTERED ( [ID] ASC )WITH (PAD_INDEX = OFF, IGNORE_DUP_KEY = OFF) ON [PRIMARY] ) ON [PRIMARY] GO CREATE TABLE [dbo].[ID_NONE_TEST]( [ID] [int] IDENTITY(1,1) NOT NULL, [DATA] [int] NULL CONSTRAINT [PK_ID_NONE_TEST] PRIMARY KEY CLUSTERED ( [ID] ASC )WITH (PAD_INDEX = OFF, IGNORE_DUP_KE ...Show All
Visual Studio Express Editions Plot graph
In order to plot a real time graph (data versus time), is it possible to plot using GDI+ Is it a recommended way btw Or theres other better solution Is there any difference between protected and protected friend with events and protected enum Sorry i very much confused about them... ...Show All
Visual Studio Tools for Office What registry settings are for the correct version of VSTO 2005 Runtime SE?
Could somebody please clarify what registry settings indicate VSTO 2005 Runtime SE (beta or final) is installed I know for Outlook VSTO add-ins to be loaded, AddinLoader.dll needs to be at least of Ver. 8.0.50727.444 but for some reason Windows Installer does not use Min/Max Version of the file properly as a Launch Condition (executes Condition regardless of the version)... Is there a registry setting that would indicate Runtime Second Edition is installed First, if you go to control panel, Add/Remove programs, you should see the VSTO 2005 SE entries. If you have installed the design-time (Visual Studio projects), you'll have both entries. If you've only installed the runtime, you'll have only the ...Show All
SQL Server RC1 oledb provider missing registry key
The RC1 installer (and the previous beta too) doesn't write in the following registry key: [HKEY_CLASSES_ROOT\CLSID\{32CE2952-2585-49a6-AEFF-1732076C2945}\OLE DB Provider] @="Microsoft SQL Server CE 3.0 OLE DB Provider for Windows" so this provider doesn't appear on the oledb "Data Link Properties" panels. Manually entering the above key solves the problem. The last summer CTP version has been done this trick. ...Show All
Visual Basic Bitacora de archivos
Como puedo crar una pequena herramienta para poder llevar el registro de archivos que entran a una carpeta ...Show All
SQL Server Connection faileed Package abort
Hello, I am connecting with various sqlservers in a package to get the information. If connection failed with any sqlserver, package failed after 3 tries. I would like that if connection failed with any sqlserver, package should not end rather move ahead and connecto next sqlserver. I already tried to increase the number of error from 3 to 1000 but still package failed as soon sqlserver connection failed. Any help is appreciated. Thanks. -- Farhan There's quite a numbers of options for "on error resume next" style execution in SSIS. Consider precedence constraints, the System::Propagate OnError event handler variable, and the MaximumErrorCount and ForceExecutionResult pr ...Show All
