dcsimg

Search:

Type: Posts; User: Zmcpherson

Page 1 of 6 1 2 3 4

Search: Search took 0.24 seconds.

  1. Re: Possibly a better way to handle thread timeouts....

    I think I figured it out.

    Essentially what I'm not liking about async/await is that it is waiting the full 5 seconds - so if the process only takes one or two seconds, it's making the program look...
  2. Re: Possibly a better way to handle thread timeouts....

    Too many unknowns.

    I've put into place quite a few redunencies, I just want to use this as the final fail safe because I cannot code for every possibility.

    I just want to ensure that the...
  3. Possibly a better way to handle thread timeouts....

    I have a button, and when the button is pressed it starts a thread. Now the process shouldnt take more than 3 seconds, if it takes more than 5 seconds, it means there is incompatible algorithm...
  4. Re: DataGridView Comboboxes and EditMode

    I figured it out.

    I set EditMode = Edit Programatically and I set the readonly = false

    Then I did an onCellClick event handler


    Private Sub dgv_ShiftNurses_CellClick(sender As Object, e...
  5. Re: [RESOLVED] Distinguishing Single/Double Click and Enabling CTMS.show()

    Any chance I could get you to look at another question while you are here?
    http://www.vbforums.com/showthread.php?820525-DataGridView-Comboboxes-and-EditMode

    Its not a threading issue this time,...
  6. Re: Distinguishing Single/Double Click and Enabling CTMS.show()

    Wow, that is by far an easier solution. I haven't seen the Await Task before, I'll have to go read more about it to see where else I might be able to incorporate it.

    I figured it had something to...
  7. Re: Distinguishing Single/Double Click and Enabling CTMS.show()

    Im not trying to double click on a CTMS item, I am trying to single/double click in a datagridview and have the CTMS only show on a single click.

    Thanks
  8. [RESOLVED] Distinguishing Single/Double Click and Enabling CTMS.show()

    Im having a little more trouble with another few lines of code.

    I was able to successfully distinguish between a single and double click with the following lines of code



    Dim WithEvents...
  9. [RESOLVED] DataGridView Comboboxes and EditMode

    Im running into an issue where I can't get everything to work as intended on a DataGridView

    I have 7 columns in a DGV - 5 columns are text and 2 columns are comboboxes.

    I need the 5 columns to...
  10. Re: [RESOLVED] Array is inheriting instead of reseting....

    I fixed it using


    ReDim BUArray(nArray.GetUpperBound(0), nArray.GetUpperBound(1))
    For x As Integer = 0 To nArray.GetUpperBound(0)
    For y As Integer = 0 To...
  11. Re: Array is inheriting instead of reseting....

    uhhggg, im an idiot.

    Thanks Shaggy, glad to see you're still doing this.
  12. [RESOLVED] Array is inheriting instead of reseting....

    Im having a little issue in my code that I wasnt expecting and Im not quite sure how to fix it.

    normally in an example like this:


    Dim test1 As String = "1"
    Dim test2 As...
  13. Multihreading a with parallels and degrees on a for statement....

    I recently learned this bit of code the other day...


    Directory.GetFiles(fileLoc).AsParallel.WithDegreeOfParallelism(3).ForAll(Sub(path) theWorker(path))


    and it has drastically...
  14. Re: Hardcoding an Excel Array Formula with VB.net...

    Ok so it is this:


    xlSummary.Cells(4, 6).FormulaArray = "=IFERROR(MIN(IF((RadioTrans4G[[#All],[Radio State]]=""DCH"")*(OFFSET(RadioTrans4G[[#All],[Radio State]],1,0)=""FACH""),...
  15. Re: Hardcoding an Excel Array Formula with VB.net...

    Mostly Im getting "HResult" errors unless I put the {} on it, and then it just loads as text.
  16. [RESOLVED] Hardcoding an Excel Array Formula with VB.net...

    Hey guys,

    I have an excel array formula that looks like this:


    {=IFERROR(MAX(IF((RadioTrans4G[[#All],[Radio State]]="DCH")*(OFFSET(RadioTrans4G[[#All],[Radio State]],1,0)="FACH"),...
  17. Re: Programmatically add an excel table...

    Turns out the problem was two fold.

    Excel.XlSourceType.xlSourceRange, should of been Excel.XlListObjectSourceType.xlSrcRange ... crazy they would have two libraries so similar

    And .Add should...
  18. Re: Programmatically add an excel table...

    This is for vb.net

    From everything I've read - this should work:


    xlSheet.ListObjects.Add(SourceType:=Excel.XlSourceType.xlSourceRange, XlListObjectHasHeaders:=Excel.XlYesNoGuess.xlYes,...
  19. [RESOLVED] Programmatically add an excel table...

    Hey guys,

    Im having trouble with a piece of code. From MSDN's site it looks like it should work - plus I made a macro in excel and they're almost identical.


    Dim rng As Excel.Range =...
  20. Re: Struggling with trying to access a control on a form from seperate classes...

    Haha i feel like you made that waay harder then it needed to be : P

    Just in case someone comes across this, I want to condense the code above just to make it a little more readable/understandable...
  21. Re: Struggling with trying to access a control on a form from seperate classes...

    When you create a class how would you pass the current form instance to the class?
  22. [RESOLVED] Struggling with trying to access a control on a form from seperate classes...

    I still cant seem to wrap my head around this concept.

    I get the classes and forms are completely separate objects that can't see each other initially unless you pass on the data from the form to...
  23. Re: Accessing Controls from a different class....

    I should of said that the progress bar already has its own thread

    how the progress bar is being updated is something like this (my project is huge already, so these snippets are rather small):

    ...
  24. Re: Accessing Controls from a different class....

    Well this is how I ended up solving it, let me know if there is an easier way...



    Public Shared Event ProgressBarEvent(ByVal mynum As Integer)

    Private Sub ProgressBar(ByVal mynum As...
  25. Re: Accessing Controls from a different class....

    The way that I had it initially was that the ProgressBar() was a public shared sub on QoE.vb (the initial form)

    so...



    public class QoE
    public shared sub ProgressBar()...
  26. Re: Accessing Controls from a different class....

    How can I check to make sure QoE is the default instance? Is it Project Properties > Application > Startup Object?

    I get what you are saying about the notepad, Ive been sitting at my desk since...
  27. Accessing Controls from a different class....

    Alright I have 3 forms - The load up form "QoE" and two public classes. I also have an progress bar on the main form "QoE." Ive been able to access controls in other classes in numerous other...
  28. VS 2010 Re: Show HTML from SQL Cell in AutoGeneratedColumns

    For all of those people looking for the same answer, here it is:


    Try
    For x = 0 To GridView5.Rows.Count
    GridView5.Rows(x).Cells(2).Text =...
  29. VS 2010 [RESOLVED] Show HTML from SQL Cell in AutoGeneratedColumns

    Ive been banging my head against the wall for the last few hours, I just cant seem to view the HTML markup from a SQL Cell in a GridView.

    When I set the AutoGenerateColumns=False it's easy because...
  30. Replies
    8
    Views
    1,433

    VS 2010 Re: More Asp.net, SQL help...

    Alright I finally figure this out, I posting the code incase anyone else stumpbles upon this looking for answers.

    alright guys i figured it out, I needed to use the ExecuteReader function (which...
  31. Replies
    8
    Views
    1,433

    VS 2010 Re: More Asp.net, SQL help...

    Can anyone point me to what I should be using then? or help me with the code that's above? Ive kinda hit a wall and I'm not finding any new sources to solve this.
  32. Replies
    8
    Views
    1,433

    VS 2010 Re: More Asp.net, SQL help...

    I think anyone on vbf will vouch for me that I dont just ask for answers, the only reason Im doing all these projects are for learning/fun purposes only.

    I suppose I just dont understand what you...
  33. Replies
    8
    Views
    1,433

    VS 2010 Re: More Asp.net, SQL help...

    You completely lost me....

    Just soooo lost lol....

    Can you post some code as it relates to what your saying or point me to a website, Im not so much a picture person as a code person (I have...
  34. Replies
    8
    Views
    1,433

    VS 2010 [RESOLVED] More Asp.net, SQL help...

    Hey guys, I have a few more questions regarding my latest project. Ive felt like I have made some pretty good strides over the last couple days, but I am still struggling on a few of the core...
  35. VS 2010 Re: Import 2 cells from excel to SQL database on a webform.

    Awesome, works like a charm!

    Once again Kevin you alleviate all my frustration : )
  36. VS 2010 Re: Import 2 cells from excel to SQL database on a webform.

    Sorry Kevin Im not trying to get into an argument with you. You have helped me a ton in the past and I do appreciate the time you spend on the forums helping people like me. I was only trying to...
  37. VS 2010 Re: Import 2 cells from excel to SQL database on a webform.

    "MVP Siddharth Rout page for VB.NET and Excel"? I dont see anything about early binding in that.

    And even then, I know the difference between early and late binding, these examples are me just...
  38. VS 2010 [RESOLVED] Import 2 cells from excel to SQL database on a webform.

    Hey guys long time no see, p.s. I love the new website, very snazzy.

    Im currently building a project that lets users import Excel files via a web interface (built), which saves the file to the...
  39. MsOf07 Moving multiple queries from access to sharepoint

    First off, I am terrible at Access and pretty bad at anything that is not .Net (As you can see, I keep trying to write in .Net)

    What I am trying to do is to take each query that is in an Access DB...
  40. Re: MS Access macro for cross referencing...

    This is kind of a make shift solution, but I think it should work:


    Option Compare Database
    Option Explicit

    Public Function SendEMail()

    Dim db As DAO.Database
    Dim MailList As DAO.Recordset
Results 1 to 40 of 218
Page 1 of 6 1 2 3 4



Featured


Click Here to Expand Forum to Full Width