Answer Questions
Tom Frey Rich Text box and Table(Visual C# 2005)
Hey, is it possible to make the Rich Textbox Control have a table inserted into it Like the way MS Word does Thanks :) I'd like to say that it's hard to manipulate directly the table in richtextbox. Regarding the web browser control I mentioned, I thought you can use it to display the table generated. Of course, it can't get inputs. :-) But there is no way to code it into it As a feature in the program unless you customly made your own richtextbox control Thanks :) Well then, I'd like to know how you express the table. If it's done, the problem is easy to solve. Actually, with the copy & paste in the run time, the technique - OLE - is employed. Here's a link. http://en.wikipedia.org/wiki/Act ...Show All
Mike D12995 displaying images using gridview
Hi, I have added a DataGridViewImageColumn by code but my problem is when I want to sort. My datagridview is bind to a datatable (filled with database informations) and 2 columns added by code. The sort function is only on datatable's columns. My problem is when I want to sort my "added by code" columns have disappeared! Is there a way to keep persistante data in the datagridview Is there a way to sort "added by code" columns Is there a datasource which allow the concatenation of others datasources Regards. Hi, Do you know how to allow sort on a datagridviewImageColumn I have added one to my datagridview but when I do a sort displayed image disappear. I use a datatable (bind to ...Show All
paso How do I get these buttons to work?
I have made a simple form and have two buttons at the bottom. One of them I would like to be a reset button, the other I would like to set up to be a submit button to either send me the info in an email or to save the into to a file that I can access. You'll find lots of examples when you search the VB General forum for SmtpClient. can you post the exact error message I believe you are also not passing it credential details as well as giving it the port number to send to/use on the client SMTPClient object. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=616274&SiteID=1 http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=760457&SiteID=1 the last link is in C# but easily convertable to VB.NET D ...Show All
DavidR100 Database Woes!!!!
I am trying to enter data collected by an I/O card connected to the computer into a database. I have a data set and table adapters, no problems there. I can add the rows one at a time while the data is collected, to the dataset and when a specific number of new rows(in this case 25) has been reached the data set is appearently sent back to the database with a call to the Update() method in the table adapter. A text box displays the total number of affected rows i.e. 25. The problem is that when I view the table data in the database explorer my new rows are not in the database. As far as i can see I have all the neccessary code to save the rows and that they have been saved successfully but alas they are not there!! please help. Me . ...Show All
ackermsb Use Publish Wizard to register (regsvr32) a dll
Hi, I am doing a small project here which requires a 3rd party DLL be registered on the end user's PC. The budget for this project is tiny (not even in to triple figures!) so I'm reliant on either: Using the Publish wizard in VB.net 2005 Express Creating my own installer I'd rather use the former for simplicity. I can't work out how to make it register the DLL - including it in the final installation is fine, but running REGSVR32 for it - I can't find. I couldn't make my main EXE register it either by calling REGSVR32 when it first runs because I can't work out where the Publish wizard is dumping the files. Any suggestions Regards Daniel Thanks, I'll give it a try ...Show All
Dark Pontiac To show a ToolTip in a cell of a GridView
My problem is that I cannot prove to be a hint or tolltip in a cell of a GridView. Would it be better or easier to show it in a table Thank you ;D If you work on windows form,this thread will help you You said "GridView" Sounds like you're using ASP.NET, it's the same to add a tooltip: this .GridView1.Rows[0].Cells[0].ToolTip = "something" ; for those c# lovers out there I thought I would add this for you, so please enjoy if (e.Row.RowType == DataControlRowType .DataRow) { decimal status = Convert .ToDecimal(e.Row.Cells[4].Text); if (status == 0) { e.Row.Cells[4].BackColor = System.Drawing. ColorTranslator .FromHtml( "#dddddd" ...Show All
Stephanie L Updating an unbound DataGridView at Runtime
I am a beginner programmer, so please bear with me. Say you have a DataGridView. You dock it to a Window Form. You set some properties such as AllowUserToAddRows and AllowUserToDeleteRows. So far, so good. Now, according to MSDN, a DataGridView can be eighter bound to a Data source, or it can be used as is. If it's not bound, you simply add rows, fill them with data and it should work just fine. My problem is this. I build the solution, add a Setup project to it and then I deploy it ( that is, install it ) on my machine. Now, I open the application and start populating the rows with data. Everything is fine. I close the application. When I open it again, bingo! All the data is gone. There must be some king ...Show All
Worf Load tabpage into form
I have a tab control with some pages. How can i load dynamically a tabPage into a form Thank You using System; using System.Collections.Generic; Add one tab control, then add one button on the tabpage. try follow code, to see if it meet your case; hope it help you using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace WindowsApplication2 { public partial class control_from_tab_to_form : Form { public control_from_tab_to_form() { InitializeComponent(); } private void button1_Click( object sender, EventArgs e) { ...Show All
monkeynova combobox
Hello A problem! I am trying to do the tutorial about two tables (master/detail) lookup. but it will not work. Everytime when i changing a value on combobox (child table is updated corectly) but combobox (parent) datasource is updating also. like this combobox list at start 1 test (displaying item in combobox) 2 test2 3 test3 then when i change to "test2" the list will look like this: 1 test2 (displaying item in combobox) 2 test2 3 test3 someting is wrong here! please help. krister: it looks really strange, is there any touch with parent table (the combobox source), I suggest may be we can rebind the combobox datasource, set it to null then rebind, maybe work best ...Show All
moemen.ahmed DragDrop a custom class is not working between two application
Hi, Thanks to see me issue. I have two application. and in the first application, I drag a custom class to the other application. e.Data.GetDataPresent("AVLogic.Maps.MapObjectData") return true in the second applicaiton. But , (e.Data.GetData("AVLogic.Maps.MapObjectData") as AVLogic.Maps.MapObjectData) get null. It is working in one application(the source application built as DLL). thanks Some one could help Hi, are you referencing the same AVLogic.Maps.MapObjectData type from both applications [are both apps referencing the same dll with that type defined in it ] Andrej ...Show All
huysmans Right way to use a DataGridView Bound to Data
Hi there this question is fairly noobish but bear with me. What would be the right way to add Data to DataGridViewCells in a Databound DataGrid. Here is the complete problem: I have a DataBound Datagrid but the DataSet/DataTable behind doesnt have all the required data so I used the dataBoundComplete Event to add my data based on what the dataGrid has. the data added are some images, some values and colors based on what is on the datagridview i change the color of the rows or the text in the cells. I add an index to the first cell of every row to number every row. Then I change the color of that cell to a dark grey, after that I color the entire row the even rows are light grey the odd rows are white. After that I add some required da ...Show All
Kalaivani Prakash i want to select the combobox value ?but there is some problem
when i select the combobox value the following errors occur 1)An unhandled exception of type 'System.InvalidCastException' occurred in microsoft.visualbasic.dll Additional information: Cast from type 'DataRowView' to type 'String' is not valid. 2)There is no row at position 0 supportSupplier.vb Public Function BindField( ByVal ID As String , ByVal name As TextBox, ByVal address As TextBox, ByVal city As TextBox, ByVal phone As TextBox, ByVal sType As TextBox, ByVal creditFacility As ComboBox) Try qry = "SELECT * FROM Supplier WHERE IsDeleted = 0 AND SupplierID ='" & ID & "'" mTable = objDataBase.GetData(qry) name.Text = mTable.Rows(0).Item(&quo ...Show All
fscarpa58 list box and datasets
hey, how do you make it so that a list box shows the items on a dataset Thanks :) Hey, ok after tying to figure it out, I took a break on doing that part of the program, I came back to it, but, I still can get it to do it from the form to the dataset, but I just realized that I should not do it thrue a dataset... becuase then how are you supposed to backup your bookmarks if you are going to do somthing that involves uninstalling the browser or doing somthing to your computer And that I need to make it a .html file like Netscape and Internet explorer do. I learned how to add column inside of a datesaet thoe :) So that helped a bit on somthing... But now the new problem: How do I make it so it stores i ...Show All
BabyGBear 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
ExchangeMaster Add multiple controls t datagridview column???
Hi Is it possible to add multiple controls to a cell of a DataGridView I'm trying to develop a scheduler application and when the user clicks the cell content it creates an appointment. They can have 1-4 appointments within a cell and I want to display those four appointments as four separate labels within one cell. It is something similar to OutLook Calendar. Can this be done using a DataGridView. Or do I have to use some other control I will appreciate your help. Thanks ...Show All
