|
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()
|
|
|
|
|
Ok, I have an excel spreadsheet with partial file names.
How does one go about finding a folder with the partial file name.
Folders are named like:
AB_######_businessname
ABC_######_businessname
in my spreadsheet I have the ######
What I want to do is go to a directory, find a folder with the ###### in the name, and copy the folder to my destination folder. Help please!!!
|
|
|
|
|
not exactly sure what your issue is
Surely you are just going to use a combination of
FileSystem.GetDirectories() and/or
FileSystem.GetFiles()
So one approach may be
a) (Manually) export the ###### from your spreadsheet to a file, with one ###### per line
b) open and read the file from (a)
c) for every line read (trim it) and form two strings, one AB_..., one ABC_...
d) use GetDirectories() and each of the strings from (c)
or, depending on how many ####### variations you have, you could use a regex - get all directories from a root/start point and check if they match
(AB|ABC)_(#####1|#####2|#####3...)_businessname
using the regex
or - read the file of ###### into a list, get a matching list of 'AB*' directories, extract the '######' bit depending on wether its AB or ABC at the front of the string, and see if the ###### bit is in the list
there are multiple approaches - I'd probably use the last one, depending on how many ###### there are - if there are 'lots', I might not use a straight list, but something with a faster lookup time
'g'
|
|
|
|
|
Here's and example from www.microsoft.com
For Each foundFile As String In My.Computer.FileSystem.GetFiles(
My.Computer.FileSystem.SpecialDirectories.MyDocuments,
Microsoft.VisualBasic.FileIO.SearchOption.SearchAllSubDirectories, "*.dll")
Listbox1.Items.Add(foundFile)
Next
|
|
|
|
|
Hello there, this is my first time posting here discussion for help :3 - Be gentle please!
So my problem is copy and pasting data in multiple textboxes. So i have made 5 small textboxes (Serial Box), is there any possible way to make user copy data from all 5 instead of only 1 and same for pasting?
|
|
|
|
|
What are you "pasting" this information into? Your own application or some other app that you don't have control over?
|
|
|
|