Jump to content
Xtreme .Net Talk

Robby

Moderators
  • Posts

    3848
  • Joined

  • Last visited

Everything posted by Robby

  1. Wyrd took the words right out of my mouth.
  2. Your ISP has nothing to do with this. The first thing I suggest is Uninstall the DotNet Framework, not visual studio IDE. (ONLY the Framework). Do it from the Control Panel >> Add/Remove Programs. Once you remove the Framework just insall it again. The reason is that during the initial it's possible that it didn't detect the IIS properly. The Framework can be found on the VS.NET CD, it's 21 Mb. in size.
  3. Could it be a video card(setting) or monitor issue?
  4. Do you have IIS 5.0 installed and running?
  5. Perhaps you can add/change the colors at run-time using the Color.FromArgb() method.
  6. Are you using System colors? or ?
  7. I'm guessing that Link1 is a LinkLabel drawn on the page
  8. here's a full sample on adding to the Format method of a DatagridTextBoxColumn... Dim dgStyle As New DataGridTableStyle() With dgStyle .AlternatingBackColor = Color.LightGray .BackColor = Color.WhiteSmoke .ForeColor = Color.MidnightBlue .GridLineColor = Color.Honeydew .GridLineStyle = System.Windows.Forms.DataGridLineStyle.Solid .HeaderBackColor = Color.MidnightBlue .HeaderFont = New Font("Arial", 8.0!, FontStyle.Bold) .HeaderForeColor = Color.White .LinkColor = Color.Teal .MappingName = "Appointments" .SelectionBackColor = Color.Yellow .SelectionForeColor = Color.DarkMagenta End With Dim grd5 As New DataGridTextBoxColumn() With grd5 .HeaderText = "Description" .MappingName = "Description" .Width = 75 End With Dim grd6 As New DataGridTextBoxColumn() With grd6 .HeaderText = "Dur" .MappingName = "Duration" .Alignment = HorizontalAlignment.Center .Width = 30 .Format = "c" ' <<< This will set the column to currency End With dgStyle.GridColumnStyles.AddRange(New DataGridColumnStyle() {grd5, grd6}) DataGrid1.TableStyles.Add(dgStyle)
  9. Most of this can be done with great ease if they will create the query based on one table, but if you want them to build on multiple tables using Joins, it won't be so simple.
  10. If I understand correctly, you want to highlight a row in the datagrid as though the user clicked (selected) a row. Is this correct? If so try this.... DataGrid1.Select(yourIntValue)
  11. For Update,Delete Insert queries you can use the Command object and the Excecute method.... Here's a simple function to do this... Friend Function ExecuteNonQuery(ByVal sSql As String) As Integer Dim cmd As SqlCommand Dim con As New SqlConnection(YOUR_CONNECTION_STRING) Dim recordsAffected As Integer Try If con.State = ConnectionState.Closed Then con.Open() cmd = New SqlCommand(sSql, con) recordsAffected = cmd.ExecuteNonQuery() Catch ex As Exception MessageBox.Show(ex.ToString) recordsAffected = -1 Finally If con.State = ConnectionState.Open Then con.Close() If Not cmd Is Nothing Then cmd.Dispose() End Try Return recordsAffected 'returns more than 0 if successful End Function
  12. Look here ... http://www.xtremedotnettalk.com/showthread.php?s=&threadid=49388&highlight=outlook
  13. Where are you declaring the SqlDataAdapter1? You can pass the Select and Connection String in there... Dim SqlDataAdapter1 As New SqlDataAdapter(sMySqlStatement, sMyConnectionString)
  14. Instead of Date() � 182.... try using the DateDiff() function.
  15. There may be a better way of doing this, but here's one way.... PlaceHolder1.Controls.Add(new LiteralControl("<center>")); label1.Width = System.Web.UI.WebControls.Unit.Parse("100%"); Label1.Height = System.Web.UI.WebControls.Unit.Parse("50pt");
  16. You'll have to pay.... http://www.brinkster.com/AboutSolutionComparison.asp
  17. Nice tips Nerseus... (I do the same with the push of my scroll wheel, but I only have 2 buttons)
  18. Do you know if your DS1 and OleDbConnection1 are valid (correct)? If you do this, will it fill your datagrid? "Select * From Table1"
  19. You can do this with a boolean... "......WHERE field4 = " & True
  20. Do you mean that you have many projects in one Solution and you don't want to compile all of them each time you run? If so, you can go into the Properties of the solution and select the projects to compile or not.
  21. You can have multiple tables in one Dataset. Then you can use the NavigateTo method to change from one table to another.
  22. - what controls are available in VB Pro thatare not included in VB Standard They should be the same - Is Crystal Reports included with STandard edition I don't know - How about data access - is ADO and/or ADO.NET available in Standard edition. Yes.
  23. What's the "Properties toolbar in VS.NET IDE" ?
  24. If... If Request.Cookies("FirstName") Is Nothing evaluates to True then the object is not set (That means it Is Nothing)
×
×
  • Create New...