-
- How to enable a control from the parent form when the child form is closed?
by Luis Esteban Valencia Mu&a
- 2 Replies
- Last post
by Wizdave
- This is the code I have but havent found a way to compile it
Private Sub Form2_FormClosed( ByVal sender As System.Object, ByVal e As System.Windows.Forms.FormClosedEventArgs) Handles MyBase .FormClosed
Dim myForm As Form1
Dim btn As Button
Dim myControl As System.Windows.Forms.Control
myControl = myForm.Controls.Find( "Button1" , True )
bt
-
- Datagrid - Default Values
by ZopoStyle
- 2 Replies
- Last post
by Zhi-Xin Ye - MSFT
- Hi,
I have a dataset got from a oledbdataadapter, and what I want is to fill a DataGrid in a way that all the properties of the datatable like primary keys and default values, is filled automatically when the user inserts a new row...How can I do that
Example
My Table
COD_CLIENTE int primary key;
email varchar(255) not null;
date_ini datetime default getDate() not nu
-
- Datagridview Cell Formatting vb.net to c#
by Phabi
- 4 Replies
- Last post
by Phabi
- Hi Im porting my vb.net code to c# code. The following code runs great on the vb.net application: Private Sub DataTable1DataGridViewOn_CellFormatting(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellFormattingEventArgs) Handles DataTable1DataGridViewOn.CellFormatting If e.ColumnIndex = 0 Then If Me.DataTable1DataGridViewOn.Rows(e.RowIndex).Cells(3).Value = "online"
-
- Datagrid, tab controls
by Anonymous574488
- 1 Replies
- Last post
by Bob zhu - MSFT
- I think I have figured it out. Something to do with Access, datasets, datatables etc....
-
- Retrieving installation URL used for ClickOnce deployment
by southc
- 2 Replies
- Last post
by southc
- I have a situation whereby a single physical ClickOnce application (i.e. one set of deployment / application manifests) is located on a webserver.
We'd like each one of our clients to have a different URL from which to install the app (i.e. client1.myco.com, client2.myco.com etc.) Each of the URLs would point to the same physical files by means of using a set of host headers in IIS.
In the
-
- How can I use fonts othern than TrueType and OpenType fonts in Windows Forms
by karimelias
- 3 Replies
- Last post
by nobugz
- The font boxes in all control properties do not show any of installed non TT or OT fonts in the system, in addition I cannot figure out how to programmatically create a System.Drawing.Font instance representing such a font. I need to do this in a System.Windows.RichTextBox control, the interesting things is that I can copy and paste text from word in the desired font and it would show correctly in
-
- Get the primary key from a data bound combo box
by Flea#
- 2 Replies
- Last post
by Flea#
- Hello,
I am using C# 2005. My problem is that I need to be able to get the primary key value from selecting the persons name from the combo box.
I have a combo box that is bound to a dataset. The dataset runs a SQL query to get the primary key, first name, & last name.
string SQL = "SELECT cdeUSERID, dscSHORTNAME + ' ' + dscLASTNAME AS FullName FROM tEmployee" ;
In order to
-
- BindingSource.Count not always right
by Will Buchanan
- 1 Replies
- Last post
by Naga Satish Rupenaguntla
- Hi
I am using a BindingSource for my app. When I set it's DataSource to be a DataSet I have created on the fly it tells me that BindingSource.Count = 0. Looking at the data I can see that there are 1000 rows in the DataSet - why does it tell me the count is 0
Thanks
-
- How to implement Drag and Drop on a DataGridView ?
by Coder@work
- 1 Replies
- Last post
by Gavin Jin - MSFT
- Hi I am trying to make a control using DataGridView. One of the functionalities that I want in this control is to select cells using Drag and Drop Effect. Can anyone help me with this -Saurabh
-
- Text wrapping labels inside FlowLayoutPanel
by TechMan
- 4 Replies
- Last post
by nobugz
- I have a FlowLayoutPanel with [label1][image1][label2] and I want the text to be wrapped. The problem is that if [label2] has no room for all its content in a single line it starts from the next row in the panel and then use wrapping. I use default settings for the labels and the main panel is inside a dedicated user control. Instead of getting: [label1][image1] This is a long text of label2 whi
-
- HELP!! HPET Test Problem under Vista
by Jones_Fu
- 5 Replies
- Last post
by WLBS
- Hi all:
I come here fisrt. Now, I met a big problem that Vista DTM test item--Hal Timer Tests(HCT) for HPET feature failed as following information. I see it is not HPET function fail, just "SetupCopyOEMInf" copy file error. But I don`t know what error happened
File="d:\winmain\base\hals\haltest\exe\intrprt.c" Line="1016" ErrCode="0x80004005" E
-
- Not a valid Win32 application error
by RichLeyshon
- 4 Replies
- Last post
by RichLeyshon
- I have used Dotfuscator to obfuscate a file, as follows
Publish the app
Obfuscate the .exe file then replace the one in the Publish folder with it
Sign it
Use MageUI to generate and sign the manifests
The app installs but won't run giving the above error.
I'm getting desperate here, any advice would be VERY much appreciated.
Cheers,
Rich
-
- WebBrowser control shows HTML code
by Aussie
- 8 Replies
- Last post
by Figo Fei - MSFT
- Hello,
I've a project where i'm assigning a HTML string to the DocumentText
property of the WebBrower. On most PCs there's no problem with it, but
there are PCs which show the actual HTML code instead of the webpage.
Any idea's what's the reason and a possible solution :)
Regards,
Aussie
-
- Making a PointFConverter
by Barguast
- 1 Replies
- Last post
by nobugz
- I'm
trying to implement a PointFConverter since, for some reason, it was
left out of the .NET Framework. I've basically copy and pasted the
SizeFConverter and done a find and replace of ['SizeF' > 'PointF'],
['Width' > 'X'], and ['Height' > 'Y']. Since I can't apply the TypeConverter to the PointF structure, I am instead assigning it to Properties. For example; [TypeConverter(typeof(
-
- ComboBox problem
by balusmca
- 5 Replies
- Last post
by Daryl F
- Hi, I did set AutoComplete property of ComboBox as 'Suggest' for get suggetion while typing in combobox. In the 'KeyDown' event of the form, im closing the form if keycode is 'Escape'. But, before that i need to check that combox is Dropped down or not. when AutoComplete mode is 'Suggest', DroppedDown property is always false in combobox. so, how i can get correct value that combobox is droppeddow
-
- ByRef problem
by Syed Shujaat Hussain
- 7 Replies
- Last post
by Mattias Sjogren
- Hi,
I was just wondering how to store the "reference" of a variable inside a class's local member using VB.NET. Here is an example:
I have a class MyClass with the following constructor:
Public Class MyClass
Private m_Val As String
Public Sub New(ByRef pVal A s String)
m_Val = pVal
End Sub
Public Sub DoSomething
m_Val = "
-
- Make a networked drive appear local?
by AJ-VENNING
- 6 Replies
- Last post
by Peter Ritchie
- Hi everyone, need a bit of info. Here the situation: Client has a 50 PC network, wants to remove access to C: drive but wants to make the networked "Shared (D:)" drive appear as a local drive (i.e not using "map network drive" function).
Does anyone know how I can achieve this I have seen it done before.
Regards and merry christmas to you all!
AJ
-
- how to filter values in table using DataView?
by sadineni
- 1 Replies
- Last post
by Figo Fei - MSFT
- hi,
i require how to filter the table depending up on the multiple values in same column using Dataview.
i.e., i have 1,2,3,4 and so on. in one column. i require to filter rows of table, for column having values (2,3) using Dataview.
please any one can help.
-
- auto scrolling
by bola shokry
- 4 Replies
- Last post
by bola shokry
- hi
i have a readonly richtextbox , I need that when the text changed on it , the vertical scroll bar go automatically to the lower side;
how can i do it
thanks.................
-
- Store settings in C# application
by nalini
- 8 Replies
- Last post
by nalini
- Hi,
I need to use a database connection string in my VS 2005 C# application. But I dont want to hardcode the path in my C# code. I might change it over a period of time and I dont want to compile the code everytime. What is the approach that is recommended
Thanks in advance
Nalini
-
- force control painting with GDI
by just a guy 333
- 2 Replies
- Last post
by just a guy 333
- I have a control which paints itself with GDI+.
When I'm applying the RTL layout flag to the control in the CreateParams (which mirrors it), the control has black line on it.
I understood that painting the control with GDI instead of GDI+ will solve the problem.
the control is a 3rd party class and i'm overriding its OnPaint method.
Thanks a lot.
-
- bind TreeView using xml
by Batool
- 3 Replies
- Last post
by Zhi-Xin Ye - MSFT
- how can i fill a treeview using xml data source in a windows application
thx
-
- Problem while handling excel file
by Fozia Izhar
- 1 Replies
- Last post
by Zhi-Xin Ye - MSFT
- Hi to all,
I m developing a window application which is comparing 2 excel files and insert result in 3rd excel file.I want to delete previous records from the 3rd file and then insert new record, i m doing this by making all rows blank but becoz operation is commiting at the end of event, it is blanking the previous rows but append records after the blank rows, how can i save excel file in
-
- INotifyPropertyChanged and the property name
by Jan V&&#35
- 6 Replies
- Last post
by Jan Vít
- Hi all,
I have a simple business object that implements the INotifyPropertyChanged interface. One of the properties looks like this:
public string FirstName
{
get
{
Debug .WriteLine( "FirstName - GET" );
return firstName;
}
set
{
if (firstName != value )
{
Debug .WriteLine( "FirstName - SET" );
firstName = value ;
-
- ListView row header in vb.net
by nbk5533
- 6 Replies
- Last post
by nbk5533
- Can anyone tell me of a link or a resource on how to create a row header (with numbering from 1 to "some unlimited number") for a vb.net ListView control that will display my total number of rows for me
Thank you,
nbk