16,004,653 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 .NET 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 Kevin Brady (Top 34 by date)
Kevin Brady
8-May-24 13:04pm
View
Dave, Thanks for your help on this topic. I agree, I am not disagreeing with you.
One possible reason is that some email users filter their inbox based on whether they are "To" recipients or "cc" recipients.
Kevin Brady
8-May-24 12:57pm
View
I disagree that it is "absolutely useless". And I don't understand why the smtp client should even care.
This is being implemented programmatically. Now I have to insert a check for it for duplicates.
Kevin Brady
8-May-24 12:54pm
View
It is too long to post here.
Kevin Brady
30-Apr-23 9:55am
View
Thank you. This solution works.
Kevin Brady
21-Jan-23 11:41am
View
Port 587 worked in conjunction with setting an application specific password in Yahoo.
Kevin Brady
21-Jan-23 11:40am
View
Before posting this question, I did a google search for the issue. I found both of the above links as well as many others similar ones. None of them worked.
Yahoo mail and gmail have changed the method to programmatically access email services.
See this link: https://stackoverflow.com/questions/62030011/allow-less-secure-app-access-in-yahoo-mail
In Yahoo email, I had to generate an application specific password. After doing this, the solution was able to send emails.
Also, I had to change the port to 587.
Kevin Brady
7-Nov-21 8:22am
View
Thank you for the response. I thought that might be the case but also thought there might be some clever way to do what I was asking about that hadn't occurred to me.
Thank you also regarding code fragments. That could prove to be helpful for future development projects.
Kevin Brady
5-Feb-21 15:19pm
View
I have set the transfer parameter "CopyAllObjects = False". Now, only the desired table transferred. This seems to be the important parameter for the desired functionality.
Also, if I set "CopyData = True" the data transfers along with the table.
The revised complete code is now:
' copy a data table from one db to another
Public Sub CopyTable(ByVal iSourceServerName As String,
ByVal iTargetServerName As String,
ByVal iSrcDatabase As String,
ByVal iTargerDatabase As String,
ByVal iTblName As String,
ByVal CopyData As Boolean,
<out> ByRef iRetMsg As String)
Dim srcsrv = New Server(iSourceServerName)
Dim srcdb As Database = srcsrv.Databases(iSrcDatabase)
Dim iTbl = srcdb.Tables(iTblName) ' the table to transfer
Dim targetsrv = New Server(iTargetServerName)
Dim targetdb As New Database(targetsrv, iTargerDatabase)
Dim trans As New Transfer()
With trans
.Database = srcdb
.DestinationServer = iTargetServerName
.DestinationDatabase = iTargerDatabase
.DestinationLoginSecure = True
.ObjectList.Add(iTbl) ' only transfer the specified table
.CopyAllObjects = False
.CopyAllTables = False
.CopySchema = CopyData
.CopyData = True
With .Options
.ContinueScriptingOnError = True
.DriAllKeys = True
.WithDependencies = False
.DriAll = False
.DriDefaults = True
.DriIndexes = True
.DriPrimaryKey = True
.DriUniqueKeys = True
.DriForeignKeys = False
End With
End With
Try
trans.TransferData()
Catch ex As Exception
iRetMsg = ex.ToString
End Try
End Sub
Kevin Brady
5-Feb-21 10:53am
View
The tables that transfer are not populated with data. Only the schema transfers.
Not all of the tables are copied from the source to the target because the transfer throws an error that has to do with the size of the target (another issue for another time).
I'm not sure what you mean by "parameterless constructor" for the transfer. Please explain. Do you mean NOT passing the srcdb?
Kevin Brady
2-Feb-21 17:47pm
View
Thank you for your assistance. I was able to get this working.
What is PostgreSQL?
Kevin Brady
31-Jan-21 9:59am
View
Setting the full name of the dataserver as you detailed works. Thank you very much.
To do this, I had to add a reference to Microsoft.SqlServer.ConnectionInfo.
Kevin Brady
30-Jan-21 12:51pm
View
Deleted
When I try to get the InstanceName, an error is thrown. "Failed to connect to server"
It seems that SMO is not correctly finding the SQL server.
Kevin Brady
30-Jan-21 12:51pm
View
When I try to get the InstanceName, an error is thrown. "Failed to connect to server"
It seems that SMO is not correctly finding the SQL server.
Kevin Brady
27-Mar-20 14:07pm
View
Thank you
Kevin Brady
22-Feb-18 12:18pm
View
I get it now. I was trying to "publish" the application (what I am used to doing) instead of just building the .exe. Now i feel like an idiot. Thank you for helping me work my way through this issue.
Kevin Brady
22-Feb-18 10:44am
View
It is a simple console app. Visual studio makes it a click once app and I can't figure out how to make it NOT a click once app.
How did you create the assembly?
Kevin Brady
21-Feb-18 17:46pm
View
I found this: https://stackoverflow.com/questions/923607/remove-clickonce-from-a-winforms-app#_=_
I have unchecked the "Click Once application" on the security tab and unchecked the "Sign the click once manifest" on the signings tab. Every time I publish the assembly, the Click Once Application box is rechecked. I can't make it go away.
Kevin Brady
21-Feb-18 17:18pm
View
Apparently, you can't pass arguments to a click once application. So how did you construct the child process assembly?
Kevin Brady
21-Feb-18 16:53pm
View
I found this searching the web: https://robindotnet.wordpress.com/2010/03/21/how-to-pass-arguments-to-an-offline-clickonce-application/
Kevin Brady
21-Feb-18 12:43pm
View
I have confirmed that the child app does in-fact run from the parent, but it does not get the passed arguments.
Kevin Brady
21-Feb-18 12:30pm
View
Richard: Do you have any ideas of a direction i can pursue?
Kevin Brady
21-Feb-18 11:29am
View
It is a console application. The start-up object is the Main sub. Is is net frame work 4.0 client profile.
Kevin Brady
21-Feb-18 11:15am
View
Richard: The link you provided is the same as the link I mentioned. The code that I wrote in this post was derived from the link page.
What more details do either of you need? Where you able to run the code I posted successfully? Do you have a direction that you would suggest?
Kevin Brady
20-Feb-18 17:17pm
View
I got this from: https://msdn.microsoft.com/en-us/library/system.diagnostics.processstartinfo.arguments(v=vs.110).aspx
Kevin Brady
20-Feb-18 17:14pm
View
The application name is set in the initialization statement:
Dim startInfo As ProcessStartInfo = New ProcessStartInfo(mFullUtilPgmName)
Kevin Brady
19-Jan-18 17:48pm
View
I posted a new question. https://www.codeproject.com/Questions/1226184/Get-the-embedded-source-control-object
Kevin Brady
19-Jan-18 17:47pm
View
I posted a new question on using this. https://www.codeproject.com/Questions/1226184/Get-the-embedded-source-control-object
Kevin Brady
19-Jan-18 17:06pm
View
Now, on to how to use it. I will be posting another thread soon.
Kevin Brady
18-Jan-18 15:09pm
View
I investigated this further and Alan N is correct. I modified the original custom class to remove the OnMouse down method and assigned the context menu directly to the underlying ComboBox. It works as expected.
Public Property ContextMenuStrip() As ContextMenuStrip
Get
Return Me.ComboBox.ContextMenuStrip
End Get
Set(ByVal iConMenu As ContextMenuStrip)
Me.ComboBox.ContextMenuStrip = iConMenu
End Set
End Property
Thanks Alan N.
Kevin Brady
18-Jan-18 10:05am
View
The context menu strip HAS been assigned to the custom toolstripcombobox control in the designer. This is not the problem. Please re-read my description including the new information I presented yesterday. In addition to the original question, perhaps the more fundamental question is where in the application does the default toolstrip derive from?
Kevin Brady
14-Oct-17 17:34pm
View
Thanks for help in prodding me to find a solution.
Kevin Brady
14-Oct-17 14:29pm
View
This is a list of what I found.
Ethernet
Local Area Connection* 4
Ethernet 2
Wi-Fi
Bluetooth Network Connection
Loopback Pseudo-Interface 1
So now the question is do I key on "Local Area Connection* 4" or "Ethernet" or "Ethernet 2"?
Kevin Brady
14-Oct-17 14:12pm
View
I do not have Windows 10 the development PC I use. This is on a client PC. Making troubleshooting all the more difficult. None the less, I will try to insert some code the determine what the adapter names are.
Kevin Brady
17-Sep-17 11:05am
View
As stated, "Run To Cursor" appears on the right click menu but the code does not stop at the cursor. I read the linked article and also watched the video https://channel9.msdn.com/Events/Visual-Studio/Visual-Studio-2017-Launch/T118
When I am editing my code, I do NOT see the small green glyph when I hover over a line of code. Obviously I am doing something wrong I just do not know what.
Show More