Caioshin's Q&A profile
Internet Explorer Development IE7 activeX Webbrowser control?
How can I use the IE7 webbrowser control in my visual basic (6) applications I had this exact same issue with a vb6 application i was updating. One difference I had was that the control worked just fine after the IE7 update from IE6, I was working with the control in my code. During a debug my application crashed, causing vb6 to shutdown. When I restarted the project, I got the "Class SHDocVwCtl.WebBrowser of control wboProfileOptions was not a loaded control class." error. I checked the class registration, it was still there, but the control was gone. I dont have an older version to install because the updates I was making to my app were to include the use of "SHDocVwCtl.WebBrowser" fo ...Show All
Visual Studio 2008 (Pre-release) Just Signing or Encrypting the message.
Hi Community, Did anyone try just signing the message Or Just encrypting the message Or Did any one try using two seperate keys for signing and encrypting e.g. I can have a seperate key for signing such as "CN=SignKey" and seperate key for encryption such as "CN=EncryptKey". Is it possible in WCF with minimum coding efforts If you have tried can you share your thought Can some one help me pointing to the right direction Thanks in advance. - Pankaj. Avanade Inc. Hi Pankaj, About signing or encrypting the message, as far I know, it can only be configured through some attributes in the message contract. For instance, [MessageContract(ProtectionLevel=System.Net.Security.ProtectionLevel.S ...Show All
Visual Studio Team System Upgrading TFS Workgroup Edition
I finally got TFS working and added users and projects and we're starting to learn about it. It looks like it'll be a great tool. But, during the installation I locked everybody out (except TFSSERVICE, which I had to use to get back in) by trying to add our 5 users to the licensed group and hitting the limit because of the Administrator being there. I deleted the Admin and precipitated a day of command line hacking. But, my question is concerning the two TFS editions. I ordered the full TFS from a reseller 2 weeks ago and it still hasn't arrived. 1 1/2 weeks ago I downloaded TFS WG from the MSDN site and since then have been installing it. Now, when the full TFS arrives will I be able to upgrade what I've spent 2 weeks installing ...Show All
Windows Forms combobox index
This is on a WIndows Form... I have a SQL query that returns ID & Grade I want the Grade to be displayed in a combo box, but I want access to the ID so I can run a second query based upon which Grade is selected. In the form load event I have... cmbGrade.Items.Add ( "Select Grade" ); Con.Open (); SqlDataReader dr = null ; dr = cmdGetGrades.ExecuteReader (); int i = 0; while (dr.Read ()) { i = cmbGrade.Items.Add (dr.GetString (1)); }dr= null ; Con.Close (); cmbGrade.SelectedIndex=0; That puts the grade in the box OK, but how should I handle the ID How can I get the ID, to use in another query So how do I get the data into the combobox I have dropped a conection and ...Show All
Windows Forms Forms
How can I show the form when I have more then one forms .ActiveForm returns the 'Active' form, which is likely the form that your code is running from, Form1 if you have not renamed it. DO you mean that you have created forms in the form designer and wish to display them To show a form that you have designed in the form designer you must instatiate it, then show it. So that if you had created a form called Form2, to display it: Form2 myFrm = new Form2(); myFrm.Show(); The same for any further forms that you have designed, a form is just a class, so it must be instatiated into an object before you may access its non static members. If you are still stuck, shout back, ...Show All
.NET Development Form.SetTopLevel() breaks mouse event handlers
If I call SetTopLevel(false) followed by SetTopLevel(true) on a windows form, it appears that mouse events are no longer fired for controls contained in that form. For example on the following form, I have a panel which turns green on the MouseEnter event and turns red on the MouseLeave event. I have a button on the form, the Click event handler for which calls SetTopLevel(false) followed by SetTopLevel(true). After clicking the button, the panel stops changing colour in response to mouse movements. This simplified example illustrates what appears to be a bug in the framework which breaks an important feature of my application. Does anyone know any workarounds for this problem The problem doesn't seem to exist in the .NET 2.0 Framework, so ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Future of DirectX
I'm starting to get worried about DirectX, because mostly it becomes deprecated, first there was DirectPlay, and now it is the same thing for DirectInput and DirectSound, I've recently read that they are becoming deprecated in favor of XACT and XInput. Could you tell me why is this happening What will become of DirectX in the future Will be there only Direct3D, or will it disappear either I'd like to give you my opinion that deprecating good API's like DirectInput and DirectSound is a bad idea. Take a look at XInput- it allows only xbox controllers, and what about mice, keyboards, or other joypads And mostly I'm concerned about DirectSound, In Vista there is no hardware support for it, does that mean I have to stop working with Direc ...Show All
Windows Forms Inherited controls moves
Hi all, ok, my big big problem is that the two buttons that was inherited from my base form moves to the right everytime I open the form. I’d tried to modify the Initializecomponent method by adding the code to change the location of both but nothing happens. The buttons only show in the correct location the first time but when I reopen the form designer it moves rigth so on and so forth. Can anybody explain me the way to avoid this problem Best regards. Ok, anybody can explain me this mystery. Why the inherited buttons move everytime I load my form I move it ti the right position, save the file, close the file and when I try to reopen it again...YEAHHH the button moves again. But if I close the file wi ...Show All
SQL Server SQL Server Express to SQL Developer Edition
I have Visual Studio 2005 Team Suite and have SQL Server Express installed from the initial setup. I would like to replace the Express edition with SQL Server 2005 Developer edition. I am currently developing for SQL 2000 and also have Enterprise Manager installed locally. Will the Developer edition install offer the option to unistall the Express edition (I don't need both installed) Or do I need to uninstall Express manually and then install Developer. Also is there anything I have to be wary of in terms of making sure I am still able to debug SQL 2000 sprocs etc. in VS Rory You can upgrade your Express instance to Developer without any uninstall/reinstall. Just run setup.exe from the Developer editi ...Show All
Windows Forms Can I hide the listView.Items.SubItem ?
Hi, there ************************************************ listView1.Items.Add(ID) listView1.Items[i].SubItems.Add(Name); listView1.Items[i].SubItems.Add(TEL); listView1.Items[i].SubItems.Add(AGE); ************************************************ Can I hide the listView1.Items[i].SubItems[3] Thanks... Here's a Q&D workaround in VB.NET code: Dim item As ListViewItem = ListView1.Items(i).SubItems.Add() item.Tag = AGE '--- Hide it: item.Text = "" '--- Show it: item.Text = CStr(item.Tag) ...Show All
.NET Development Concurrency Violation on 2 of 3 linked servers
I have 3 identical Access databases in 3 subdirectories in my SQL Server 2000. I have created a linked server to each of this databases. I am able to UPDATE the 3 databases using SQL Query Analyzer. Using the following method I am able to update only 1 of the databases (PHONEBOOK...SITE). The other 2 are giving me the following error: Concurrency violation: the UpdateCommand affected 0 of the expected 1 records. I know that there are no concurrency as I am the only user (and software) updating the Access databases. Here is the method: Private Sub btnPBSave_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnPBSave.Click Try If (IsNothing(dgSiteDetails.Rows(0).Cells(0).Value) OrElse d ...Show All
Windows Forms Text field/box
Task: I have a text box with maxlength property set to 0. What I want to accomplish is to determine whether an overfilling of the text box has occured. Example if you enter a text beyond the visual space or width of the textbox. Example: TextBox _txt = new TextBox(); _txt.MaxLength = 0; _txt.Text = "Yandisa Mtyide has been developing in C# for the last 10 months"; _txt.Width = 60; //Basically the text will overfill the text box, so if this occurs I want to notify the user that the textbox has been overfilled Thank you Try using TextRenderer.MeasureText to determine the displayed width of the text in the TextBox. ...Show All
Visual Studio 2008 (Pre-release) bug in ink canvas
<InkCanvas EditingMode="Select"> <TextBox InkCanvas.Right="40" InkCanvas.Bottom="40">Testing</TextBox> </InkCanvas> When you resize the TextBox, it jumps to a new location. and some time off the screen. is it only happening for me or ..... thanks prasanth. hi josh, thank u for ur suggesion. i tried dragcanvas up it doesnt have this problem. but when i tried to use text control in drag canvas i am not able to edit the text... thanks ...Show All
Visual Basic How to call a memory release ?
Hi, I am currently building a VB.Net Application that uses Adobe Acrobat Professional 7.0. The problem is that the amount of memory used while the process is running always keeps growing. And I am sure that Acrobat is responsible for that. So I would like to know how to call a memory release in VB.Net. thanks for helping. Alex I dont want to release the object, it need to stay accessible. the thing is that while I'm using Acrobat, I open and I close a lot of PDF documents. But when I close the PDF documents, Acrobat doesn't seem to clean its memory because it keeps growing. For example I can use a PDF document of 1meg and after the process, the Acrobat Process will be using 200meg of Ram. What I want is to tell the OS (Wi ...Show All
Microsoft ISV Community Center Forums List available printers?
Hello guys, I am having a hard time to access a list of available printers. How do I do that I am trying to print mail merged labels. When I record the macro, it sets the activePrinter to a string. I wish to set that value using a drop down list GUI. Thank you. This may be your solution http://word.mvps.org/FAQs/MacrosVBA/AvailablePrinters.htm Hope this helps. ...Show All
