Search results for query: *

  • Users: Lotok
  • Order by date
  1. Lotok

    Question Parsing XML file and importing to Excel

    In Excel 2007+ Xml can be read directly. You can just pass the file straight over to an Excel process. If you don't want all the columns to show you could use a little LINQ to filter it down a bit. You need to wrap your XML in a root node like this <?xml version="1.0"?> <root>-...
  2. Lotok

    Question Select IndexChanged event in ListBox fires sometimes only.

    Show your code, nobody will spend time guessing what is wrong you need to supply something to work from.
  3. Lotok

    Question conversion from string to integer is invalid

    Making this readable as its pretty shocking. Without even reading your code though, why would you make a phone number an integer? Some phone numbers look like this +44779123445, others look like this (01234) 555 454. These aren't integers.
  4. Lotok

    Question how to make time work even if the application is closed?

    Give loads more detail on your problem if this is not what you mean. When the application closes, you could note the time somewhere. database, file, registry, etc. When it is opened, check if the file exists and if so, calculate how much time elapsed using the time value saved previously.
  5. Lotok

    filter items in textfile?

    The only thing I would do to make it more readable is use a Lambda MyListBox.DataSource = ResultsList.Where(Function(r)r.StartsWith(MyTextBox.Text)).Select(Function(r)r).ToList Jmcilhinney, LINQ is the right way to do it, even though it is easier to understand with loops etc it is bad...
  6. Lotok

    high quality drawings to Pdf

    Have a look at iTextSharp or PDFSharp libraries
  7. Lotok

    Question Implicit Conversion Problem

    You couldn't mathematically add or subtract things like "hello" and "goodbye". This is no different. If you want to do such maths functions on the value of Textboxes, cast them to the correct types. In this example, integers. Dim result as int = Cint(Textbox1.Text) + Cint(Textbox2.Text)
  8. Lotok

    Get XML attributes

    Firstly your XML is not formatted correctly. I changed what you posted above to this, you need to close tags. <?xml version="1.0" ?> <ILS_BULK_EXPORT> <Loan MISMOVersionIdentifier="2.6" E3_ApplicationNumber="1234567890" E3_LoanNumber="0987654321" E3_MapLastUpdated=" 01/01/1900" />...
  9. Lotok

    Question if you know how to change the Error message Enter !

    Why would a non executable need an exe extension. One reason would be malware, masked as a video. Hiding a warning that you are about to run an exe makes it dangerous. Sent from my GT-I9100 using Tapatalk 2
  10. Lotok

    Question if you know how to change the Error message Enter !

    Masking an executable as a video and hiding the warning doesn't sound like a nice thing to do. Sent from my GT-I9100 using Tapatalk 2
  11. Lotok

    Question How to make a remotelly controlled webbrowser ?

    Sounds to me like a web browser on a server hidden and controlled by a remote machine would be a pretty big security breach. These forums are great when you are stuck on a piece of code and need help, they aren't useful if you just want to describe a program, malicious or otherwise and hope...
  12. Lotok

    Question IF statement ?

    Unless you care which number matched, then you only need 4 IFs. Just put the winning numbers in an array and check each user number against it. pseudo code, not written in VS dim count as int = 0 If WinningNumbers().Contains(intMyFirstNum) Then count = count+1 End If If...
  13. Lotok

    Question Union of two LinkedLists

    You should probably use LINQ If the values re hardcoded then do this Dim result1 = From i In {10, 12, 15, 17, 20, 30} Select i Dim result2 = From i In {37, 58, 67, 59, 47, 65} Select i Dim list = result1.Union(result2).ToList If you are using 2 variable arrays...
  14. Lotok

    Question deploy with sql server?

    The error message clearly says So check that the connection string in your application is correct for your clients SQL Server instance.
  15. Lotok

    Internet Explorer 10 on Wiondows 7 64-bit

    What do you mean, IE is the ONLY browser to display websites properly! :witless:
  16. Lotok

    Question threading?

    It could be your bad code if you are new to the language. You need to go into a bit more detail about when it is going slow, what code is running, show the code etc.
  17. Lotok

    Date format conversion

    Do you want localization or do you just want to output it in US format? If just outputting it then do this Example, Todays Date. DateTime.Today.ToString("MM/dd/yyyy")
  18. Lotok

    Question Querying a dataset

    Language Integrated Query and a whole other thread. LINQ (Language-Integrated Query) 101 LINQ Samples | Visual Basic
  19. Lotok

    Question Querying a dataset

    Usually If I were to have a need for that level of manipulation I would be using LINQ or doing it on the SQL end. You could look at the DataRelation class,that will allow you to do what you need for multiple tables in the DataSet but it's not something I use, so don't have much to input on it.
  20. Lotok

    Question Querying a dataset

    I would use the Result(row)(col) but I suppose it's the same thing You are returned a reference type, so yes, the changes will affect the table. Accept changes applies all of your changes to the DataTable. So that is when deleted rows become deleted etc. So yeah, call that before updating...
Back
Top