-
- referring to unbound controls from form
by SANDYROSENBERG
- 5 Replies
- Last post
by SANDYROSENBERG
- I have a very simple form. It has two unbound text boxes, a button, and a datagrid. The user will put text in the text box, then click the button. The On_click sub will then create the proper filter based on what they entered and fill the datagrid. I am having trouble referencing the text boxes on the form. They are called txtFund and txtDepartment. My code is shown below. When I run the form, I
-
- ListBox problem....or bug in VS 2005
by cygnusx
- 5 Replies
- Last post
by cygnusx
- I have a problem with ListBox.When i add it in a panel and set it's Dock property to Fill,obviosly it must fill the space in the panel,but there is a blank space in the bottom side of the panel.Even if i change it's BorderStyle to None,there is no change....But if i reduce the panel height everything is ok,of course i do not want to reduce the height of the panel in my application.The other thing
-
- Password
by no1plantman
- 8 Replies
- Last post
by FuadA
- My friend has given me his old pc ( for my son ) which has windows 2000 on it. Problem is that he has forgotten his password. Is there a way to get around the password
Any help would be greatly appreciated.
Thanks
-
- ASP.NET Master page like templates for Windows forms?
by My Vizai
- 2 Replies
- Last post
by My Vizai
- Hi Experts,
Can I create MASTER PAGE (ASP.NET ) like template forms in windows applications
-
- How to transform XML file to table in the database
by Ccm1st
- 2 Replies
- Last post
by joeller
- Hi Guys, I have an XML file. I want to create an equivalent table of that XML in the database. Can you map the XML file to the table, so that whenever you update your XML file, the data in the database also gets updated and whenever data in database changes, the XML file gets updated
-
- Event Question
by MandoBoon
- 4 Replies
- Last post
by MandoBoon
- How can I prevent an event from running during the load of a Form. For instance I have a RadioButton that have a Click event that runs everytime that the form is loaded into memory; I just want that event to fire just when the user clicks it.
thanks.
-
- Is Form Height limited?
by Radoslav Č&am
- 5 Replies
- Last post
by ntradek
- Why isn't possible set Height value for windows form greater than 1044. When I write bigger value is automatically repaired on 1044.
Thank's for any idea.
-
- Combo Boxes
by Ravi Santha
- 4 Replies
- Last post
by RaviSantha
- I have I have few comob boxes on my windows forms and all of them are binded dynamically. Lets say I have combo boxes A, B, C and D. Now C is rebinded when index changes in B and it works fine and the value is selected accordingly. Now when I just click on Combo A or B or D .. the selected value disappear in combo C (going to the default one). I am so confused why this is happening even though no
-
- delete DataRow in DataTable
by o00oo00o
- 1 Replies
- Last post
by Muthu Krishnan. R
- Hi,
I have a table (GUI) using DataTable as the datasource.
When I delete a row, I get the selected row and then call the Delete method on the DataRow. Do I need to call AcceptChanges method
The DataTable is NOT bounded to a database.
Sometimes when I call AcceptChanges I got an exception, row does not exist or something like that.
Thanks,
Max
-
- Center a label
by p_ljung
- 6 Replies
- Last post
by p_ljung
- Hi!
I'm trying to center a label in a form. This works fine in designmode, but when I change the text during runtime to a shorter or longer phrase, the text isn't center anymore.
How can I solve this
I have tried
Code Snippet
double x = (this.Width /2) - (label.Text.Length /2);
int left = (int) Math.Round(x);
label.Left = left;
But it does
-
- text change colour??
by Poy
- 6 Replies
- Last post
by Poy
- Hi Everyone...
below doesn't work! any ideas
so frustating!!!
Code Block
If txtCompleted.Text = "Yes" Then
lblCompleted.DefaultForeColor.Red()
End If
-
- How to implement resources (gif pictures)?
by mshvw
- 1 Replies
- Last post
by mshvw
- Hello, I managed to put some gif pictures in the 'Project > Properties > Resources' part of the project. Now I want this images to appear on my buttons but I don't know how to access the internal project Resources. A small code exmaple will do. regards, Henk
-
- Which menuitem was clicked on a contextmenu ?
by Thomas E
- 2 Replies
- Last post
by Thomas E
- Hi :-)
I'm currently working on a small C# WinForm application has has a trayicon with a contextmenu, so far it all works fine.
But since the Context items are all populated from a xml file, I'm looking for a way to find out precisly which menuitem was clicked by the user. I have implemented the MenuItem.Click event, but it only gives me the default System.EventArgs which has no info
-
- How to handle JavaScript event in WebBrowser control?
by Ashish Dwivedi
- 3 Replies
- Last post
by Zhi-Xin Ye - MSFT
- Hi All, Can somebody help me in how to handle JavaScript functions in WebBrowser control. Thanks in Advance Ashish
-
- Keep getting failed to connect with clickonce when republishing
by nnnnnpatel
- 0 Replies
- Last post
by nnnnnpatel
- I have been having problems trying to solve this for 2 weeks now. I have successfully published my visual basic windows application once onto a server. When I tried to republish again, I kept getting the following errors:
Error 2 Failed to connect to 'http://11.15.240.83/JAMSDemo/' with the following error: Unable to create the Web 'http://11.15.240.83/JAMSDemo/'. Server error: 'JAMSDemo' d
-
- Controling forms datasorse through vb
by Gambithunt
- 1 Replies
- Last post
by Guang-Ming Bian - MSFT
- Hi all I'm working on a form in Access, I have a list box and a calender, I would like to set up the list so that its table query is linked based on the calendar. When I like on the calendar I would like the list to display only entries that correspond to the months selected in the calendar, Help would be much appreciated. G
-
- MouseUp-Event doesn't work correctly for the ListView
by Aki999
- 2 Replies
- Last post
by Aki999
- using Visual Studio 2005. The OnMouseUp-Method or the MouseUp-Event is fired correctly, when the mouse cursor is within the area of the ListView-Control. But when I hold the mouse button and then loose the button outside the control it is not fired. Then when I move inside the control again with the cursor suddenly it is fired. Other controls like the listbox or the datagridview does not have suc
-
- Code After load
by rnby
- 2 Replies
- Last post
by nobugz
- Hi, I'm loading a form that loads a lot of data from a server app. this causes the application to wait with displaying till all the data is loaded. I am looking now to load the data after the form us fully loaded. is there a way to do that like makign an new event called after_Load instead of Load. Thanks
-
- How can I make WebBrowser and AxWebBrowser the same thing.
by kcdclan
- 8 Replies
- Last post
by kcdclan
- this .webBrowser1 = new System.Windows.Forms. WebBrowser ();
this .axWebBrowser1 = new AxSHDocVw. AxWebBrowser ();
I have to have two forms and I need them to be one. One has one the other don't Same with other. I don't know how posable it is but what way could I get around this
-
- Load and resize image
by cgraus
- 3 Replies
- Last post
by JohnWein
- Obviously, I know how to load an image from a memory stream ( which is what I have on hand in this instance ), and I know how to resize it. What I want to know is, if I have a memory stream that represents a 4092x4092 PNG, does any method exist where by I can create a 1024x1024 ( for example ) copy of this image without having to have enough memory to hold the full size image as part of the proces
-
- How can I get or set Checked value of DateTimePicker which is inserted into DataGridView?
by pvphuc
- 7 Replies
- Last post
by pvphuc
- I got CalendarColumn from MSDN online and I try to check Checked State of the Cell which is DateTimePicker but I can not. Please help me how I can do this. Thanks so much. Best Regards, pvphuc
-
- How to stop application execution before installation completes?
by msdn_quest
- 4 Replies
- Last post
by Willem van den Broek
- Hi I have created installation for a small desktop application using setup project. Application is in c# and Ms-Access.My problem is Application starts before installation completes and installation stops in between. After my closing application, installation completes. How to stop this thanks.
-
- How do I update the changes from my DataGridView into my Access Table
by Biswajitghosh25
- 14 Replies
- Last post
by Rong-Chun Zhang - MSFT
- Dear All,
I have a edit button in m form and when i press it, it will ask for which record you want to edit. After inserting the correct record in that Input Box it will move to the records and allow me to edit. The other rows then are read only. I am being able to edit the row. but whenever i press the ok button to update the records in original access table, its updating the data but
-
- Retrieve Object from ListBox
by RLovelett
- 9 Replies
- Last post
by RLovelett
- I've got a OleDBDataReader object whose values I want to store in a ListBox for user interaction. The values I'm storing in the ListBox are the users first and last name (this is the displayed values). And I'm storing in the ListBox the users Social Security Number. I have done this by way of creating an object: class ListBoxStorage { public object data; public string display_string; p
-
- Would this be an ok way of initializing a child window?
by Pickra
- 2 Replies
- Last post
by nobugz
- Code Snippet
private void OpenWindow(Object Formname)
{ Formname ObjWindow = new Formname(); ObjWindow.MdiParent = this; ObjWindow.Show();
}
private void fclsParent_Load(object sender, EventArgs e)
{
this.ObjWindow(FclsChild);
}