Search:
Type: Posts; User: gavio
Search:
Search took 0.26 seconds.
-
In that case, thank you for all your time and patience :)
-
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() {...
-
Ok. And how would I go about that?
-
Also, no one will download 400+ Mb source.
-
Please be more specific about your problem.
Also, you can attach the code or even the files directly to the forum.
-
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...
-
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...
-
Ok. Got it working with a little bit of a different approach.
Model:
public UserRegistrationModel()
{
this.InitializeCountries();
}
private void InitializeCountries()
{
-
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...
-
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...
-
If there is some "logical" limit of operators, I think we'll never reach it. Not with good queries anyways :P
-
In my oppinion, serialization is still the simplest and the cleanest way to handle XMLs.
-
No problem :wave:
Perhaps you should mark this thread as resolved (Thread Tools > Mark Thread Resolved).
-
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() =...
-
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...
-
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...
-
Can you please clarify what exactly do you mean with "dimension"?
-
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
...
-
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...
-
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...
-
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...
-
Search the forums. This has been answered too many times.
-
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...
-
But there's no other way? C only knowing about the oButton ref and not knowing about B nor A?
-
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?
-
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):...
-
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...
-
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
-
Btw... "SelectRealValues" is missing a "Optional List<SelectCondition>" :blush:
-
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...
-
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...
-
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...
-
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...
-
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?
-
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...
-
-
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...
-
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
...
-
Yes. "A" and "B" are created at runtime and don't "know" each other (are objects created in totally different scenarios).
-
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,...
|
Click Here to Expand Forum to Full Width
|