Search:

Type: Posts; User: kaliman79912

Page 1 of 13 1 2 3 4

Search: Search took 0.04 seconds.

  1. Access Settings and Resources from a linked module

    In VB.Net, I have a module that I use for all my projects. I just add it as a link to the project and any changes are then compiled in any project that uses it.
    In that module there is a sub that...
  2. VS 2017 Re: How can I make VS treat a file with different extension as a vb file?

    I am using VS2017 Community
  3. VS 2017 Re: How can I make VS treat a file with different extension as a vb file?

    Thank you jm, but I have tried that and it kind of goes that way, but even though it color codes the file, intellisense does not work when just registering the file extension that way.
  4. VS 2017 How can I make VS treat a file with different extension as a vb file?

    I will not go into the details but I need this.

    At work we have a ton of files with extension .svb, they have visual basic code. I would like to edit them in Visual Studio and take advantage of...
  5. Re: Datagridview columns keep duplicating

    Yes, the binding source is bound to a view on my SQL Server. DataSource = MyDataSet, DataMember = vwStatesCities

    I changed some parameters on the columns and all is OK. But if I move or do...
  6. Datagridview columns keep duplicating

    Hello

    I have a datagrid view which is connected to a Bindingsource. I added the columns and changed their name and header text. Every once in a while, when I move or even just move the container,...
  7. Replies
    10
    Views
    1,274

    Re: Repeat code in many forms or modules

    I have solved it my little own way and I thought I share it with all.

    As mentioned in my last post, I put my Subs in a global module, using one single call to a Public sub to assign the Handlers,...
  8. Replies
    10
    Views
    1,274

    Re: Repeat code in many forms or modules

    Sytten wrote something that made me wonder... what if I put the functions and subs in a global module, all public. And then just add the Handlers in the constructor of each form. That would still be...
  9. Replies
    10
    Views
    1,274

    Re: Repeat code in many forms or modules

    Interesting, how would a DLL work here? For example: If I always wanted to run a procedure when any form is closed.


    Private Sub MeFormClosing(sender As Object, e As FormClosingEventArgs) Handles...
  10. VS 2013 Re: Statement to make something true all the time

    Hello and welcome to the forum. Try reading your own post out loud and see if it makes any sense. I believe you have concepts and statements confused. A statement that makes a variable true all the...
  11. Replies
    10
    Views
    1,274

    Repeat code in many forms or modules

    Hello,

    I have a section of code that I include in all my forms. It is pretty easy to just paste it when I create a new one. But the thing is that from time to time, I make changes to that code and...
  12. Replies
    2
    Views
    670

    VS 2013 Re: Reading settings from txt file

    I do not believe you can name your variables and/or objects at runtime. It will not even make sense because how would you reference them in the rest of the code? But that might not be what you are...
  13. Re: Overloading Functions: Saving Lines -- referencing itself

    That is the correct way of doing it.
  14. Replies
    8
    Views
    2,933

    VS 2010 Re: Object Naming Conventions

    It is a good thing that you ask this question and that you prepare for your code in advance. Many different conventions are there and all have points for and against them. But the most important...
  15. Replies
    6
    Views
    3,712

    Re: ORA-00936: missing expression

    Does mpcs.image_resource table only have those 5 columns? if there are any other and they do not accept null values then it might be the issue.
  16. Replies
    1
    Views
    3,630

    VS 2012 Re: Resume previous index during a search

    Find returns the index. Then you can use an overload of Find that includes the starting index.
    But since you have the text in a RTB, how losing internet connection affect it?
  17. Replies
    10
    Views
    1,313

    Re: vb.net: not out put in textbox

    Dim myconnection As String = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Vb.Net Security\SecurityGuard\SecurityGuardmdb.accdb;Persist Security Info=False"
    Dim str As String = "SELECT...
  18. Replies
    10
    Views
    1,313

    Re: vb.net: not out put in textbox

    Something is wrong with this thread, I can't post code tags or edit my previous answer. Will try to update later.
  19. VS 2010 Re: What is making the difference between how these 2 examples work?

    Not only you need to add the reference to the project but you need either to import the namespace to the project or add the Imports statement at the beginning of the form's code.
  20. Replies
    10
    Views
    1,313

    Re: vb.net: not out put in textbox

    Still, you are trying to use a DataReader with a SELECT statement that returns one single value.

    Dim myconnection As String = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Vb.Net...
  21. Replies
    10
    Views
    1,313

    Re: vb.net: not out put in textbox

    If you use ExecuteScalar do not use a DataReader, use an integer variable for that.
  22. Replies
    26
    Views
    2,599

    VS 2010 Re: Substring to variable endpoint fails

    The thing is that your code is also set for always the same format, it is trying to take the first byte, assign it to the NodeAddress, eliminate it from the original string, etc. It will only work on...
  23. VS 2010 Re: What is making the difference between how these 2 examples work?

    I tried but can't compare them, your V2 zip has no project file.
  24. VS 2010 Re: What is making the difference between how these 2 examples work?

    It definitely sounds like references. I do not think is that you have a duplicate because you would get a message of the sort. Where are you checking your references? not only that, but it may be an...
  25. Replies
    3
    Views
    717

    Re: custom them load event not firing

    The symptom still appears to be the same. Move your code from the load to the shown event to see what happens.
  26. VS 2013 Re: Vb.net/sql2008 -Compare view with table

    Put this as your single SQL command and you will get the remaining quantities in the QTY field

    SELECT A.ORD_NO, A.ITEM_NO, A.ITEM_DESC_1, A.QTY_ORD - SUM(B.QTY) AS QTY
    FROM VI_USER_LABEL_INFO AS...
  27. VS 2013 Re: Vb.net/sql2008 -Compare view with table

    Of course, you have commented your second query. You can put all of that into a single query and just read it. I will work on that and post it in a few minutes.
  28. Replies
    3
    Views
    717

    Re: custom them load event not firing

    What is the code? it may have nothing to do with the theme, if you have an error in the load event it may just be aborting the sub and proceeding to show the form. This happens with 64 bit OS.
  29. Replies
    26
    Views
    2,599

    VS 2010 Re: Substring to variable endpoint fails

    I am not saying it is wrong (it is), I would just do it a whole different way. But before we go into that, let me give you some advice about the code that you have.

    * You are using a variable...
  30. Re: Looping Through Lists... Is there a better way?

    even if they are, only one will be assigned
  31. Replies
    10
    Views
    904

    Re: When is modal not modal?

    At first I thought that you were getting an exeption in the load event and the form was not loading after all, but this is really weird
  32. Replies
    15
    Views
    1,666

    VS 2010 Re: Build error

    It happens to me a lot. I just do Build - Clean Solution and then Build - Rebuild Solution.
  33. Re: If and else if help with textboxes

    But if you want to search just if there is something on the TextBox


    If TextBox4.Text <> "" Then
  34. Re: If and else if help with textboxes

    For what you are doing should be something like


    If TextBox4.Text = "Text you are searching" Then...
  35. Replies
    10
    Views
    904

    Re: When is modal not modal?

    But does the form still opens?
  36. Replies
    2
    Views
    548

    Re: Listbox Items to Excel Cell

    I will assume that you want to fill a range and not just a cell.

    Convert your collection to an array and send that into the Excel range in just one instruction.
  37. Re: Looping Through Lists... Is there a better way?

    Without changing much, You could stop the loop once it found the match. Save a few ticks.


    Public Sub DetermineCode()
    For Each record In InputRecords
    For Each code In Codes
    ...
  38. Replies
    12
    Views
    1,572

    Re: Collections failure.

    OK, I have seen this before, the issue was on that time that the code in the module of the form had more than one class declared. This is acceptable as long as the form class itself is the first one....
  39. Replies
    15
    Views
    9,013

    Re: snap or dock forms together

    I don't know the target for this application. But a solution integrating the gap will then only work fine on a Windows 10 computer. If you go with this approach you may need to check for the OS...
  40. Replies
    11
    Views
    2,176

    Re: RichTextBox Attributes Do Not Exist

    Framework issue?
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width