Search Results - VBForums

Search:

Type: Posts; User: jmcilhinney

Page 1 of 13 1 2 3 4

Search: Search took 1.20 seconds.

  1. Re: I need help - How to allow user to add a new field in a table (access)?

    It is possible to do what you ask for but it would be wrong to do so in this case. As is almost always the case, you should be adding rows at run time, not columns. All you need to do is break your...
  2. Replies
    4
    Views
    93

    VS 2013 Re: Maximum value?

    E.g.
    x = Math.Min(10, y)x will contain either 10 or y, whichever is the lower value.
  3. Re: Next Item for Listbox in Background Worker

    You're not listening. You've been told twice now that that the Form2 you're referring to in that code is not the Form2 that you're looking at, so why would making a selection in the Form2 you're...
  4. Replies
    1
    Views
    53

    VS 2010 Re: Checking IP's in a list box

    No, BackgroundWorkers cannot do that. BackgorundWorkers do basically one thing: they raise an event on a background thread. That's it, that's all. You can handle that DoWork event just as you can...
  5. Re: Not part of an aggregate function . From database to datagridview

    You have to group by every column that is not included in an aggregate. Product is not included in an aggregate so it must be included in the GROUP BY clause.
  6. Re: problem with updating datasource in vb.net

    You create a row and populate it but you never add it to the DataTable, so there's no changes to save when you call Update. Not only that, you have no INSERT statement to insert the new record even...
  7. Re: problem with updating datasource in vb.net

    You've told us that you have a problem but you haven't told us what that problem is. Please provide a FULL and CLEAR explanation of the issue. Tell us:

    1. What you're trying to achieve.
    2. How...
  8. VS 2013 Re: Major Project lost references to custom usercontrols defined within the project??

    Make sure all appropriate assemblies are referenced and namespaces are imported. If they already are, remove them and re-add them.
  9. VS 2013 Re: How to display image from database in a datagrid with vb.net

    If you store the images in the database itself then they come back as Byte arrays and the grid will automatically convert them to images. If you're pulling back folder paths, you get Byte arrays...
  10. Replies
    4
    Views
    120

    VS 2010 Re: Database not being updated

    Ideally, you should use "|DataDirectory|" for the folder path in your connection string. That will get resolved at run time to a particular path that is dependent on the type of application. For...
  11. Re: Next Item for Listbox in Background Worker

    You don't do anything to or with a ListBox in the DoWork event handler of a BackgroundWorker. You don't do anything to or with any control in the DoWork event handler of a BackgroundWorker. A...
  12. Replies
    7
    Views
    143

    Re: Datagridview

    That is unrelated to the topic of this thread. Please keep each thread to a single topic and each topic to a single thread. That new question belongs in a thread of its own, with a title that...
  13. Re: which datatatype to use for storing year?

    You would use the date data type to store dates. Years are not dates. They are just numbers, so you would use a numeric data type. The correct data type would be int or maybe smallint if you have...
  14. Replies
    7
    Views
    143

    Re: Datagridview

    I think that the OP means that the data bound to the grid is foreign key values but instead of that column being sorted by those numbers they want it sorted by the text coming from the related table.
  15. Replies
    7
    Views
    143

    Re: Datagridview

    So you have set the DataSource property of the grid then?
  16. Replies
    7
    Views
    143

    Re: Datagridview

    How is the grid populated? If it's bound then it's going to be sorted by the data it's bound to, so you would have to have the values you want to sort by in that data source, probably in a hidden...
  17. VS 2010 Re: got a strange one here. items not displaying in the correct place on lenovo compu

    Issues like this can arise when using technologies that were created years ago without consideration for high-DPI monitors on high-DPI monitors. The first thing to try is setting the AutoScalMode of...
  18. Replies
    6
    Views
    128

    Re: [RESOLVED] VS2015 References Oddity

    I'm looking at the documentation for the System.IO.Compression namespace and it has nine members: six classes and three enumerations. All the types that are not related specifically to ZIP files are...
  19. Replies
    6
    Views
    128

    Re: VS2015 References Oddity

    What Framework version are you targeting? I just created a VB.NET WinForms Application project targeting 4.5.2 by default and it lists System.IO.Compression with version 4.0.0.0 under Assemblies >...
  20. Replies
    1
    Views
    75

    Re: Entering Multiple records at once

    All you have to do is create a DataTable with the appropriate columns and add your multiple rows to that. You can then save the whole lot to the database in a single batch with an appropriately...
  21. Replies
    4
    Views
    120

    VS 2010 Re: Database not being updated

    What is the value of `i`? As the code indicates, that is the number of rows updated. If that is not zero then the database itself IS being updated. In that case, follow the first link in my...
  22. Replies
    7
    Views
    140

    Re: Database Projects in VS

    What version of VS are you using? I'm looking at VS 2015 with SQL Server Data Tools installed and I can see a SQL Server Database Project template listed. I seem to recall that older versions of VS...
  23. Replies
    7
    Views
    140

    Re: Database Projects in VS

    Right, so it is a specific project template. Why didn't you just say that when I asked?
  24. Re: A begineers question about binding of datagridview to database

    Of course. Why would you post code that didn't work here in a forum that is dedicated to helping people fix code that doesn't work?

    Seriously? If you want an example then why have you not...
  25. Re: A begineers question about binding of datagridview to database

    What code above? You haven't posted any code that includes a call to Update. If you're using a data adapter then it will open the database connection implicitly if it's not already open so that's a...
  26. Replies
    7
    Views
    140

    Re: Database Projects in VS

    You didn't answer my question.
  27. Replies
    7
    Views
    140

    Re: Database Projects in VS

    Are you talking about a specific project template or simply any project with a database in it?
  28. VS 2013 Re: How to display image from database in a datagrid with vb.net

    If you want to display an image in a DataGridView then you have to actually have an image. A String containing the path of a file containing an image is not an image. Once you have populated your...
  29. Re: A begineers question about binding of datagridview to database

    Not only did you ignore my direction to my code examples in the CodeBank as tg mentioned, you also ignored the fact that I answered that question the first time you asked it.
  30. Re: images stored as byte array go missing when database is copied to new project

    That is very interesting and potentially useful information. Thanks for sharing. I might test that out and see if I get the same result.
  31. Re: Calculate the percentage of all numbers in a datagridview column

    You already have the total for the column so you would loop through the Rows of the grid and, For Each one, get the cell Value from that column, perform your calculation and then put the result in...
  32. Replies
    9
    Views
    324

    Re: Creating text files

    I thought I'd check to confirm because I didn't previously either.
  33. Re: Calculate the percentage of all numbers in a datagridview column

    I'm flattered that you think we're psychic but I'm afraid that we're not, so you're actually going to have to tell us what you mean. As you have already been asked, percentage of what? This...
  34. Replies
    9
    Views
    324

    Re: Creating text files

    Not only that, I just realised that you have still posted in the wrong forum. This is the C# CodeBank forum, not the C# forum. CodeBank forums are where you can share working code with others. ...
  35. Replies
    9
    Views
    324

    Re: Creating text files

    As for the issue, you are creating the file inside the loop, therefore you write only one line to each file and overwrite it on the next iteration. You need to create the file before the loop and...
  36. Replies
    9
    Views
    324

    Re: Creating text files

    I specifically told you in your other thread that I had asked the mods to move it. Now you have a duplicate thread. I have now asked the mods to delete that other thread.

    Also, for readability,...
  37. Replies
    9
    Views
    324

    Re: Creating text files

    This is the VB.NET forum. Not surprisingly, it is for VB.NET questions. If you're posting C# code then you have a C# question, so it should be posted in the C# forum. I have asked the mods to move...
  38. Replies
    2
    Views
    79

    VS 2010 Re: BindingSource home

    Where does the binding take place? Binding can ONLY take place in the presentation layer because one party to data-binding is ALWAYS one or more controls. Therefore, a BindingSource makes no sense...
  39. VS 2012 Re: Aplication stops when doing a tableadapter insert

    This code makes no sense:
    Me.LogTableAdapter.Fill(UcctieDataSet3.Log)
    Me.LogTableAdapter.Insert(cod, usr, dt, mov, hr) / this is the line where it all stops
    ...
  40. Re: Calculate the percentage of all numbers in a datagridview column

    I don't think you've actually thought this through. Calculating a percentage is simple mathematics. If you can already calculate minimums, maximums and averages then you can obviously get the...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.