-
- hex display
by danych
- 9 Replies
- Last post
by danych
- HI everyone, i have a value that i want to show in hex.
I use : textbox1.Text = "0x"+value.ToString("x");
I get the results right, but if the value is 0x06, it only shows me 0x6, is there a format that i can use to get 0x06
Thank you
-
- Design form error
by tattoo
- 3 Replies
- Last post
by tattoo
- This has happened to me numerous times...
I create a dataset containing more than one table.... In my dataset the two tables are linked. I then add all the fields from the dataset to my form.
At some point in time I edit the dataset in the Dataset designer.
I then click on the relationship and make a change. The last couple of tyimes I have noticed this the change I made to the r
-
- .Net 2 WebBrowser control and Print View
by MSMit
- 1 Replies
- Last post
by MSMit
- I don't want to use ActiveX , can I do somehow print view of what is contained in .Net 2 WebBrowser control. Previously I used execWB ( see code snippet below ) WITH myform.mybrowsercontrol .VISIBLE = .T. .Navigate( filename ) DO WHILE .Busy() ENDDO DO WHILE .QueryStatusWB ( 7 ) <> 3 DOEVENTS ENDDO && 7 printview && 2 - don't prompt .execWB ( 7, 2 , 0 , 0 )
-
- UserControl events
by Jerome_H
- 2 Replies
- Last post
by Jerome_H
- Hi all, I would like create a new control like the RichTextBox windows control. I want to add some functionnalities. I could create a new class "myrichtechbox" which inherits from the System.Windows.RichTextBox. Like that my new class will inherit all events from the native control. But I want to put this new class in the Toolbox of Visual Studio and allow to make a Drag & Drop of th
-
- Why I can not set any DefaultCellStyle after I set DataSource
by Kevin Huang
- 2 Replies
- Last post
by Zhi-Xin Ye - MSFT
- Why I can not change any DefaultCellStyle after I set a datasource to dv like below
// dtTable is a User-defined DataTable defined in a .XSD file
DataView dv = new DataView(dtTable); dv.RowFilter = "HomeID='"+team.TeamID;
dg.DataSource = dv;
for (i = 0; i < dg.Rows.Count; i++) { if (i % 2 == 1) { DataGridViewCellSty
-
- edit objects outside of the DataGridView
by Dirk Reske
- 1 Replies
- Last post
by Guang-Ming Bian - MSFT
- Hello,
I'm quite new to databinding in .Net.
Litte example:
We have a DataGridView that shows a collection of Customer objects.
The Customer objects implements the IEditableObject interface.
When the DataGridView displays the customers, it calls BeginEdit on all of it (we don't allow to edit in the gridview directly)
And this seems to be the problem, when we open a new di
-
- User Control Paint
by haihtomy
- 14 Replies
- Last post
by haihtomy
- Hi, I have form with user control the problem is when I move the form or minimize and restore it the strings disapeare but if I click on the user control the string show again. here is the code I used in user control:
Public Class tBox
Public Str As String
Private Pn As New Pen(Color.Blue, 2)
Private sBrush As New SolidBrush(Color.Red)
Private RectFont
-
- treeview and nodes
by The Geek for God&#33;&
- 2 Replies
- Last post
by The Geek for God!!!
- Hello!
I have a treeview on my form with Parent and child nodes, inside a split panel, with a read-only text box in the opposite side.
How do I make it so when a Child node is selected the textbox will say e.g. "Hello World" and then when another one is selected, it will clear the textbox and write something else
Here is the code:
Code Snippet
public par
-
- \r\n problems with textbox
by wallacr
- 8 Replies
- Last post
by Karthik Krishnaswami
- Hi All, I'm making a program which has a textbox, when I try to set the text of that textbox it seems to not allow \r\n to work, a small square box appears in the text instead of a new line being started. I've set the properties of the textbox so that multiline = true and scrollbars = true Does anyone know how I can resolve this please Any help would be gratefully received. Many thanks in advance
-
- Get List item based on location
by prashanth_prolific_coder
- 2 Replies
- Last post
by nobugz
- So mouse click event on listbox returns a location with x and y cocordinates.
I want the ability to get the object or the index of the listitem based on the Location that I will pass.
can i do that at all...
-
- VS 2003, false data concurrency error
by Yahya
- 2 Replies
- Last post
by Yahya
- Hi
I have a vs 2003 winform data app. All the data access code has been generated using the data adapter wizard and then pasted into the app. The problem I have is that I am getting a data concurrency error on mydataadapter.update() method. I know that there is no data concurrency problem as I am the only user testing the app. Obviously the error is misleading. What can I do from here to fix th
-
- send mail programatically in VB.NET 2005
by AlexDcosta
- 2 Replies
- Last post
by AlexDcosta
- How can i send mail programatically in VB.NET 2005 ....similar to System.Net.mail class
Mails should be transmitted through Outlook client.
I also want a Delivery status ......READ/DELIVERY FAILED.........
How can i accomplish this
Thanks,
Alex
-
- Two forms and checking 2nd forms text box
by ShawnKY
- 20 Replies
- Last post
by ShawnKY
- Hello all, I am coming from a VB .NET background and I am a little confused with how to access another forms properties in C#. Basically I am taking one of the exercises from my VB book and trying to convert to C# to help me learn C#. Anyhow, here is the task at hand. Form 1 is basically a list view of items that were sold for a particular day. One of the buttons on this form allows the user to op
-
- Datepicker with typing
by worldhello
- 2 Replies
- Last post
by Gavin Jin - MSFT
- Hello
Datepicker is very good but I want to enter date with keyboard.
In this case I can not write day or month individually.
How to program datepicker so user can type date as if he types
it always - shortly I need easy typing of date
Yosef Fishov
-
- MCTS Moc2547 Application Settings question
by mshvw
- 6 Replies
- Last post
by mshvw
- Hello, Are there some guys that also do study MCTS Moc2547 C# If so: it's about the resource toolkit book C# example code snippet, page 132. can someone tell me where 'Settings' in: public Color BackColor{ get{return (Settings["BackColor"]);} } applies to I get a compile error: 'myApplicationSettingsExperiment02.Settings' is a 'type' but is used like a 'variable' I search/read everythin
-
- Tool Tip Control
by Balagangadharan
- 6 Replies
- Last post
by Yu Guo ¨C MSFT
- Hello All
I have a tool tip control
i need to show the tool tip text when the Controls get focussed (not focussing the mouse to control), the tool tip should visible when the cursor in Controls.(txtbox,combo box,datagridcells etc)
Please help me
Thanks in Advance
Balagangadharan.R
-
- PLEASE HELP Transparency key problem
by Anonymousaaaaaaaaaaaaaaaahhhh
- 4 Replies
- Last post
by Zhi-Xin Ye - MSFT
- hi,
i want to know what im doing wrong here!
with the Transparency key it doesnt work for me, im on vs c# express edition .net 2 framework.
what i want is what ever is set Transparency key colour to be transparent on my form (to get a rounded form or any shape rather than getting squared form)
iv set the form border to none so you cant close it and iv set the Transparen
-
- Font is not displayed with underline or strikeout
by Reiner Obrecht
- 2 Replies
- Last post
by Reiner Obrecht
- Hi
I use a font with DrawString(). All works well. But when I use underline or strikeout style the font is displayed without underline or strikeout when the size is low or medium. It's ok on larger sizes.
Code example:
// The graphics object is mapped with millimeters and zoomed. string s = "1" ; // Font size 20F is faulty; Size 40F works well. Font font = new Font ( &qu
-
- Playing audio on Form
by Anonymous579010
- 1 Replies
- Last post
by nobugz
- Ok, heres the thing. I can get sound to play when the program is installed on my computer, but if someone wants to install it on theres, how can I make it, so they can hear the sound too, on a seperate computer.
-
- variables from one form to another
by Katatau
- 5 Replies
- Last post
by element109
- hi people...
well, here's my problem:
I am developing a game, and it already has two forms, and I need to show them both during the game. There are save and load game options, so at anytime the user can save his progress.
All these things are working all right, but I need to manipulate the variables of Form1 inside Form2. My way of doing that was:
- I passed the variables as argume
-
- want to select item that appears in the combobox text field
by hazz
- 2 Replies
- Last post
by hazz
- In a VB6 application, the sole item that appears in a combobox from form load is actually an item to choose when the combobox dropdown button is selected.
When clicking on the down arrow, the blue highlighted value "10.1.1.199" as shown below in Form_Load,
becomes an item to select underneath the initialized value ("10.1.1.199").
I can't recreate that behavior. I get a
-
- How do I get/set Font.Bold?
by DennisV
- 5 Replies
- Last post
by DennisV
- I am scaling a form by changing the form's font and all it's controls with this in Form1_Load: this.Font = new Font(this.Font.FontFamily, 10); foreach (Control ctrl in this.Controls) { if (ctrl.HasChildren) { foreach (Control childControl in ctrl.Controls) { if (childControl.HasChildren) { foreach (Control
-
- ComboBox in a Datagrid setting itself to NULL... Please help!
by xarg
- 2 Replies
- Last post
by Zhi-Xin Ye - MSFT
- Hey everyone,
I have been trying to get a ComboBox inside a DataGrid. It almost works now but the problem is that the ComboBox field sets itself to NULL, everytime I click on a column header!
The combobox is initialized as follows:
Code Snippet
public void AddSupplierList()
{
Database db = Database .Instance;
m_studentColumn.DataSource = db.Students
-
- flickering form problem (Have patience to read throught the content)
by cherian A.K.A. Ryan
- 4 Replies
- Last post
by nobugz
- hi, I have got this problem realted to flickering of forms. I have an MDI form. On click of a menu item mnuEditGame on the mdi form I load a form called Admin Edit. This is the code i have written for invoking this form Private Sub mnuEditGame_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mnuEditGame.Click Try Dim childForm As AdminEdit childForm = Not
-
- invisible GUI
by bsmylie
- 11 Replies
- Last post
by nobugz
- I have a GUI app that has been developed and tested on an XP sp2 box that has a strange problem when brought over to a 2003 server. The application loads and exists in the processes list, but the GUI never loads. The main form consists of a few labels, buttons, and panels. Strangly, though I can't see the form, it is still there. I can tab over an appropriate number of times to reach a button that