Answer Questions
KeeperMustDie Problem adding stored proc commands to Typed DataSet
This one appears to be a bug in the Typed DataSet designer in Visual Studio 2005 but maybe I'm just missing something. Here is how it happens: I have a table "Friends" already setup in my Typed DataSet with only a Fill query configured on it's table adapter. I switch over to SQL Management Studio, connect as "sa" and create a stored proc "Friends_Insert" and then I grant Execute permission on the stored proc to my non-admin sql user account "jason". I switch back to VS2005 and in the DataSet designer I click the "FriendsTableAdapter" object. It's Connection property shows a connection string configured to connect to SQL Server 2005 as "jason". I click the InsertCommand property an ...Show All
Alex Levin RichTextbox bold
hey, I am having trubble amkign the text in the richtextbox bold..I used this code: thisrichtextbox.SelectionFont.Bold = true ; but it gives me this error: Property or indexer 'System.Drawing.Font.Bold' cannot be assigned to -- it is read only Thanks:) No errors at all, till now of course. This code was developed in response to another thread: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=701071&SiteID=1 The answer was developed using C# (My beloved first language of choice!) then translated into VB.NET for that thread, so I had this code in C# and i found this is a good place to post it so that future searchers will find it answering their questions instead of posting a new question ...Show All
m# No one knows how to do this?
Please <blush>I'm such a doofus... :) I meant this: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=753917&SiteID=1 Do what ...Show All
drndrw How would I search for a control by its string Id from server side
From the sever side, I want to be able to select the value in a drop down. The problem is that the dropdown is one of 6. One of these 6 dropdowns is selected based on another dropdown's selection. i.e ID=DropDown1 Options=A, B, C , D, E, F will then cause one of the following to have the ID=DropDownA Options=... ID=DropDownB Options=... ID=DropDownC Options=<appropriate value selected> ID=DropDownD Options=... ID=DropDownE Options=... ID=DropDownF Options=... So essentially, I will have: "DropDown" + DropDown1.SelectedValue as a string representing the ID of the dropdown which I then want to search for in the page... What method/procedure do I use to search for the right control in the page Right P. ...Show All
Benin custom usercontrol
Hi, i want to make a usercontrol that contains a dgv and a binding manager. the user control should provide the normal properties windows of both the binding manager and the dgv. how should i go about doing that, what is to be implemented and inherited From the top of mu head I'm on net 2003 so it might be a little diff, Imports System.Windows.forms Public Class DGV Inherits DataGridview Public ReadOnly Property Internalbindingmanager() As BindingManagerBase Get Return CType (BindingContext( Me ), BindingManagerBase) End Get End Property End Class extrapolate just a little bit ...Show All
goh6613 VB.NET Keydown Issue
I have some code shown below that I am using in my Tetris type game and I have the problem of the keys do nothing unless I press the Ctrl key then the arrow key. If I try and do a messagebox to show the key pressed it shows nothing until I press the ctrl key. If I hold down the ctrl key and then press the arrow key (any direction) I finally get the arrow key in the messagebox. [code] Private Sub Form1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown Select Case e.KeyCode Case Keys.Right CurrentBlock.Right() e.Handled = True Case Keys.Left CurrentBlock.Left() e.Handled = True Case Keys.Up CurrentBlock.Rotate() e.Handled = ...Show All
Jamie Thomson Threading Problem
Hi I have a winforms application which does some database processing and updates a progress bar. As it does the processing, it also writes to a log file using log4net. I would like to add a Multiline text box to the application which can be used to display the a "tail" of the log file. How can I do this You are accessing form controls in a secondary thread. That's a big no-no and will cause the kind of problems you describe. It looks like you're using VS2005, you probably set CheckForIllegalCrossThreadCalls to false somewhere in your code. Remove that statement. Check out the BackgroundWorker class in the MSDN library, it has excellent documentation. are you saying that I should ...Show All
David J Oldfield Use the KILL command to delete a file or set of files in a folder.
Hi, Is there a way to delete files from the target machine during the installation, when using a setup project The files to be deleted are created during my product first run, and I want it to start clean when re-installed. Thanks. Hi, If your setup project writes all it's files to say for example the>> C:\Program Files\myProgramName folder then>> KILL("C:\Program Files\myProgramName\*.*") to delete ALL the files in that folder. Regards, S_DS If your installation deploys the file you want to delete, look at this link in MSDN for instructions on how to delete the file without a script being necessary. ms-help://MS.MSDNQTR.v80.en/MS.M ...Show All
Hassan Ayoub Can I set specified folder when I open saveas dialog in WebBrowser control using "ShowSaveAsDialog"?
I'm using VB.NET 2005. And it's winform. I'm considering that an Excel file be opened in WebBrowser control and saveas to the network folder. But, there is no way to set specified folder when I using "WebBrowser.ShowSaveAsDialog()" method. So, end-user have to remember the network folder they should save the excel file. Is there any way Thank you in advance. Maybe I'm wrong, but as far as I can get, there is no documented way to specify a folder for ShowSaveAsDialog function of WebBrowser control. Perhaps you may try something else, like using SaveAsDialog component instead, and pass the filename to WebBrowser control. Hope this help, -chris Thank you for your replying and ...Show All
heyram Handling different resolutions
Can anyone tell me how they handle writing apps for screens with different screen resolutions Some of my screens are set to be maximized, others aren't.. Is it possible Thanks tattoo sorry the question isn't that clear - do you mean you wish to automatically resize your controls etc.... I have a big screen resolution. I alway set my window to be able to resize them and if everything resize correctly I can assume that it will work great on any resolution. Try not to have windows bigger than 800x600 by default. It's all about setting the right Anchor/Dock/Scroll Bars I understand what you mean. You may wish to check this out and see if it gives you some pointers: ht ...Show All
Trilobite paint scrollbar
hey, Is it possible to override de drawing of the Scrollbar of an app Thanks Hi Try the link below, similar kind of question is answered. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=8807&SiteID=1 Hope this may help you ...Show All
Dominik Chrzanowski How to add ContextMenuStrip to menu item?
Hi! How can I add a ContextMenuStrip to a menu item Matt I dont think you can do it this way, unless you make your own user control or custom control of a menustrip and make it be able to have more then one menu open... ... ... Hope this helps :) I used the click event... oh, I see what you mean now by it closes, I re-entered the code and it only keep one menu or the other open...Becuase the context menustrip is a menustrip, and the program always closes the currently opened menustrip to go to the next, right, so I think thats why...I will see if I can get them both to stay open, and I will tell you what I get later on today. But why do you need the other one open at the sam ...Show All
Montana Jones On tabpage enter focus textbox...?
I have two tab pages.In the first tabpage I have some textboxes also in the second tabpage. I wont to get focus on Textbox3 (in tabpage2) when I enter the tabpage2 but it wont do that. This is my code: Private Sub TabPage2_Enter(ByVal sender As Object, ByVal e As System.EventArgs) Handles TabPage2.Enter TextBox3.Focus() End Sub What is the problem Thank you! Handle the tab selectedIndexChanged event instead of TabPage Enter event, because the selectedIndexChanged event is fired after the TabPage Enter event,it would overlaid your codes write in the enter event. ...Show All
The Emerald Knight SerializationException "Cannot get the member 'Child_PropertyChanged'." when de-serializing generic collection
I have created a custom generic collection class with a signature like so: [ Serializable ] public class blGenericCollection <T> : BindingList <T>, ITypedList , IListSource , IXmlSerializable where T : blObjectBase , new () {blah blah blah} The child items that derive from my blObjectBase publicly implement INotifyPropertyChanged , as does blObjectBase itself. I'm getting SerializationException errrors when de-serializing the collection class (stack trace below) using BinaryFormatter . However, the child item classes serialize and de-serialize just fine, as does my blGenericCollection class when it is empty. But when blGenericCollection contains items - I blow up. (Side note: Xml serialization fo ...Show All
Memom Hosting Windows Form Designer, BeginUpdate/EndUpdate methods?
I'm hosting the Windows Form Designer, and I'm programattically setting position (for undo/redo). when I do this, the contol visibly moves first horizontally, then vertically to its final position. I was wondering if there is any way (like the BeginUpdate/EndUpdate methods on some controls) that I can delay redrawing until I've bade all changes to the controls properties If possible, I don't want to have to inherit and override paint methods. I've had quite a few questions about hosting the Windows Form Designer that people here haven't been able to answer... can anyone recommend a better forum somewhere for these questions I know it's a bit of a rare area to have experience with. Thanks ...Show All
