Topics
-
- 0 replies
- 993 views
Dear Friends, I am using combobox column in datagrid. And I am setting AlternatingBackColor of grid to Blue. But the combobox column is not displaying the AlternatingBackColor. How to do this. The following is the paint text method i used. Private Sub PaintText(ByVal g As Graphics, _ ByVal Bounds As Rectangle, _ ByVal Text As String, _ ByVal AlignToRight As Boolean) Dim BackBrush As Brush BackBrush = New SolidBrush(Me.DataGridTableStyle.BackColor) Dim ForeBrush As Brush = New SolidBrush(Me.DataGridTableStyle.ForeColor) PaintText(g, Bounds, Text, BackBrush, ForeBrush, AlignToRight) End Sub Private Sub PaintText(ByVal g As Graphics, _ …
Last reply by smriti, -
- 2 replies
- 831 views
Hi... I want to undestand how DataTable works when it presents data on a DataGrid. So: 1. DataTable have 2 collections that interest me: > Columns > Rows 2. DataRow object have only one constructor and it's pivate. This means that this object can only be created thru Reflection. 3. Inspecting a DataRow object at run-time, it seems that this object is, in fact, a collection, from where we van retrieve data thru index or name. 4. Now... How can we have a collection (Rows) witch each item is a collection (DataRow) and still the DataGrid can grab the column name and put it on the column header and grab the value and put it on the cell? The c…
Last reply by AlexCode, -
-
- Administrators
- 1 reply
- 2k views
Hi all! I'm trying to show a Crystal Report report in my webform but logon fails, can anyone please help me?
Last reply by PlausiblyDamp, -
-
- 0 replies
- 1.1k views
Hi all! Does anyone here have any experiense with Crystal Reports in VB.NET? Need all the help i can get!
Last reply by feffe, -
- 1 reply
- 3.4k views
Is there anyway to get a list of all the databases on a mysql server using vb .net? Then is there a way to list the tables in these databases? Thanks, Chester
Last reply by michael_hk, -
- 3 replies
- 855 views
Hi, this my first post, but: OK, I have a CheckedListbox being populated from a DataSet. I have the code: Dim item As Object For Each item In CheckedListBox1.SelectedItems Next Now, I want each item to be added to the DataSet based on its position in the ListBox. Obviously, I cant say newdatarow(0) = item.PositionInListBox So what can I do?
Last reply by AlexCode, -
- 6 replies
- 1k views
I have made a program to keep track of my 'To Do' list here at work. These things 'to do' are listed in a listview with columns such as name, due date, due time, etc. Some of these things 'To Do' have certain requirements associated with them before I can say I have completed them. I'd like to display a progress bar for each task showing the progress of the task based on how many of the requirements are done. So, I had this cool idea. Instead of using some extended list view to display a column entirely made up of progressbars, I thought it would be neat to have a progressbar with 50% opacity spanning the entire row across all columns. The task data in each column…
Last reply by AlexCode, -
- 1 reply
- 701 views
hello, how do I add a picture in datagrid and some text should follow the pciture? Please
Last reply by AlexCode, -
- 1 reply
- 3k views
Dear friends, In windows forms application. How to disable the columns of datagrid from resizing by using mouse. Is it possible? If so please guide me to do. Thanks
Last reply by AlexCode, -
- 1 reply
- 1k views
Hi All, I am trying to customise my columns on a datagrid. I have used code similar to this before, however my code is not altering the column widths. Here is the code: Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim mydgTableStyle As New DataGridTableStyle Dim mygrdColStyle1 As New DataGridTextBoxColumn Dim mygrdColStyle2 As New DataGridTextBoxColumn DataGrid1.TableStyles.Clear() With mydgTableStyle .MappingName = "ds.tables(0)" End With With mygrdColStyle1 .HeaderText = "Email Address" .MappingName = "Email" .Wid…
Last reply by AlexCode, -
- 1 reply
- 849 views
I've decided to create a report based on an sql query...something like this: Dim SqlConn As New SqlConnection("Data Source=PUIUALEX;User Id=Puiu;password=puiu2108;" & _ "Initial Catalog=ImageLibrary;") Dim StrSql As String = "select Media.Description, Media.idmedia, count(*) as TotalDownloads from Media, Images, Requests where Media.idmedia=Images.idmedia AND Requests.idmedia=Media.idmedia AND Requests.aproved='T' group by Media.Description, Media.idmedia" Dim objDa As New SqlDataAdapter(StrSql, SqlConn) Dim objDs As New DataSet If SqlConn.State <> ConnectionState.Open Then SqlConn.Open() End If objDa.Fill(objDs) …
Last reply by Puiu, -
- 1 reply
- 1.2k views
Hi, I haven't been here in a while... but I'm having troubles that I can't find the answer to... so here I am. I am using Visual Basic in Visual Studio 2005 Beta 2 to make a user login system, and I've got most of it working, but when I do 'UsersTableAdapter.Update(databaseDataSet.Tables(0))' it does not update the database with what is in the dataset. I am sure the dataset has the correct information because I've checked it before the application exited, then checked the database afterwords, and they aren't the same. I have a BindingSource, DataAdapter, and DataSet on the form. Is there something I am suppose to do to make it update the database file that I am …
Last reply by rot13, -
- 1 reply
- 1.1k views
in my application i have a combobox to select a job number. below i have 2 textboxes, one for Client and one for job name. the text boxes have to be filled in by selecting a job number from the combobox. all of the information is stored in an xls excl file, column a being job number, b being client and c being job name. for starters i dont even know how to get the combobox to read the first column. would it be possile to setup a Vlookup function on the spreadsheet? thanks guys
Last reply by jmcilhinney, -
- 1 reply
- 5.7k views
Create MySQL database using vb .net {RESOLVED} Is there anyway to create a MySql database on an active server using a .net data provider? I have seen ways of creating a database using MS SQL server and Vb .net, but I am not sure if the same is possible using MySql and Vb .Net. Anyone hve any ideas? Thanks, Chester
Last reply by cpopham, -
-
- Administrators
- 2 replies
- 1.2k views
Ok I need help In vb6 winsock was easy to work with set the protocal tcp or udp. here is the local port bind, or listen. here is the remote ip and port then senddata or connect. ahhh life was good. So I satdown to look at sockets and whoa, I need a tutorial. So I hunted and found some and I ether couldn't get them to work or I didn't understand what was going on. I found another tutorial in the tutorial section that I'm making some progress, code is on another computer. Could some one show me how to do this in VB.NET. Winsock1.RemoteHost = "192.168.1.1" Winsock1.RemotePort = "2002" Winsock1.Bind 2002 Winsock1.SendData "data to send" Private Sub Winsock1_DataA…
Last reply by ZeroEffect, -
-
-
- Moderators
- 1 reply
- 961 views
I am dynamically building EditItemTemplate columns for a datagrid. Whenever the "edit" or "update" commands are issued the event code fires but there isn't any textbox controls in the Item collection. The following code yields a "null" reference on postback, when there should be a textbox called txtOne in the collection. textBoxOne = (TextBox)e.Item.FindControl("txtOne"); Any ideas? TIA , Shawn PS. The following article shows the method that I am using to create the template columns. http://www.dotnetbips.com/displayarticle.aspx?id=84
Last reply by Robby, -
-
-
- Leaders
- 6 replies
- 1.1k views
Can someone help me solve this problem, please. What I want to be able to do create variable names dynamically / at runtime e.g. say I have an array 'myArray' that has 5 values in it, what I want to be able to do is loop through that array and create a variable called 'simon' & the index that I am at in the array (something like code below) dim [color=Red]i[/color] as integer for [color=Red]i[/color] = 0 to myArray.count - 1 dim simon[color=Red]i[/color] as string next i So the output would be five new string variables called: simon1 simon2 simon3 simon4 simon5 Is this possible to do??? Thanks Simon
Last reply by jmcilhinney, -
-
- 1 reply
- 1.4k views
I'm trying to write a program that adds a menuitem to the contextmenu of any textboxes in any windows program. The menuitm I'm talking about has a submenu with a number of choices, each choice does a different thing - but what each choice does is not important for this question. I know I can create a system-wide mouse hook to catch right-clicks on any application on the system - but once I've done that, I want to display whatever contextmenu the application in question uses for text boxes, but with my added item as well. Is this possible? How can I do it? I know how to do the hook part of it so I don't need that explained to me - although, if it's possible to do it w…
Last reply by mickn66, -
- 1 reply
- 955 views
Hi All! Does anyone know how to dynamically create a datagrid in a webform THANKS ALOT!
Last reply by sysdesigner, -
-
- Leaders
- 8 replies
- 1.6k views
I'm thinking this might make a good .Net 2.0 project. I'm programming a lot in Progress, which has it's own IDE... which is pretty awful. I'm looking for a basic IDE with the most basic features: find, replace, tabbed formatting (really being spaces), keyword highlighting, line numbers. Thats all basic stuff that I could find in many freeware or low priced-ware mini IDEs. Other things I'm looking for: Commentable IDE Code - basically every language has a way to comment a line. So you can put a comment line in and include a command for the IDE. Sort of similar to how you insert Javascript into HTML comments. so you could do this: '//RegionBegin: "Va…
Last reply by iebidan, -
-
Who's Online 0 Members, 0 Anonymous, 65 Guests (See full list)
- There are no registered users currently online