Answer Questions
spectrablue custom control hosting in DataGridView Header
Is there a way to host a custom control inside a DataGridView Header I'm specificly trying to host a ComboBox control inside the Column Header cell. Is this possible If so, how No, header controls do not support control hosting. The best you can do is either a) position outside the DGV or b) manually position them inside the DGV attempting to align up the combobox. Check out this sample created by a member of the VB team that sup ...Show All
Cesare Balena I don't know how to deserialize multiples objects from a binary file - help!
I'm having a trouble. I'm working in an application that allows to the user designs a form at design time (drag controls into a form)... The problem is that a form can't be to serialize. Then, I use a foreach bucle for get all controls in the form.Container.Components collection. Each control is serialized into a file called "myserialize.bin" (using append in the stream). All working until here. I don't know how load or re-create each compo ...Show All
Amy U about SelectedIndexChanged event in listview
Hi i am very newbie in this vb.net world but i am developing a windows forms . I am using this code: Private Sub lvwLocales_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles lvwLocales.SelectedIndexChanged O ...Show All
Khanh.p ListView Dialog
I have a dialog form with a single listview box on it. When an item is selected, I want to return the result to the parent form that called it. Then, I want to close the dialog form. Can someone give me a VB hint on this&nbs ...Show All
jhall ToolStrip size
Hey, How do you change the hight of a toolstrip I tryed on the properties window to change it's hight but when I click somthing else then it goses back to 23 instead of 36... Thanks :) oh, ok, thnaks :) Before trying to change the size of the ToolStrip control, be sure to set it's AutoSize property to false. ...Show All
Aalok Bhatwal MainMenu Control with Color Properties
Hi, I wish they would make the next version of Visual Studio.NET with a ManinMenu Control that can have it's color property changed to match, well, whatever you want it to match. For instance, if the background of my form is red, the curr ...Show All
Snyder Donny missing storage-class or type specifiers error
i have declared a child form in the parent form 'Form1' . ' public: static Form2* childform; ' but in the line of ' public: static Form2* childform; ' where i ve defined the pointer, i receive the error 'missing storage-class or type specifiers' . i ve already included Form2.h in Form1.h and i create an instance of Form2 in Form1's constructor with 'new' operator... so why i receive this error... regards. ...Show All
Steve Hanzelman App Settings and DataTables
Hi Guys, How do you configure app settings to work with DataTables, if it's possible at all Alternatively, what are the rules for what types will automatically work with app settings Cheers, Michael Weinhardt For the record, there was a bug that prevented serializing components like DataTables correctly by default. It should be fixed in the next CTP release. ...Show All
Blaze Stratos How to Populate the chunk of data (100 rows) each time to Datagrid when the user scrolls through the list of Millions rows?
I would like to achieve this with Datagrid. I have a datagrid with a table and set of columns. The dataset I dynamically generate may contain 10000 through 1000000 rows. I wanted to populate 100 rows first, and when the user navigates to 100th row and then goes next record, i wanted to populate or add next 100 rows to the datagrid and so on like this. I also have a scroller. If the user uses to scroller to reach the bottom of the first 100 ro ...Show All
jschroeder how to get the parent form of a control???
Can anybody tell me how to use the "parent::get()" property of a text control in order to obtain its parent form Thanks!! It looks like you will have to traverse the parent's parent until the return type is System::Windows::Forms::Form. Correct. The Parent property will return the parent of the control. If the control resides directly on the form then the p ...Show All
Ramyar Jafarkhani Converting the value of a textBox to an int
Hiya, i need to convert the value of a textbox to an Int For instance: while(i < tbValue) wont work because tbValue isnt an Int. say i had a counter and the user types a number in the textbox, and the textbox is called amount: int counter = 0; while(counter < amount) { counter++; } Im fairly certain theres a way to i can make amount an Int somehow, i just dont know how thanks, Atomican ...Show All
KenH&#43;&#43; Position label in pictureBox
I am adding a label to a pictureBox with the following code... Label objId; objId = new Label(); objId.BackColor = Color.Transparent; objId.ForeColor = Color.Blue; objId.Font = new Font(objId.Font.FontFamily, 22, objId.Font.Style); objId.Text = "TEST"; pictureBox1.Controls.Add(objId); Problem is, it is at the top left of the picture box. How can I position this - the x,y coords - properly where I ...Show All
Derek Li Object not valid or not registered error?
I have created automation process using console application. The app reads emails in outlook’s inbox folder, saves attachments, reads saved attachments (.xls file), copies values from attachments to text file and copies text file to FTP server. The app is&nbs ...Show All
Danny Fay edit xml configuration file
Hello, I have code that reads a XML configuration file into a DataSet/DataTable using the XmlDocument class. I then bind a Windows Forms Datagrid to the DataTable to display the property/value pairs. Works like a charm. However, no matter what I ...Show All
Wilhelm Custom dialog
Hi all. I developed some code using the treeview control to create a way to browse our active directory structure. Essentially, it is a dialog box that replicates the directory structure found in Active Directory users and computers. Now, I have bee ...Show All
