Search:

Type: Posts; User: Cimperiali

Page 1 of 6 1 2 3 4

Search: Search took 0.05 seconds.

  1. Replies
    3
    Views
    732

    Re: Capture Form1, not what is on top

    the code you're using takes a screenshot: which ever object is on top of the area you capture it is captured.
    If you use DrawIMage of form ti capture it, you will not be able to get webbrowser...
  2. Replies
    1
    Views
    3,344

    Re: Masked password + MD5 encryption

    For example, it could be:


    Module Module1

    Private _cyphredPassword As String = String.Empty
    'correct pwd is "sian" (without the quotes)
    Private Const correctPwd As String =...
  3. Thread: Help :)

    by Cimperiali
    Replies
    4
    Views
    709

    VS 2010 Re: Help :)

    some tips:
    You could name the files with the name of the Countries
    ie:
    Canada.jpg
    Australia.jpg
    Italy.jpg
    Japan.jpg
    Usa.jpg
    ...
  4. Replies
    4
    Views
    2,972

    Re: Run a .vbs script as an administrator

    and

    try:



    'You forgot a "\"
    Process.start("c:\test.vbs")
  5. Replies
    4
    Views
    2,972

    Re: Run a .vbs script as an administrator

    have you already tried this?
    http://www.mztools.com/articles/2009/MZ2009007.aspx

    and you might also have a look inside this...
  6. Replies
    2
    Views
    746

    Re: registry access permission

    search for Manifest.
    Ie:
    http://stackoverflow.com/questions/1431948/how-to-add-uac-manifest-file-to-vb-net
  7. Replies
    4
    Views
    763

    VS 2010 Re: how to sniff and change?

    Like those programs that try to catch the bank money transfer and simply change the destination and the amount? No, you can not.
  8. Replies
    4
    Views
    4,555

    Re: Adding Variables to List Boxes

    Once a Great One said "no question is stupid" (his name was Albert)
    when in vb you need to contact strings use the ampersend &
    As you're on the subject, let me tell you something else you could...
  9. Re: checking to see if "enterKey" input if valid

    Easier and good, you're right.
  10. Re: checking to see if "enterKey" input if valid

    Here a way to accept integer between 0 and 10 (no decimals allowed)

    You could have done it in many different way, this is one and it should be acceptable (unless Evil_Giraffe will teach something...
  11. Replies
    4
    Views
    4,555

    Re: Adding Variables to List Boxes

    Are you looking for this?


    Listbox1.Items.Add("Name: " & name)
  12. Replies
    1
    Views
    536

    VS 2008 Re: How to read table/data from jpeg file

    A jpeg file usually stores image infos.
    If it instead contains rows of a table, you should attach here a sample file and (or at least) tell how it is encoded.
    Moreover, this is the wrong forum:...
  13. Re: Prompt cannot be converted to type string

    Try this:


    Dim myValue() As Object = acApp.ActiveDocument.GetVariable("LIMMAX")
    Dim myConvert As Double
    Dim sb As New System.Text.StringBuilder
    For counter As...
  14. Re: Prompt cannot be converted to type string

    Oppsss. He said it, but I have been blind
  15. Re: Prompt cannot be converted to type string

    if Double.TryParse(CStr(myValue), myConvert) then
    MsgBox(myConvert.ToString)
    else
    MsgBox("could not convert value to double")
    end if


    by the way:
    msgbox and cstr are old vb6 way of...
  16. Re: Prompt cannot be converted to type string

    then you could double.tryparse(object.tostring, yourtempDoublevar)
    and then dispay yourtempDoublevar.tostring
  17. Re: Prompt cannot be converted to type string

    try


    if acApp isNot nothing then
    if acApp.ActiveDocument isnot nothing then
    dim objTest as object = acApp.ActiveDocument.GetVariable("LIMMAX")
    if objTest isNot nothing then...
  18. VS 2010 Re: Debug button has gone walkies

    if it is vs 2010 ide:
    ensure you have ended all debug (that is: ensure no code is actually running).
    right click on a free zone of ide at same top as your toolbars (but in a free of toolbars zone...
  19. VS 2010 Re: Intercept Web Requests and Edit of HTML then continue request

    meant a software that install itself in ie (or the wanted browser) like an add-on, and is trusted so that it becomes a portion of the browser itself
    http://en.wikipedia.org/wiki/Browser_Helper_Object
  20. VS 2010 Re: Intercept Web Requests and Edit of HTML then continue request

    As far as I know it is not, unless you write a bho.
  21. Replies
    2
    Views
    669

    Re: ListBox Scrolling Question

    seems as if you want an asutoscroll done via a Timer that could be paused when user click it, but will restart after a bit on its own. So you could use a couple of timers.
    about how to scroll via...
  22. VS 2010 Re: user should not be able to access anything on windows

    No, you won't be able to make that via dot net inside your app: no way to really suppress the ctrl+alt+del combination. You needed a custom os (like kiosks os), for that, or at least be able to...
  23. Replies
    2
    Views
    606

    Re: Loopo through LINQ to SQL query

    I do not know if I understood it all, but it seems as if yiou're trying to do something like the following:


    Public Class Form1

    ' Dim areas = From job In db.jobs
    'Join area In...
  24. Replies
    3
    Views
    2,421

    VS 2010 Re: Save Data in two related tables

    sql = "Select tbl1.CityNumber,tbl1.CityName,tbl2.StreetName FROM tbl1 INNER JOIN tbl2 ON tbl1.CityNumber=tbl2.CityNumber"
    this is when you read,
    The query is not updatable as is.
    To update you...
  25. Replies
    11
    Views
    3,917

    VS 2010 Re: Help sorting a NameValueCollection

    From MSDN

    You need the fist of above, and add in your imports:
    Imports System.Linq
    and not (or not only) Imports System.Data.Linq
  26. Replies
    0
    Views
    839

    Virtual ethernet and real one

    I and a colegue are looking for a way to discover real card and real ip address of my machine (without calling directly WMI).

    Depending on Os and on installed programs (ie: Vmware), he could find...
  27. Replies
    17
    Views
    2,974

    VS 2010 Re: Searching An Array

    from to

    (that is to say I would like to quote the whole Evil_Giraffe post)

    that's not fair: you looked at the code, and even thought on it!

    (as it is good)

    now, nothing to say on naming...
  28. Replies
    17
    Views
    2,974

    VS 2010 Re: Searching An Array

    Function IsCrayola(ByVal colors As String()) As Boolean

    Dim ret as Boolean =false 'it is the default, but say it, so you will remember how it starts
    Dim FindString As...
  29. Replies
    35
    Views
    2,533

    VS 2010 Re: Passing a val ByRef to a Library

    the only real need in VB to pass byref an arry is when you need to redim, redim preserve or erase or ...set to nothing to be sure to crash the caller. Unless the called required it.

    LOL! I really...
  30. Replies
    11
    Views
    3,917

    VS 2010 Re: Help sorting a NameValueCollection

    by the way, if you simply want to output an ordered result, you could take advantage of linq:


    Dim col As NameValueCollection = New NameValueCollection()
    col.Add("zlast",...
  31. Replies
    11
    Views
    3,917

    VS 2010 Re: Help sorting a NameValueCollection

    if keys are not unique, but you do not have too much data, you could use a Generic List, then sort it with appropriate comparer or lambda function, like here:...
  32. Replies
    1
    Views
    450

    Re: Help with LINQ to SQL

    the variable jobs before the "=" is an anonymous type, but inference will help treat it the correct way.

    The linq query -if it is all there - is prepared but not executed untill you start using it...
  33. Replies
    6
    Views
    1,172

    Re: Move folders -

    if it has to be a batch (scheduled) task, you 'd better implement a log (usually a file.log) where to write what the program did (which file have been deleted, for example) or, at least, if any...
  34. Replies
    4
    Views
    1,699

    VS 2010 Re: Encrypt/Decrypt file

    that 's because bytearrays and strings are not the same...You could manage it transforming first the byteArray to a 64based string, and then ciphering as it were plain text. When decoding, you decode...
  35. Replies
    6
    Views
    1,172

    Re: Move folders -

    you sure you do not prefer to look art it yourself and comment out the lines that do not suite your needing? It should be easy, now...

    what do you mean by ? I thought you where going to replicate...
  36. Replies
    6
    Views
    1,172

    Re: Move folders -

    that is:
    create dest fodler if it does not exist, do nothing if it exists
    then
    copy there files if they do not exist (then delete source), ask to overwirte, or skip this single file if it...
  37. Re: [VS 2008] Help a new coder with few simple issues.

    some tips:
    all controls have a tag property where you could put your values info

    Or: you could create a class that derived from CheckBox and add to it a property for your value

    Or: you could...
  38. Replies
    14
    Views
    3,112

    VS 2008 Re: Display Record Count in a label

    first, search in your books or in google how to perform a query like a
    "select count(*) from Cusotmers" via Ado.Net (I do believe you do not want to getinvolved with Entity Framework or the like...
  39. Re: Easy Screen Capture Class - Capture Screen, Desktop Region, Form, or Controls

    A trick to capture a region could be: make the whole screen capture, then show that picture and let user use the mouse to get a portion of it. It seems to me PickPick (a free utility to do that job...
  40. Re: Easy Screen Capture Class - Capture Screen, Desktop Region, Form, or Controls

    Nice job. I stepped in looking to remember how we used to do it in previous versions, and then I remembred the main matter: using unmanaged code (=calling Api directly somewhere in code) steal one of...
Results 1 to 40 of 202
Page 1 of 6 1 2 3 4



Click Here to Expand Forum to Full Width