|
It's OK I understand what you were saying, but I was thinking that maybe people ding the job had come across the problem and fixed it or got a workaround.
Unfortunately there is nothing much about it on that site. The problem gets a mention. Apparently it appeared in 2.6 and has not been fixed satisfactorily as far as I can tell. The forum is a bit 'thin' to say the least.
In the end, because the code has to address .NET 4.0 I simply re-compiled version 2.5 to target the .NET 4.0 framework. Since the problem does not exist in 2.5 I am happy and I am not concerned about the additions in later versions that i will not have by using 2.5.
At least if someone else experiences the problem our discussion is here to give them a pointer. Thanks for your input.
|
|
|
|
|
TheComputerMan wrote: I simply re-compiled version 2.5 to target the .NET 4.0 framework. Since the problem does not exist in 2.5 I am happy Whehe, nice pragmatic approach
Well done
|
|
|
|
|
Hello,
I have built a custom control where I use a label to effectively work as a button on this control.
The problem is, when I place this control on my forms, I want the click event of that label to handle the click event of the user control. The label takes up the whole UserControl form.
Hope this makes sense, and any help would be appreciated!
Thanks
|
|
|
|
|
I really do not understand what you mean by " I want the click event of that label to handle the click event of the user control.". If you mean that you want to raise the usercontrol click event when the label is clicked, then this should do the trick.
Public Class UserControl1
Private Sub Label1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label1.Click
OnClick(e)
End Sub
End Class
|
|
|
|
|
That's what I meant, and that's what I need!
Thanks you very much, this does the trick
|
|
|
|
|
If the Label takes up the entire surface of the UserControl, the UserControl will never fire the Click event. The click will land on the Label since the mouse cannot "see" the UserControl surface through the label.
Or is there something you're not describing in your post??
|
|
|
|
|
Yes the label taking up the entire surface was the issue, solved with Me.OnClick(EventArgs.Empty). Thank you for your reply sir
|
|
|
|
|
Hi Community,
i have designed a database model with entity designer in vs 2013 express. the project results in a database and the datacontext class.
every table has an id column, witch is the primary key. my problem is now, that i want to impelement an interface for each entity wich contains a property id -> is needed for the generic repository pattern. i have tried to extend the designer generated code of the datacontext, but every time the project is rebuild, the manually added code is lost.
there must be an better way to extend the designer code with the interface implementation or?
best regards from northern germany
|
|
|
|
|
You cannot modify the designer generated code, you need to add your code to a separate source file.
Veni, vidi, abiit domum
|
|
|
|
|
HI Richard,
i know, but how?
I have an Entity for instance
MyEntity with a Property Id as the primary key. And i need to impelement an Interface called IEntity with the Property ID. How can this be done with partial classes or so?
|
|
|
|
|
I assume that it creates a partial class (I have not used this feature) so you just need to edit, or create, the source file that implements these parts of the class.
Veni, vidi, abiit domum
|
|
|
|
|
Hi,
I wanted to ask, is there a way/how would I go about creating an application, in terms of how would I structure my code, if I wanted to create, for lack of a better term, a backend-manager (application) to allow me to easily control/manage certain aspects of the program that I would distribute to the public?
Sort of like a content management system for self-developed software?
This may be a very stupid thing to ask, incase what I'm asking is nonsense, but I'm convinced that something like this is possible?
I believe it's called Dynamic-something?
Where each component of my main application is stored in a database or something, that I could access or modify?
Any help that you can/are willing to provide me about this topic would be greatly appreciated.
Many thanks in advanced!
And if there's anything that I've written which doesn't make sense/you need me to expand upon then just say!
Thanks again for reading!
Long.
Live.
Play.
^.^
#Wreck'D
|
|
|
|
|
|
What will be the attributes for this project??
|
|
|
|
|
Only you can answer that question. Talk to your customer(s) and gather all the requirements of the project. Analyse those details and identify the inputs and outputs, database tables etc. Only then can you start thinking about actual coding, at which time you may have some more specific questions.
Veni, vidi, abiit domum
|
|
|
|
|
Actually i'am a student of bca 2nd year.I have to create a mini project on construction management.And i dont have any idea about these project and how to deal with these attribute....
|
|
|
|
|
Unfortunately that is not a programming problem. If you have no idea how to even start the project then you should talk to your tutor about finding a project that is more in line with what you have learned on your course.
Veni, vidi, abiit domum
|
|
|
|
|
I have complete knowledge on visual basic but not on the topic given to me..
|
|
|
|
|
Fine, but this is a programming forum, we cannot provide the design specifications for your project.
Veni, vidi, abiit domum
|
|
|
|
|
|
OK, then your instructor is the person to talk to about the requirements for this project.
Gathering requirements is probably the most important part of writing a new application. Read that statement this way: "This is an important part of writing code and what you're are being taught to do with this project!"
Without a good set of requirements, you're just guessing at what the project needs and the code to write to satisfy those requirements.
|
|
|
|
|
In the early 90s I was contracted to build a system that generated an invoice for a mine maintenance company. 4 YEARS later they had a BOM, asset management, job scheduling and a couple of other modules, including invoicing. Your request reminded me of such a requirement.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Hi,
I have a Module that connects and disconnects the database and I call this sub from other forms/usercontrols.
Imports MySql.Data.MySqlClient
Module DbConn
Public conn As MySqlConnection
Public Sub OpenConnection()
..........Code.................
End Sub
Public Sub CloseConnection()
..........Code.................
End Sub
End Module
Now I am trying to make it a Class Library and build it a dll file so that I can use this dll in any project.
I tried...
Imports MySql.Data.MySqlClient
Public Class DbConn
Public conn As MySqlConnection
Public Sub OpenConnection()
..........Code.................
End Sub
Public Sub CloseConnection()
..........Code.................
End Sub
End Class
but when I use it, it is not showing my "OpenConnection" or "CloseConnection" in the dll procedure.
What should I do ?
|
|
|
|
|
Take a look at the differences between modules and classes[^]
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
You must create an instance of DbConn, and the you can call the methods of that instance.
Dim x as DbConn
x = new DbConn()
x.OpenConnection()
|
|
|
|