Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
A

amatbrewer

@amatbrewer
About
Posts
42
Topics
21
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • AJAX install question
    A amatbrewer

    Never mind, figured it out.

    David Wilkes

    ASP.NET question csharp asp-net visual-studio tools

  • AJAX install question
    A amatbrewer

    I am trying to modify a webpage that includes the AJAX tools, but can not get AJAX installed. I have followed the steps using the Sample Web Site, but when I get to the point of adding the tool to the VS toolbar I get an error. “error loading types from Assembly…” “ Could not load file or assembly ‘System.Web.Extension…’ or one of its dependencies. The system could not find the file specified.” I have VS 2005 Standard edition and have reinstalled ASP.NET. Any idea what I might be doing wrong?

    David Wilkes

    ASP.NET question csharp asp-net visual-studio tools

  • run a sub on one child form when an event occurs on another
    A amatbrewer

    Thanks for the suggestion. I am still not completely clear on how to accomplish this. I am guessing I would have to define the delegate in the parent but not entirely sure when to assign the address of the function to the delegate.

    David Wilkes

    Visual Basic question help tutorial

  • run a sub on one child form when an event occurs on another
    A amatbrewer

    Ok, this one is driving me nuts, can someone tell me what I am doing wrong? I have a few MDI child forms open within a parent. I need to run a sub on one of the child forms when an event occurs on another. For example one of the child forms is created in the Load event of the MDIParent with the following: Dim ChildForm2 As New GraphFrm ChildForm2.MdiPrent = Me ChildForm2.Show() The GraphFrm contains a Sub UpdageGraphs() but when I attempt to call ChildForm2.UpdateGraphs() from the parent or any of the other MDI child forms I get an error that ChildForm2 is not declaired. How do I make this instance of the child form accessible to the Parent and other child forms?

    David Wilkes

    Visual Basic question help tutorial

  • Simple bar graphs in VB
    A amatbrewer

    Thanks! As it turns out I had this all along (got it but never used it for a diffrent project) but forgot about it.

    David Wilkes

    Visual Basic algorithms data-structures question

  • Simple bar graphs in VB
    A amatbrewer

    I am working on a program that needs a simple stacked bar graph (4 stacked values, 3 bars). I am doing it in VB due to all the math involved in the project. I have been searching for ways to do this, but all I have found are commercial controls that cost hundreds of dollars. The simplicity of the graphs and the scope of the program make this unreasonable (considering the $60 control as a last resort - csXGraph). Any suggestions?

    David Wilkes

    Visual Basic algorithms data-structures question

  • Operator overloading
    A amatbrewer

    Basic?!?! Wish I had, but far along enough now that I don't want to start over. Thanks for the link. I will see if it helps.

    David Wilkes

    C# csharp debugging tutorial

  • Operator overloading
    A amatbrewer

    I am working on a project in C# that involves some rather convoluted formulas to calculate values. The resulting code has been very difficult to write and even harder to read/debug. What I want to do is overload some operators to make the math a bit quicker to write and easer to read. (Especially since I know that some of these formulas will change in the future) For example; I would rather do something like “10^(somevariable* somethingelse)” than “math.pow(10, (somevariable* somethingelse)” since things like this are often buried deeper in a more complicated formula. [I have at least one formula involving 12 operators, 3 of them are raising part of the equation to the power of another part] I have looked up Operator Overloading and they all refer to using it on user defined classes or UDT’s. There must be an easer way.

    David Wilkes

    C# csharp debugging tutorial

  • Generic event procedure for mutiple controls.
    A amatbrewer

    Thanks. That is alomost exactly what I ended comming up with not too long after posting the message. It seemed a bit round about and redundant, so i was not sure about it. Would it be correct to assume that since the tb.SelectAll works (selects the text in the original control) means that the tb is a pointer to the actual text box and not a copy of it? It would seem that you should be able to do it more directly, like (TextBox)sender.SelectAll(); or something similar.

    David Wilkes

    C# help tutorial question

  • Generic event procedure for mutiple controls.
    A amatbrewer

    I want to be able to create generic event procedures that can be used for a number of controls (the same type) on a form. For example (assume the object sender would always be a text box); private void tbCallBlockPct_Click(object sender, EventArgs e) { sender.SelectAll(); } However when I try somehting like this I get a syntax error that the “object sender does not contain a definition for SelectAll”. If the function is being passed a textbox as the variable sender should not all of its methods and properties be accessable?

    David Wilkes

    C# help tutorial question

  • Help with random numbers
    A amatbrewer

    That makes total sense. Figured it was something simple. Thanks!!!

    David Wilkes

    C# debugging help question lounge

  • Help with random numbers
    A amatbrewer

    Sorry, "list3" is a custom data type similar to a listbox.

    David Wilkes

    C# debugging help question lounge

  • Help with random numbers
    A amatbrewer

    When I run the following code I get the same number 36 times, but when I step through it in debug I get 'random' numbers?!?! Any idea why? for (int a = 0; a < 36; a++) { Random generator = new Random(); int randomValue; randomValue = generator.Next(1, 20); list3.Add(a, randomValue); }

    David Wilkes

    C# debugging help question lounge

  • display excel fields on a PPC?
    A amatbrewer

    I am thinking about writing a program for the PPC platform that will populate 4 combo boxes from columns in an excel spreadsheet, and then display a few fields based upon a selection from one of the combo boxes. Does anyone have any good code examples for this?

    David Wilkes

    Visual Basic question

  • decision matrix in C#
    A amatbrewer

    Thanks for the reply! Blackjack got me thinking about it, but I can think of a number of projects (current and proposed) that this could be useful for. I appreciate your example; it is much more elegant then what I was originally thinking of. Not sure I understand the syntax of “Action[][] _decision” and “private static Action Decision(Int32 dealerShow, Int32 meShow)” but it gives me something to research. Thanks again!

    David Wilkes

    C# csharp data-structures question discussion

  • decision matrix in C#
    A amatbrewer

    While playing around with a Black Jack program, I got wondering about the best way to do a decision matrix in C#. What I am thinking of is basically a 2 dimensional matrix with each row/col combination containing a value representing 1 of a number of different options (e.g. Hit, Stand, Double, Split, etc). Is a 2 dimensional array the best way to implement it, or is there a better method? Any opinions?

    David Wilkes

    C# csharp data-structures question discussion

  • FormatExceptionWasUnhandled bug
    A amatbrewer

    Thanks for the reply! This is what I get for being lazy. Using MID? I was using a function someone else wrote (no sense reinventing the wheel right?). I figured out last night that it was part of the line just prior to this that was actually throwing the error (not used to this environment yet). When I stripped it down I figured out it was trying to do Val(".") So I just did what I should have done from the start and write my own function.

    David Wilkes

    Visual Basic help

  • convert app from windows to PPC?
    A amatbrewer

    Tried adding the form to the PPC project but ended up with more errors than code. Was hoping there was a tool or macro that would convert from one to the other. Luckily all of the classes and most of the sub's/functions can be cut/paste with only minor modifications. The tedious part is getting the forms set up with all of the controls and getting them named correctly. Thanks anyway,

    David Wilkes

    Visual Basic csharp tutorial question

  • FormatExceptionWasUnhandled bug
    A amatbrewer

    I need help with a bug in a program for a PPC device. The following line of code results in a “FormatExceptionWasUnhandled” error: If Mid(DecimalPart, 1, 1) <> "1" Then DecimalPart is a String variable containing the text “.5”. When I set up a Watch for Mid(DecimalPart, 1, 1) the result is “.” and for Mid(DecimalPart, 1, 1) <> "1" the result is “True”. I am sure I am missing something incredably simple, I just can not figure out what. Thanks,

    David Wilkes

    Visual Basic help

  • convert app from windows to PPC?
    A amatbrewer

    Is there an easy way to take a program written in VB.net for the windows desktop platform and convert it to the Pocket PC? For example I have a simple blackjack program I wrote for a class and was thinking of converting it over so I could load it onto my PPC as a test before I attmept to do it with a more complex project I am working on. Is it worth trying or should I just rewrite it?

    David Wilkes

    Visual Basic csharp tutorial question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups