|
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?
|
|
|
|
|
It is possible, but you will need to write code to serialize the data from the Textbox es in some way (e.g. into XML or some similar formatted string). You can then send that to the ClipBoard [^]. On the paste operation you would get the data from the ClipBoard , deserialize it back to the five separate items and send each one to its Textbox .
Veni, vidi, abiit domum
|
|
|
|
|
10kbps wrote: So my problem is copy and pasting data in multiple textboxes. Easy anser; can't be done (but do read on!) You can paste text to the control that has focus, on the location of the cursor. If you want multiple pastes, you'd be doing them one after the other.
10kbps wrote: 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? So, you got five textboxes, and want to paste a single string so that it gets divided over those five textboxes? That's different from pasting the same text to five textboxes
The first textbox typically has focus when I paste a serial number. Hence, I'd suggest splitting the string into five parts when it is pasted in the first textbox, and then to divide those parts over the correct textboxes.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
I took this - Application Trial Maker[^] and started editing it to work online with database instead with .reg files and such, and in that Registration Dialog there are textboxes made as one component called serialbox, I want to get somehow to user can copy all at once ID and be able to paste serial all at once not to fill one box by another, any help about it maybe some code snippet or something?
|
|
|
|
|
10kbps wrote: I want to get somehow to user can copy all at once ID and be able to paste serial all at once not to fill one box by another, any help about it maybe some code snippet or something? Here's something;
Imports System.Windows.Forms
Module Module1
Dim tb1 As TextBox
Dim tb2 As TextBox
Dim tb3 As TextBox
Sub Main()
Using f As New Form()
tb1 = New TextBox With {.Dock = DockStyle.Left, .MaxLength = 3}
tb2 = New TextBox With {.Dock = DockStyle.Left, .MaxLength = 5}
tb3 = New TextBox With {.Dock = DockStyle.Left, .MaxLength = 3}
f.Controls.AddRange(New Control() {tb3, tb2, tb1})
AddHandler tb1.KeyDown, AddressOf KeyDown
tb1.Focus()
f.ShowDialog()
End Using
End Sub
Public Sub KeyDown(sender As Object, e As KeyEventArgs)
If e.KeyCode = Keys.V And e.Control = True Then
e.Handled = True
DivideThisStringOverSomeTextBoxes(Clipboard.GetText)
End If
End Sub
Public Sub DivideThisStringOverSomeTextBoxes(someString As String)
Dim tempString As String = someString.Replace("-", "")
tb1.Text = tempString.Substring(startIndex:=0, length:=3)
tb2.Text = tempString.Substring(startIndex:=3, length:=5)
tb3.Text = tempString.Substring(startIndex:=8, length:=3)
End Sub
End Module Mind you, this will explode if you post a string of ten characters; you'd still have to add in that check, before the substring is done
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
hy. i have the code from visual basic 6.0
i want change and convert from visual basic 6.0 to visual basic 2010.
this is my code.
i don't understand using syntax get and put in visual basic.
can you help me and explain to me about my code.
Private Sub Command3_Click()
Dim data As String
Dim x As Long
Dim y As Long
Dim z As Long
Dim pjg As Long
Dim ext As String
Dim encpjg As String
encpjg = FileLen(Text2.Text)
ext = Mid(StrReverse(Text2.Text), 1, 4)
ext = StrReverse(ext)
pjg = FileLen(Text1.Text)
FileCopy Text2.Text, Text2.Text & "_STEGO" & ext
x = FileLen(Text1.Text) Mod 10000
y = FileLen(Text1.Text) - x
Open Text1.Text For Binary Access Read As #1
Open Text2.Text & "_STEGO" & ext For Binary Access Write As #2
Put #2, FileLen(Text2.Text) + 1, ""
If pjg >= 10000 Then
For z = 1 To y Step 10000
data = Space$(10000)
Get #1, z, data
Put #2, , encrypt(data, Text5.Text)
Next
y = x
data = Space$(y)
Get #1, , data
Put #2, , encrypt(data, Text5.Text)
Put #2, , "|" & encrypt(encpjg, Text5.Text)
Else
data = Space$(pjg)
Get #1, 1, data
Put #2, , encrypt(data, Text5.Text)
Put #2, , "|" & encrypt(encpjg, Text5.Text)
End If
Close #2
Close #1
MsgBox "done!!" & vbCrLf & "file stego in " & Text2.Text & "_STEGO" &
ext, vbOKOnly, "stego"
End Sub
|
|
|
|
|