Search:

Type: Posts; User: gavio

Page 1 of 13 1 2 3 4

Search: Search took 0.18 seconds.

  1. Replies
    7
    Views
    1,370

    VS 2010 Re: C# generic constraint

    In that case, thank you for all your time and patience :)
  2. Replies
    7
    Views
    1,370

    VS 2010 Re: C# generic constraint

    I know what overloading a method looks like. But I can't see any value in it (the below example needs four more or less the same functions, which is quite ineffective):


    int SomeFunction() {...
  3. Replies
    7
    Views
    1,370

    VS 2010 Re: C# generic constraint

    Ok. And how would I go about that?
  4. Thread: V.b 2010

    by gavio
    Replies
    3
    Views
    716

    Re: V.b 2010

    Also, no one will download 400+ Mb source.
  5. Thread: V.b 2010

    by gavio
    Replies
    3
    Views
    716

    Re: V.b 2010

    Please be more specific about your problem.

    Also, you can attach the code or even the files directly to the forum.
  6. Replies
    7
    Views
    1,370

    VS 2010 C# generic constraint

    How to create a generic constraint, that only allows some predefined basic data types. Something like this:


    T SomeFunction<T>() where T : int, double, string, Guid
    {
    // ...

    return...
  7. Replies
    2
    Views
    1,786

    Procedure level import/using statement

    I'm wondering, is there any statement that imports a namespace on a procedural level? For example:
    void Test()
    {
    using System.Something;

    SomeClass sc = new SomeClass();

    ...
    }If...
  8. Replies
    2
    Views
    4,528

    VS 2010 Re: MVC 3 DropDownListFor problem

    Ok. Got it working with a little bit of a different approach.

    Model:
    public UserRegistrationModel()
    {
    this.InitializeCountries();
    }

    private void InitializeCountries()
    {
  9. Replies
    2
    Views
    4,528

    VS 2010 [RESOLVED] MVC 3 DropDownListFor problem

    Hello.

    I'm using VS2010, MVC 3, Razor and Entity Framework 4.

    I want to have a drop down list with list of all countries from the Countries table. And in my model, I have just a single country...
  10. Re: Best way to populate multiple comboboxes from XML?

    Think about serialization really. The above approach is not as good cause you'll have to change every entry point where you read your XML in this way if the XML format changes. That's quite time...
  11. Replies
    10
    Views
    939

    VS 2005 Re: [RESOLVED] Logical "AND"

    If there is some "logical" limit of operators, I think we'll never reach it. Not with good queries anyways :P
  12. Re: Best way to populate multiple comboboxes from XML?

    In my oppinion, serialization is still the simplest and the cleanest way to handle XMLs.
  13. Replies
    5
    Views
    745

    VS 2010 Re: How can i make this work.

    No problem :wave:

    Perhaps you should mark this thread as resolved (Thread Tools > Mark Thread Resolved).
  14. Thread: Navigate listbox

    by gavio
    Replies
    7
    Views
    2,335

    Re: Navigate listbox

    How about something like this:
    For i As Integer = Me.ListBox1.Items.Count - 1 To 1 Step -1
    For j As Integer = i - 1 To 0 Step -1
    If Me.ListBox1.Items(i).ToString() =...
  15. Thread: Navigate listbox

    by gavio
    Replies
    7
    Views
    2,335

    Re: Navigate listbox

    Are you sure you don't have any duplicates in your ListBox?

    Also, consider changing your loop to the For Each form (adds some simplicity to the code):
    For Each strItem As String In...
  16. Replies
    1
    Views
    483

    VS 2008 Re: I need help please

    First of all, you will need to be more specific about your problem.

    Secondly, please consider changing your thread name, so people can actually see what your problem is about before stepping into...
  17. Replies
    4
    Views
    1,160

    VS 2010 Re: MessageBox

    Can you please clarify what exactly do you mean with "dimension"?
  18. Replies
    5
    Views
    745

    VS 2010 Re: How can i make this work.

    Perhaps something like this:
    For Each value As String In tabs
    Dim boxName As String = value + "_Box"

    For Each oControl in Me.Controls
    If oControl.Name = boxName Then
    ...
  19. Re: A little help with repeat bookings and retrieving data

    Can you please clarify, what exactly a repeat booking is in your case? I know you're having problems implementing it into your SQL statement, but I don't know what's the condition to use it (or if I...
  20. Replies
    4
    Views
    816

    VS 2010 Re: List View Selelectable Text

    How do you mean exactly, select? Like the complete row or just some actual text in one cell?

    If you wan't to select the complete row, set ListViews' FullRowSelect property to True. That's it.
    If...
  21. Thread: V 2010

    by gavio
    Replies
    2
    Views
    602

    Re: V 2010

    As already mentioned.

    1. Put two TextBox-es on your Form and one Button on your Form.
    2. Name the first TextBox "txtA" and the second one "txtB".
    3. Double click on the Button. Code editor...
  22. Re: Best way to search drive for all folders with the same name...

    Search the forums. This has been answered too many times.
  23. Replies
    4
    Views
    566

    VS 2010 Re: Getting Assembly of an instance

    Found another solution. Each call actually starts in an assembly where this object exists. So, i will "drag" an Assembly object as a parameter to it's final destination. Not as good as I hopped it...
  24. Replies
    4
    Views
    566

    VS 2010 Re: Getting Assembly of an instance

    But there's no other way? C only knowing about the oButton ref and not knowing about B nor A?
  25. Replies
    4
    Views
    566

    VS 2010 [RESOLVED] Getting Assembly of an instance

    There are three assemblies: A, B and C.

    A has: class Button.
    B has: instance of Button (call it oButton).
    C has: oButton.

    C wants to have: assembly oButton is in (B).

    How to?
  26. Replies
    6
    Views
    825

    Re: [RESOLVED] In serch of the right SQL ....

    Here's a somewhat better solution, still, probably not as optimized as it should be. Anyhow, you can use a sub-query (if this are relatively small datasets, it shouldn't be a performance problem):...
  27. Replies
    6
    Views
    825

    Re: In serch of the right SQL ....

    Forgot about that. Anytime you use an aggregate function (such as MAX) you need to use a GROUP BY expression for all of the other fields not in an aggregate function.

    So, add DIM_A, DIM_B and...
  28. Replies
    6
    Views
    825

    Re: In serch of the right SQL ....

    I think this will work in most SQL environments (tried it on Oracle and SQLite):
    SELECT
    MAX(UID),
    DIMENSIONS,
    DIM_A,
    DIM_B,
    DIM_C
    FROM
    YOURTABLENAME
    GROUP BY
  29. Thread: Custom DAL

    by gavio
    Replies
    4
    Views
    825

    Re: Custom DAL

    Btw... "SelectRealValues" is missing a "Optional List<SelectCondition>" :blush:
  30. Thread: Custom DAL

    by gavio
    Replies
    4
    Views
    825

    Re: Custom DAL

    Are you by any chance talking about the Business Logic Layer? If so, that's a separate issue. I know BLL is used to manipulate data, so, I use it on a different level.

    The purpose was to make Data...
  31. Thread: Custom DAL

    by gavio
    Replies
    4
    Views
    825

    Custom DAL

    I don't know if this is the right forum section, so please re-direct me if not.

    I was wondering about your comments on this. Would you consider this as a good DAL? Keep in mind, this is intended...
  32. Replies
    4
    Views
    754

    VS 2008 Re: Variable initialization

    In my case, ListEx still is completely generic. I just like to redefine most of system classes I use in case I need to extend theme later. I KNOW I shouldn't put something specific into something...
  33. Replies
    4
    Views
    754

    VS 2008 Variable initialization

    This is somewhat a theoretical question.

    I had this:
    Private _oFields As ListEx(Of FieldStruct) = New List(Of FieldStruct)ListEx is my "extension" for List. How can this compile really? It's true...
  34. Replies
    0
    Views
    1,095

    VS 2008 TableLayoutPanel AutoScroll and Padding?

    As the title says, I have a TableLayoutPanel control with AutoScroll set to True and Padding set to 10 (all sides). The first picture has Padding set to 0. What goes wrong in the second one?
  35. Replies
    2
    Views
    3,930

    VS 2008 Re: ToolStrip over MDI child

    No, it's not standard. I've tried it in a new project, where parents toolbar doesn't go over the MDI child. All the windows in the screenshot provided are in it's working stage. I just don't know...
  36. Replies
    2
    Views
    3,930

    VS 2008 ToolStrip over MDI child

    Why does this happen?
  37. Thread: Global events?

    by gavio
    Replies
    9
    Views
    977

    VS 2008 Re: Global events?

    I understand the "AddHandler" method. But. As I already mentioned - assume "A" and "B" don't know each other - neither do you. "A" and "B" are two objects created in different scenarios, different...
  38. Thread: Global events?

    by gavio
    Replies
    9
    Views
    977

    VS 2008 Re: Global events?

    For example:
    Public Class Form1
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    Dim A As New Form2
    Dim B As New Form2

    ...
  39. Thread: Global events?

    by gavio
    Replies
    9
    Views
    977

    VS 2008 Re: Global events?

    Yes. "A" and "B" are created at runtime and don't "know" each other (are objects created in totally different scenarios).
  40. Thread: Global events?

    by gavio
    Replies
    9
    Views
    977

    VS 2008 Global events?

    I don't really know how to call this...

    Anyhow... I have two objects (for example, "A" and "B") of the same type/class. I have an event (for example, "Refreshed") in both objects. Is it possible,...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width