Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
S

Sebastian Br

@Sebastian Br
About
Posts
21
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How to sequence a loop
    S Sebastian Br

    ...but in real-life I've seen "obviously unnecessary" else-blocks quite often. Most times there was an error-handling routine, which put something like "unhandled case; please look at routine foo()" to your log-file. And in some cases it make sense - who guarantees you that a guy who extends this routine, thought on all possible occurances of "i"?

    The Weird and The Wonderful tutorial question

  • Vb.net & SQLite
    S Sebastian Br

    You could use a "SELECT COUNT(*) ..." as SQL and then add something like this to your code: Integer.Parse(sqlCommand.ExecuteScalar().ToString) Another method is to create a DataTable first (using your SQL statement above): Dim aDataTable As DataTable Dim aDbDataAdapter As DbDataAdapter sqlCommand.CommandText = sql aDbDataAdapter.SelectCommand = sqlCommand aDbDataAdapter.Fill(aDataTable) aDbDataAdapter.FillSchema(aDataTable, SchemaType.Source) aDataTable.TableName = tableName and then evaluate the Row-Count: aDataTable.Rows.Count

    Visual Basic csharp sqlite design tools

  • VB 2008 DataGridView
    S Sebastian Br

    Try the following: For iRow = 0 To dgvPreview.RowCount - 1 For iCols = 0 To dgvPreview.ColumnCount - 1 (Note the additional "- 1" at the end of the lines) Maybe it is also helpful for your further devolpments to use try-catch-blocks, to handle exceptions. Normally the Exception itself contains several useful information, which could help you to identify the error's position and circumstances.

    Visual Basic help database oracle question announcement

  • How to watch StringBuilder strings while debugging?
    S Sebastian Br

    Thanks, works fine!

    .NET (Core and Framework) visual-studio com tutorial question

  • PrintDocument
    S Sebastian Br

    Maybe you could inspire yourself using this resource: http://omgili.com/newsgroups/microsoft/public/de/german/entwickler/dotnet/vb/F926EA6F-B957-4842-BE93-C862FBC5E9B3microsoftcom.html[^]

    .NET (Core and Framework) graphics question

  • Where do you go for Icons?
    S Sebastian Br

    Take a look at Axialis. They got some very nice icon sets for free (as far a I rember u can use it under a Creative Commons license). http://www.axialis.com/free/icons/[^]

    Visual Basic css database question

  • SQL:what is wrong in following query
    S Sebastian Br

    I would take a look on the SQL statement directly before executing.

    Database database question

  • ADO.NET / Update Column in memory
    S Sebastian Br

    It works fine, thanks.

    Database question csharp database performance announcement

  • ADO.NET / Update Column in memory
    S Sebastian Br

    Okay, I'm new to the whole ADO.NET stuff, so don't punish me to hard if I ask a total bullshit question... First, here's a piece of code (assume, aDataSet is already initialized and the table "aTable" also exists):

        Dim aRow As DataRow
        aDataSet.Tables("aTable").Columns.Add("isParent", System.Type.GetType("System.Boolean"))
        For Each aRow In Me.mDataSet.Tables("aTable").Rows
            aRow.Item("isParent") = True
        Next
    

    What I wanna do: Add the new column "isParent" to "aTable" (okay, I managed this), and initialize it with a standard value (I do this in the for-next-loop). But I thought, there must be a more elegant way to do this, without picking every single cell in a loop. Anyone know a good solution? I don't need to write in a database, 'cause my aDataSet is build on the fly, without database representation.

    Database question csharp database performance announcement

  • convert string to int?
    S Sebastian Br

    Are you sure your variable has any value?

    Visual Basic csharp tutorial question

  • Icons to Applicaton
    S Sebastian Br

    Axialis has several sets of icons which should fit for most tasks: http://www.axialis.com/free/icons/[^] The icons are licensed under the Creative Commons Attribution License.

    Visual Basic question

  • VB.NET / Printing Webbrowser Control
    S Sebastian Br

    okay, but how can I assign PrinterSettings to .NET's webbrowser control?

    Visual Basic help csharp com tutorial

  • VB.NET / Printing Webbrowser Control
    S Sebastian Br

    Thanks for your reply, but the article won't help me. I need to specify the printer name via source code.

    Visual Basic help csharp com tutorial

  • VB.NET / Printing Webbrowser Control
    S Sebastian Br

    Hello, I need some help related to printing from .NET's Webbrowser control. I already figured how to print and how to change header/footer, margins and so on ( Some Cool Tips for .NET[^] ). But how I can change the printer that is used for this printjob? I know I could use webbrowser's .ShowPrintDialog() or .ShowPageSetupDialog() methods, but my users shouldn't gambling with this dialogs... they only want printing, without any dialogs, so I must select the printer in my source code. I also know I could change the default printer for exactly the time my printjob is in the pipeline - but that's not fine art, isn't it? That seems to be the ultimate brutal solution, so I would prefer a more elegant solution for my problem. Any suggestions? Thanks for all answers, and I hope I made my problem understandable... - Sebastian

    Visual Basic help csharp com tutorial

  • problem related to sorting of listview....
    S Sebastian Br

    Okay, you defined your sorting order, but you forgot to sort! Add the following: Me.lst1.Sort()

    Visual Basic help algorithms tutorial

  • Datagridview Print in VB
    S Sebastian Br

    There's already a good article about printing a DGV which helped me a lot: http://www.codeproject.com/KB/printing/datagridviewprinter.aspx[^] Note that there's an translatioon to VB in the comments at the end of the article.

    Visual Basic help tutorial

  • Compare two Table
    S Sebastian Br

    Look here: http://www.w3schools.com/Sql/sql_join.asp[^] http://www.w3schools.com/Sql/sql_join_inner.asp[^]

    Visual Basic database tutorial

  • Printing Datagridview
    S Sebastian Br

    ...or this: http://www.codeproject.com/KB/printing/datagridviewprinter.aspx[^] Note that there's also a port to VB.NET in the messageboard at the end of the article.

    Visual Basic question

  • Upgrading VB6 to VB.net printing problem
    S Sebastian Br

    I cannot help you exactly on your problem, but Microsoft has an excellent article on printing in .NET: http://msdn.microsoft.com/en-us/magazine/cc188767.aspx[^] It helped me a lot to learn about printing in VB.NET. Note that there's some source-code relating to the article which also deals with multi-page texts. Maybe it's worth to have look. There is also a lot neat stuff in it, like status texts in status bars, print preview and so on.

    Visual Basic help csharp tutorial

  • How to Change Cell Backcolor if Datagridview2.item.value = Datagridview1.item.value [modified]
    S Sebastian Br

    What exactly you need to know?

    Visual Basic com tutorial
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups