15,896,201 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by AJ_Smit (Top 10 by date)
AJ_Smit
29-Mar-16 4:14am
View
Instead of ...
lista.DataGridView1.DataSource = dt.DefaultView
Try adding the data with NewRow() method in a for loop, let me know whether that works, I have noticed that in some cases DataAdapter does fail when trying to retrieve data from the DB
AJ_Smit
1-Jun-14 4:18am
View
Ah crap ty anyways griff.... I thought as much... well we might as well type it in by hand or just open the pc and scan it.... :-(
AJ_Smit
11-Nov-13 10:45am
View
Ok so uhm can you post a part of the code including the Imports part?
AJ_Smit
10-Nov-13 9:16am
View
Fixed the hick up regarding the Folder import to resources... It turns out that SharpZipLib works wonders in sipping up the directory and then unzipping it where ever.
AJ_Smit
10-Nov-13 9:00am
View
Thank you Sergey I will do so next time.... However I am stuck again... I am trying to add a folder with all sub-folders as embedded resources to the compiler or is it not possible?.... And believe it or not I am again scratching my head LOL... Well the app has come a long way and I am thinking of posting it in an article for other people that needs a little boost.
AJ_Smit
8-Nov-13 5:39am
View
I have played around with the original files and did this...
Imports Settings
Imports System.Drawing
Imports System.Windows.Forms
Public Class Form1
Inherits Form
Dim WithEvents myButton As Button
Public Sub New()
myButton = New Button()
myButton.Text = "Auto Generated"
myButton.Top = 70
myButton.Left = 70
Me.controls.add(myButton)
End Sub
Private Sub myButtonClick(ByVal sender As Object, ByVal e As EventArgs) _
Handles myButton.Click
MessageBox.Show("Hello World!")
End Sub
End Class
<serializable> _
Public Class Settings
Dim m_MyButtonText As String
Public Sub New()
End Sub
Public Readonly Property MyButtonText() As String
Get
Return m_MyButtonText()
End Get
End Property
End Class
I managed to get rid of all the errors but seem to be getting this now...
Line 36, Col 0: Error BC30455 - Argument not specified for parameter 'index' of 'Public ReadOnly Default Property Chars(index As Integer) As Char'.
AJ_Smit
8-Nov-13 5:30am
View
Thanks Mehdi, but that was where I started initially... I found useful tips regarding a C# program but as I converted the app to vb.net it gave me several errors one being as soon as I try serializing my settings.xml file, The app lets me know that it cannot locate the file or assembly "MyNamespace.XMLSerializer... Hence I had to go a different route, that is working fine now by the way, but as I replied to Sergey, The issue is I am not able to compile two classes that are typed in the same text file.
AJ_Smit
8-Nov-13 5:25am
View
Hi Sergey
This is the source in the "C:\prg.txt" file ...
Imports System
Imports System.Xml
Imports System.Drawing
Imports System.Windows.Forms
Public Class Form1
Inherits Form
Dim WithEvents myButton As Button
Public Sub New()
myButton = New Button()
myButton.Text = "Auto Generated"
myButton.Top = 70
myButton.Left = 70
Me.controls.add(myButton)
End Sub
Private Sub myButtonClick(ByVal sender As Object, ByVal e As EventArgs) _
Handles myButton.Click
MessageBox.Show("Hello World!")
End Sub
End Class
Public Class Settings
Dim m_MyButtonText As String = ""
Public Property MyButtonText() As String
Get
Return m_MyButtonText()
Set (Byval value As String)
m_MyButtonText = value
End Get
End Property
End Class
If I compile the file containing the source without the Settings Class it compiles correctly.
And these are the errors I get...
Line 2, Col 0: Error BC40056 - Namespace or type specified in the Imports 'Settings' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.
Line 4, Col 0: Error BC40056 - Namespace or type specified in the Imports 'System.Xml' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.
Line 54, Col 0: Error BC42025 - Access of shared member, constant member, enum member or nested type through an instance; qualifying expression will not be evaluated.
AJ_Smit
22-Aug-13 6:15am
View
Hi David.... Firstly are you ntrying to create a database application using access?
AJ_Smit
22-Aug-13 4:22am
View
Deleted
Ok so I have located a solution to the attachment of the database file to the server
Server=.\SQLExpress;AttachDbFilename=C:\MyFolder\MyDataFile.mdf;Database=dbname;
Trusted_Connection=Yes;
So please I need a solution to my second question only.
Thanks again
Show More