minut's Q&A profile
.NET Development How to make a COM object strongly named.
We are migrating our .NET 1.1 applications to .NET 2.0. With one exception this went smoothly. But we reference a COM object (writtien in VS6 C++) which isn't strongly named. The application compiles and runs in VS2003, but whe we try to compile it in VS2005 (after conversion) we get a message indicating that the COM object is not strongly named. Can anyone point me to information on how to strongly name a COM object Thanks. COM objects are normally written in unmanaged code and therefore are not strongly named as they aren't assemblies. However in order to use a COM object you normally import the C ...Show All
Visual C# Please help with Datasets.....
Hi all. I'm lost in the world of datasets. I have filled a dataset (single table) from one database (Interbase using ODBC connection) and I now want to take that dataset and poplate an MSDE database table (using a sqlclient connection) with it. How do I do it All the documentation I can find refers to updating the data source the dataset was populated with, not updating a different database. Please help, Thanks in advance, Kevin. Kevin, I've not done what you are trying to do there, but it seems to me that you will need to be using the same connection type for both databases. Since ...Show All
Visual Studio Express Editions Print() Method in VB.NET
Hi. Is there any way to make the equivalent of the print() method in VB.NET VB 6 has a print() method, which, from what I can tell puts out text to the form without any labels or whatever needed. 1. Is my assumption correct 2. If it is, can it be done in VB.NET also 3. If it can, HOW Thanks, The Digital Pioneer Option B failed me. More details on option A please. In other words, the File.Encrypt method didn't do much for me. No matter what I tried, it just gave me an 'Unhandled IOException'. You said I could try encrypting your text and save it so that nobody could just read it OR use the File.Encryp ...Show All
.NET Development refresing page (F5) should redirect the user to a different page
Hi, I want my ASP.net C# application to punish the users who refresh page using (F5) by redirecting them to a different page "Standard" behaviour would be to warn the user that the retry button will discard all session data, with an "OK/Cancel" dialog. You could then redirect to any URL from the dialog return. ...Show All
Windows Forms Creating Update and Search buttons
I'm using datagrid set visible to false with textboxes bounded to each column in the database. I can't get a search of records by ID using a textbox. Also I would like the texboxes to be used to update my database but the only it has worked is to use the datagrid. ...Show All
Visual Basic Need help with saving URL Code
Hi All, Ok I've been at this for a week now and obviously I don't get it. I've got some of the code right cause it does work but as soon as I try to save a url it tells me that URI's cannot be put into a richtext box. I have a button that opens a SaveFileDialog box and the way it is now works just fine but when I try to save the url that's in my AxWebBrowser it doesn't work. What I am doing wrong here What am I just not getting (Yes Newbbie ;-)) This is my code for the button so far: Private Sub Faves_b_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Faves_b.Click ' Find the directory of t ...Show All
Windows Forms Clean shutdown of app
Hi, I am trying not to allow user to run 2 instances of the same application. I am handling it like this If Process.GetProcessesByName(Process.GetCurrentProcess.ProcessName).Length > 1 Then MessageBox.Show("Another Instance of Application is already running", "Multiple Instances Forbidden", MessageBoxButtons.OK, MessageBoxIcon.Warning) Now, I cant seem to shut down the application cleanly. I added following line after the message box Application.Exit() but that does'nt shut down the app. I tried doing this Me.Close() It closes the application ...Show All
Windows Forms How to add button to TabControl?
Hi all! How can I add a button to TabControl to make custom control, with ability to close tabs using button (aka Firefox-like or IE 7-like tabs) 'm waiting for your suggestions. Well, it's not the think I want. I'd like to have smth like this: http://mif.vu.lt/~seba3350/tabs.jpg ...Show All
Visual C# Inserting ComboBoxes in a DataGrid with specific items in each row
Hi, I need to know How can I fill a DataGrid , that contains controls like ComboBox , row by row instead of using : tableStyle.GridColumnStyles.Add(...); Since I need to fill the comboBox control of each row with different items. I have wrote the follwing code but the result is empty cells in the column that expected to be ComboBoxes !!. //*************************** DataSet myDataSet = new DataSet (); //Tags Table with comboBox DataTable tagsTableComboBox = myDataSet.Tables.Add( "Tags Table with ComboBox" ); DataColumn tagID_cb = tagsTableComboBox.Columns.Add( "tag_id" , typ ...Show All
SQL Server Excel connection properities -
In my package I need to change the filename name for my input Excel based on a the contents of an external file. I want to read the external file, get the filename/location from this file and then dynamically set this as the property for the Excel Connection. I saw some posts related to this but did not understand which tasks I need to use and in which order. thanks My connection string is Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + @[User::ExcelFileName] + ";Extended Properties="EXCEL 8.0;HDR=YES"; Delayed validation is True I noticed my server name and excel file path are = to my sourc ...Show All
Visual FoxPro UPDATE vs REPLACE record locking
The VFP 9.0 Help file shows the following: UPDATE - SQL Command ,Remarks, Tip: "When updating multiple records in a table opened for shared access, SQL UPDATE uses record locking, unlike the REPLACE command." Locking Data, REPLACE: Current record and all records from aliased fields UPDATE - SQL: Entire table These statements seem to conflict. The first leads one to believe that the UPDATE - SQL command would lock records and implies the REPLACE does something else. The "Locking Data" page in help basically says the opposite. Can anyone shed some light on this Thanks, Dennis ...Show All
SQL Server Organizing Business Rules in SSIS
Hi All, I'm pretty new to SQL Server 2005 and I'm wondering how to organize my business rules efficiently. I'm willing to create a Package with several Data Flow Task in my Control Flow, each Business Rule will be encapsulated in a Data Flow task. I guess this is possible in SSIS but I can't find how my data can be send from one data flow to another one. I definitly don't want my dataset to be parsed completly for each business rule. Does anyone have an idea how to implement this in SSIS Kind regards, Sebastien. Yes, there is a very good in-built method for doing this. Use raw files ...Show All
Windows Forms How to display a tooltip by method rather than mouseOver
Hi All, I need to popup a control's tooltip programatically. So when a control (a button in this case) has focus, I'd like to show the tooltip when the user pushes a keyboard key. I'm trying to create a 'smart tooltip' for blind users of this App. So I would display different text depending on what key is pressed. Any suggestions would be& ...Show All
SQL Server SQL Login failed
hideho mates, well could it be.... all SQL services r runnin, i created 2 sql logins with ALL rights!!!!! well now i want to use one of this accounts (which r domain admins too) too install VSTFS 2005 Beta 2...so far so good...but the first evetnlog entry after the begin of the install is always "sql server login failed - cannoct connect to the database"... the funny thing is > AFTER is event log entry ALL VSFTFS and ADAM Databases gonna get created.... how can they get built if i cannot login like the log says hmmm later..much later it says this user is missing ONE needed right... well...hmm..grrr... any tips how to congig a us ...Show All
Windows Forms combo box - how to prevent selectedindex change
I need help on this, how can I prevent user from changing the selection of item from the dropdown list what I am trying acheive is this, when user clicks the down button on the combo box or uses down arrow key, I want to be able track it and based on some logic I want to be able to disallow the user from changing the selected item. Thank you, Jesbert I'd rather populate the combobox with items that are allowed to be selected. You can perform your logic and populate the combo in the DropDown event of a ComboBox. ...Show All
