milann's Q&A profile
Software Development for Windows Vista ActiveX installation
We have an application that periodically downloads and installs new updates and plug-ins that can be implemented as ActiveX controls. Once ActiveX control is downloaded it is registered and plugged into application's components. Does the application need to elevate to administrator privileges to perform this operation or there are some settings where admin can allow standard user to install and register ActiveX controls coming from specific place ActiveX Installer Service provides mechanism that lets administrators define the Host URLs from which standard users can install ActiveX controls. Can we use this service programmatically (without IE7) Thanks for any help you can provide. Dmitry. ...Show All
Visual Basic Not able to publish project VS.net 2005 Professional
When ever I try and publish my project in VS 2005 I get an error default certificate could not be created publish aborting. Any idea what is going on It is a VB project and it runs fine no errors. I am choosing to deploy to a local directory C:\deploy\firstproject. I have tried online help and nothing comes up on this error. Any help would be appreciated. -Troy Well it is back again. Now I get an error when I try and sign the applciation. This is ***... A work around is to create a setup solution but that does not allow you to update. I want to deploy but I could only get this to work once now everytime I try and publish I get these errors for a certificate. There is virtually no information on the web about t ...Show All
Visual Studio "Configuration system failed to initialize" - Search option
Hi there, Every time I try to use Help --> Search I get the error below: "Configuration system failed to initialize" I have tried to repair the VS 2005 and MSDN installation but the same error occurs all the time and I am not able to do any search for code samples anymore. I tried to google it and found a couple of people who had the same problem but they never got any feedback. Anyone have any idea what this error is Thank you Joao Joao Delinger de Souza wrote: I take that back - I tried to run only dexplore.exe and do a search and got: "Search Failed No search provider has been selected" I used FileMon to monitor the files used by the process and found out that the process de ...Show All
SQL Server Help with simple insert, how to use primary key?
Ive added a primary key called ID to my table, now my insert stored procedure dont no longer work. i want an unique identifier for each row. heres my stored procedure: CREATE PROCEDURE composeMessage -- Add the parameters for the stored procedure here @username varchar ( 24 ), @sender varchar ( 24 ), @date dateTime , @subject varchar ( 255 ), @message varchar ( 2500 ) AS BEGIN insert into Messages ( "Username" , "Sender" , "Date" , "Subject" , "Message" ) values ( @username , @sender , @date , @subject , @message ) END GO &nbs ...Show All
SQL Server Fail to execute store procedure in OLD DB Source in Data Flow
Hi. I am trying to extract the data returned from a store procedure to a flat file. However, it fail to execute this package in the OLE DB Source. I select the SQL Command in the Data Access Mode, then use: USE [SecurityMaster] EXEC [dbo].[smf_ListEquity] It runs ok in the Preview, but not in the Run. Then the system returns during executing the package: Error: 0xC02092B4 at Load TickerList, OLE DB Source [510]: A rowset based on the SQL command was not returned by the OLE DB provider. Error: 0xC004701A at Load TickerList, DTS.Pipeline: component "OLE DB Source" (510) failed the pre-execute phase and returned error code 0xC02092B4. Please give me some helps. Thanks. I'm having the same problem. P ...Show All
Visual Studio adding images to reportviewer
Hello i have a problem about adding image to reportviewer control in Windows Forms. I want to add an image to my report from a path. This image changes during program run. When user wants to see report, then a different image shall be shown to user from same path. how can i give such an image path to reportviewer Thank you very much... you can find a sample on http://blogs.msdn.com/manisblog/ ...Show All
Windows Forms DataGridView: Select Rows and retrieve the values of the cells
Language: VB.NET 2005 Framework: 2.0 Database: SQL Server Express 2005 I have a DataGridView that is populated with data from a SQL Server DB. I need to allow the user to select Rows of interest and then the values of some of the cells on the selected Rows needs to be retrieved for Math calculations. I can retrieve values from cells I just need to know how to get VB to notice that a Row has been selected and only retrieve the vallues on the selected Rows. How to retrieve Values from a DataGridView - May Help Someone OutPut = DataGridViewName.Item(columnIndex As Integer, rowIndex As Integer).Value.ToString txtOut.Text = grdCboTest.Item(3,0).Value.ToString Thanks in advance for any help, Mike ...Show All
Visual Studio 2008 (Pre-release) RichTextBox How To!
Hi, I have searched the net and the documentation that shipped with Beta 2 and have not found any results or information that was able to aid me. Hopefully there are some RichTextBox experts that could please help me with the following things: How can I make the RichTextBox single line (this was possible in Win32, and no, changing the control template to a textbox does not work! Because then it essentially is a textbox!) Why is it so difficult to control drag/drop operations in both the textbox and RichTextBox I would like to control over what is dropped onto the textbox, for instance if images is dropped or texted I would like to be able to Is it possible when doing a drag/drop operation, I de ...Show All
Software Development for Windows Vista Manifest does NOT work,
Hi, I have attached a manifest to a dll, which is loaded (I assume) with a LoadLibrary call. The library has a manifest attached with mt -manifest mfst.manifest -outputresource:.\ServiceControl.DLL;#2 The manifest contents are shown below (I have tried v2, and v3). What happens is that OpenSCManager fails anyway with a %$&*(@% permission denied even though I have asked that the privileges be made higher. My ServiceControl DLL is a plugin to a third party application that I would rather not run as administrator, although with the trouble I am having I am thinking of suggesting that my users just turn UAC off. < xml version = " 1.0 " encoding = " UTF-8 " standalone = " yes " > &l ...Show All
Visual Studio Team System Database Projects - SQL Server 2000 Scripts Only
I created a database project using the 'SQL Server 2000 Scripts Only' template. It appears this project type is strictly designed to hold SQL scripts. I have two questions: How do I import scripts that I've already created into this project I have a database that I've scripted (about 4000 TSQL files) and would like to import them into this project. How can I do this Assuming I am able to import these 4K scripts, what exactly does a project of this type (Scripts Only) allow me to do Am I able to create a physical database from these scripts Other things Thanks, Amos. Amos - Once you create the Scripts Only project, select the project in Solution Explorer. Then, on the Project Menu, click &q ...Show All
Visual Studio Tools for Office Serious problem with permission/security while creating setup/installer file
Hi All, Actually I have created one VSTO project at my local. For BusinessLogic & DataAccess Layer I have used some external Dlls into this project. Now I have to create setup/installer file of this project & deploy it to client machine. I have done following things to make it possible: 1. Firstly I have added strong name to all the external dlls that I am using here. 2. After that I have followed all the steps as shown into the link provided for deployment. 3. At the end, I been able to create setop/installer file successfully by compiling the setup project with all other necesssary requirements needed. Now I wanted to check is the installer working or not. So I have instaled the setup file created & followe ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA - Microsoft lack of vision
Its real sad that Microsoft, once again, shows this lack of vision for a games development tool: 1: Get visual: Don't force users to write such a lot of code to do just very little. It reminds the Charles Petzold's "Hello Window" hell of code days. 2: Provide visual tools: Let users choose the components, change their properties and write just the required code for the events. 3: Quick development means quick prototype and minimum learning curve. XNA has a lot of things to learn. Definetively it is NOT for students and hobbists. We will have to wait until someone encapsulates XNA framework into a group of visual components, that can be easily drag & dropped, inspected and tested very easily without having to learn lots of n ...Show All
Windows Forms Datagridview - ComboBox column getting blanked out
am using the datagridview to display 7 columns, 1) text box column 2) combo box column - parent1 3) combo box column - child of parent 1 4) combo box column - parent2 5) combo box column - child of parent 2 using databinding - all works fine except when the user selects a child of parent1 combobox to change its value, all of the other values in the column that are not valid entries (as a child of parent1) get blanked out - this happens until the dgv_Items_CellEndEdit event has fired (which includes dgv_Items.Refresh()) is there any way of changing this behaviour so that just the combobox being edited gets blanked thx for example column 1 contains co ...Show All
Visual C# Converting a string to an object reference?
Hey guys, I have a text box thats named texBox1. I need to get this text box's text, of course using textBox1.Text but the problem is the name of the text box is defined by a variable... If MyVariable == 1, then I need textBox1, if the variable is equal to 2, then I need textBox2... etc. So to fix this, I tried converting to to a string; "textBox" + MyVariable.ToString() This works ok, I now have a string of the name of the desired text box. But how do I access its text from a string I'd need to transform it in some kind of reference to textBox1 from the string :s. The only to do this that I can see is String.System.IConvertible but I dont understand its working. So if anyone had any idea how to do this, it would be apreciated. T ...Show All
Microsoft ISV Community Center Forums Run-Time Error '3061' - Too few parameters. Expected 1.
Hi - When I run my VB code against an Access db, I can a VB Run-time error '3061' which indicates too few parameters. Expected 1. When I debug, the following line is highlighted: Set rst = db.OpenRecordset("Select*FROM qryScores WHERE id_NO=[Forms]![frmMODS_TorpedoScores].[ID_NO]") What would be the approach be to add parameters Would I have to create parameters in the Command object Since I am using an Access db, I can't refer to a parameter in a query's Parameters collection by name. What does that Run-time error really mean against that code snippet Thanks, sooline Hi ADG, Thank you for your suggestion. However, it didn't resolve the run-time error problem. I will try to rework the ove ...Show All
