|
Hey guys,
I have been working on modifying some code and a few other things in my project as I have been learning of better techniques. I have been able to reduce my code by a few thousand lines, by writing some Functions to do what I need, rather than copying code everywhere. What I would like to do is post my code in a public ::workspace and share it with the community so that you all can see it and maybe help me make it even better. If I did that, would there be anyone willing to help, and if so, what is the best method of me uploading it? I can use git with a new ::workspace, and there really is not much to it at the moment. It is simply one form, with about 14-15 buttons, a DataGridView and a few ComboBoxes.
The Functions I have written, I have to wonder if they can't be combined somehow for even less code, but I haven't had the time to look into it.
Basically, this form, when completed, will access several different MySQL Tables (Yes, I know I could combine them, and eventually I will, but right now, we want them this way for learning purposes.). The ComboBoxes then fill with data based on the Table selected by the buttons. I will be adding buttons to copy information into a different table, as well as a few other things.
Anyways, that's what I was wondering. Thoughts?
|
|
|
|
|
Zachery Hysong wrote: Anyways, that's what I was wondering. Thoughts? TL;DR.
Post it, and FxCop will seem to be friendly and easy-going.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
|
How to download Workspaces project which is created by another developer? its too hard to understand how to do this and how to use workspaces unlike "codeproject basic site" which is easy to use and can be understood easily.
|
|
|
|
|
Agent_Spock wrote: "codeproject basic site" which is easy to use and can be understood easily. Oh the irony of someone posting a statement like this in a forum that it has absolutely nothing to do with.
|
|
|
|
|
i found how to do this, now sir, how to delete the above question?
|
|
|
|
|
Try thinking a bit harder before you post, about which forum is the right place for your question.
|
|
|
|
|
|
I have seen some software made on .Net framework but when i checked installed programs i could not locate .net framework. My question to all experts is how to make an C# application run without .Net framework installed.
|
|
|
|
|
Any Tablet running Windows 8.1 or 8.1 Pro should be fine, just remember to keep away from Windows RT.
All the big name Tablets, Surface Pro, Yoga, what have you, all run 64-Bit Processors and should have no problem running VS2008, or higher even. And there are TONS of programs (I still refuse to use the term "app") for accessing and modifying SQL Databases.
|
|
|
|
|
thank you sir, but i have to change the question because of downvoting and posting on the wrong page.
|
|
|
|
|
Why not ask this in the lounge? Your question has no bearing on this forum whatsoever.
|
|
|
|
|
System.Data.SqlClient.SqlException: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 0 - No connection could be made because the target machine actively refused it.)
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, SqlConnection owningObject)
at System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject)
at System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart)
at System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance)
at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance)
at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection)
at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options)
at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject)
at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject)
at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject)
at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)
at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
at System.Data.SqlClient.SqlConnection.Open()
at DALG6.saveg6.InsertCompany(saveg activeAnbiyam1) in D:\WindowsFormsApplication1\DALG6\saveg6.cs:line 58
at WindowsFormsApplication1.Form1.SAVEG() in D:\WindowsFormsApplication1\WindowsFormsApplication1\Form1.cs:line 33
at WindowsFormsApplication1.Form1.button1_Click(Object sender, EventArgs e) in D:\WindowsFormsApplication1\WindowsFormsApplication1\Form1.cs:line 23
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
WindowsFormsApplication1
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/Default%20Company%20Name/Setup1/WindowsFormsApplication1.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
|
|
|
|
|
So?
Regards,
Rob Philpott.
|
|
|
|
|
The answer is in the first line of your post:
"A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 0 - No connection could be made because the target machine actively refused it.)"
|
|
|
|
|
Now dumping the stack trace won't help. What were you trying to do?
Beauty cannot be defined by abscissas and ordinates; neither are circles and ellipses created by their geometrical formulas.
Carl von Clausewitz
Source
|
|
|
|
|
I have a c# program and want to connect it to remote sql server (sql server on another machine)
and i need help with the connection string inside the c# program.
|
|
|
|
|
|
|
You will get it from visual studio itself.
|
|
|
|
|
I want to write a small code in c# using Fuzzy Logic framework where user will give input number between 0 to 10 and that numbers needs to be classified as Low, Moderate and High. Low is 0 to 3, Moderate is 3 to 7 and High is between 6 to 10. Using triangular membership function. Any guess how to do it I read some tutorials on Fuzzy Framework but couldn't get my problem fit in those. Following is code I wrote,
class Program
{
static void Main(string[] args)
{
ContinuousDimension score = new ContinuousDimension("score", "score of word", "unit", 0, 10);
ContinuousSet low = new RightQuadraticSet(score, "Low Score", 0, 3, 4);
ContinuousSet high = new LeftQuadraticSet(score, "High Score", 6, 7, 10);
ContinuousSet mod = new BellSet(score, "Moderate Score", 5, 1, 2);
....
}
How should I proceed further now. I have assigned manually some score to opinion words(about 7000) on scale of 0 to 10 and I want to classify intensity of this opinion words as low, moderate or high using triangular function. Using fuzzy category of each word I have to further implement rules like if word1 is low and word2 is high then orientation is moderate .
|
|
|
|
|
|
I saw it initially, however had some questions.
1) How should be my dimension? Continuous or Discrete ?
2) How to define triangular membership function in C# fuzzy framework.
3) How I get member ship value of each element ?
4) How I define further rules ?
|
|
|
|
|
That link is to an article on CodeProject; if you have questions about it then you should post them in the forum at the end of the article.
|
|
|
|
|
hi,
I want to remove .net dependency of my c# project , So that i can rum my .Exe without . net framework .How an i do this thing.....Please help my uut regarding this asap....
|
|
|
|
|