Click here to Skip to main content
15,399,574 members

Comments by F.moghaddampoor (Top 60 by date)

F.moghaddampoor 27-Jan-13 9:15am View
   
Cheers brother Docking is working.
F.moghaddampoor 27-Jan-13 9:13am View
   
No i installed .net framework 4.5 and my problem was solved. Sql severl local 2012 won't work with .net framework 4.0
F.moghaddampoor 27-Jan-13 9:13am View
   
No i installed .net framework 4.5 and my problem was solved. Sql severl local 2012 won't work with .net framework 4.0
F.moghaddampoor 26-Jan-13 11:05am View
   
Very good.
However it's a little difficult to work with docking and stuff, but i got the result wanted. Thank you very much Sergey. you earn my 5. cheers.
F.moghaddampoor 21-Jan-13 16:24pm View
   
Maybe there may need to be a submitchanges function that you may forgot to do on your dataset?
F.moghaddampoor 21-Jan-13 16:15pm View
   
After all i'm going to use xna for my purpose, it has sound recording API, but there are lot's of problems there, like you should code from the first, when you want to create a textbox you should code it by yourself! Wonderful world.
F.moghaddampoor 21-Jan-13 16:05pm View
   
I mean i'm using linq to update my database and it needs submit changes.
F.moghaddampoor 21-Jan-13 16:02pm View
   
Do you submit changes to your database? after updating or if you are using datagridview do you refresh dataset?
F.moghaddampoor 21-Jan-13 15:44pm View
   
So i know there are many sound record api in the world, but i want an specific c# based, .net framework 4.0 compatible api.
I saw these things before, but I'm thinking on how to write a very well designed program, i cant use winmm.dll cause it has bugs. and your offer is not compatible with .net 4.0. Dear sergey how do professional developers do this? I think it would be the answer: Direct X=> but Directx managed code 1.1 is not compatible with ,net framework 4.0!. I'm wondering why this important purpose is forgotten by Microsoft!
F.moghaddampoor 21-Jan-13 2:51am View
   
But WPF doesn't have an api to record sound by microphone, Does it?
F.moghaddampoor 19-Jan-13 13:30pm View
   
So is it your answer?
I mean you can once find the parametric result for x and use it in your program.
F.moghaddampoor 19-Jan-13 7:11am View
   
Can you tell me how i can use direct x 9.0 managed code with .net framework 4.0
F.moghaddampoor 19-Jan-13 7:10am View
   
Well i have used it in my application, but it just works with .net 3.5 and not 4.0
but i also have some component in my program can't work with .net 3.5
F.moghaddampoor 19-Jan-13 7:00am View
   
I think i have find out the bug. Linq is just working in .net framework 4.0 but when i change .net framework 4.0 to 3.0 in my properties i got an error.
F.moghaddampoor 18-Jan-13 15:39pm View
   
Well my windows boot selection disappeared and i don't know how to gt it back, i think it's clear.
F.moghaddampoor 18-Jan-13 13:34pm View
   
If you want more help on this comment.I am now expert in this way of creating database, you can even store picture and sounds in it too.
F.moghaddampoor 18-Jan-13 13:09pm View
   
Well first create a service based database from solution explorer=>Add=>New. and after creating your dataset, double click on your MDF file and add your tables and store procedures there. then create a linq to database file form solution explorer=>Add=>New and drag your tables and store procedures into it. then linq is like a class, you can use it easily, by creating an object from it.
F.moghaddampoor 18-Jan-13 12:53pm View
   
suppose i have written a mixe installer. the first installer instals .net framework 4, and then after a restart it runs an exe file that instals .net framework 4.02 update.
F.moghaddampoor 18-Jan-13 12:03pm View
   
I found the bug here, I'm sure about my connection string. its microsoft bug.

if you want to use sql local db 2012 for .net 4.0, it's impossible unless we add the update for .net framework 4.0 and that would be

Update 4.0.2 for Microsoft .NET Framework 4 – Runtime Update

So on client computer we should instal .NET Framework 4.02 instead of 4.0

However next problem is how to instal this pack silently!
F.moghaddampoor 18-Jan-13 12:02pm View
   
I found the bug here, I'm sure about my connection string. its microsoft bug.

if you want to use sql local db 2012 for .net 4.0, it's impossible unless we add the update for .net framework 4.0 and that would be

Update 4.0.2 for Microsoft .NET Framework 4 – Runtime Update

So on client computer we should instal .NET Framework 4.02 instead of 4.0

However next problem is how to instal this pack silently!
F.moghaddampoor 18-Jan-13 9:59am View
   
my error:
A network-related or instance-specific error occured while establishing a connection to
SQL server. The server was not found or was not accessible.
Verift that the instance name is correct and that SQL server is configured to allow remote connections.
(provider: SQL Network inteface, error 26-Error Locating server/instance specified)
F.moghaddampoor 18-Jan-13 9:59am View
   
my error:
A network-related or instance-specific error occured while establishing a connection to
SQL server. The server was not found or was not accessible.
Verift that the instance name is correct and that SQL server is configured to allow remote connections.
(provider: SQL Network inteface, error 26-Error Locating server/instance specified)
F.moghaddampoor 18-Jan-13 9:48am View
   
Well i don't know where this configuration manager you are talking about is?
are you mentioning the configuration manager in visual studio?
and where is Network configuration? and what does this setting do?
F.moghaddampoor 18-Jan-13 9:46am View
   
Specially i used linq to sql in my program
F.moghaddampoor 18-Jan-13 9:45am View
   
Well i don't know but didn't visual studio make the coonections before?

i mean i think visual studio connects the mdf files automatically.
F.moghaddampoor 17-Jan-13 19:26pm View
   
Well i think Microsoft failed again here!
Let's try Advanced Installer.
its a great program but the problem is it is commercial Cry | :((
F.moghaddampoor 17-Jan-13 19:21pm View
   
Deleted
man i'm new to code project how can i make my codes in c# style.
I really like to help others in programming.
F.moghaddampoor 17-Jan-13 19:16pm View
   
Well i suppose i should use the least .net framework to create my installer, but i created a mixed installer, some of the components like .net framework 4 and windows installer would be installed by visual studio setup project and some others like sql server 2012 local db should be installed by our hands. so as i didn't know xml, i decided to create a c# program with .net frame work 2.0, it would be the exe file that would be runned by visual studio custom action. so why should we bother our self to write a installer, we use a mixed approach here.
but i would be glad to help you to create a tip and trick.
F.moghaddampoor 17-Jan-13 15:38pm View
   
but users don't know what is sql and what even it does!
how can i tell them use what you want. they are customers, they have needs!
my users even don't know english :))
F.moghaddampoor 17-Jan-13 14:04pm View
   
I have found my answer see below
F.moghaddampoor 17-Jan-13 11:54am View
   
The problem is i have more packages to be installed. like microsoft Sql server localdb 2012 that is not supported in visual studio 2010 setup project.
F.moghaddampoor 17-Jan-13 11:54am View
   
The problem is i have more packages to be installed. like microsoft Sql server localdb 2012 that is not supported in visual studio 2010 setup project.
F.moghaddampoor 17-Jan-13 9:15am View
   
This is it. The answer is correct. Thank you very much. :)
F.moghaddampoor 15-Jan-13 18:20pm View
   
If this site has a like feature like Facebook i would like every comments of you, and i could give you my sincere intentions.
F.moghaddampoor 15-Jan-13 18:14pm View
   
Oh very helpful dear, I'm not native, but didn't know this. so no to dear and no to pal at the end of sentences.
and of course don't use swear words at all.
Thank you very much.
F.moghaddampoor 15-Jan-13 18:11pm View
   
Thank you jibesh i will try :)
F.moghaddampoor 15-Jan-13 18:07pm View
   
Well, I understand what you say dear, Sergey you may know the eastern culture but I'm in them. I know them more than everything, cause i'm always researching on how to survive these countries. I mean sometime people are rude but they have kindness and <3 in their heart, but there are people seem very kind and you should trespass their beliefs and well you will be executed. you may be lucky to live in west. I will give my soul come out of here, and live with someone like you guys there in freedom where freedom is not restricted.
Pals I'm very thankful to have you around. This was a very moral conversation i didn't have for a year. I accept your territory from now on and will be the best friend of you from now on.
F.moghaddampoor 15-Jan-13 17:49pm View
   
Dear Original I won't do this again. I'm completely punished. Thanks you, I just lost very important data. I don't know what you mean here by netiquette, I didn't shout at pals, just express my feelings, I mean i didn't know alot about real life, I'm watching 24/7 series, Breaking bad, Dexter and so on. i got used to it. i admire your honesty, and i will regret for my shameful bad bad bad bad attitude toward real world.I love you all pal<3
F.moghaddampoor 15-Jan-13 17:41pm View
   
I didn't know i may need to backup my files on a flash memory cause i swear to god i will backup my works in 3 other places too.
I had backups i lost them after installing sql server 2012.
F.moghaddampoor 15-Jan-13 17:38pm View
   
I know dear, you are my hero, but i just suggested that I'm just coming here rarely, i meant i used just my real name, i wasn't familiar with rules here, i respect them from now on pal.
F.moghaddampoor 15-Jan-13 17:33pm View
   
Deleted
I want to know how i can install sql local database express 2012 from vs 2010 setup creator!
F.moghaddampoor 15-Jan-13 17:32pm View
   
Deleted
Well sorry for rejection. pals can't be positive here!
F.moghaddampoor 15-Jan-13 17:29pm View
   
Dear I rarely come here, but i use my real name and you all using your second name, my English is not that well! Sorry to all of code project Members I'm very rude pals. God help me be polite.
F.moghaddampoor 15-Jan-13 17:24pm View
   
Dear Original i may need some lessons from you, but really are we living in 2013. I'm pretty shocked here. How old are you pals? I'm 23.
F.moghaddampoor 15-Jan-13 17:18pm View
   
Deleted
Common boy If you want score give me the address, will be there giving you positive!
F.moghaddampoor 15-Jan-13 17:14pm View
   
Deleted
Well right is not correct write is true GRE man :)
F.moghaddampoor 15-Jan-13 17:11pm View
   
Hello Dear Sergey
I didn't know the rules here!
Well i don't know you so much, but you may be a VIP.
How ever i should tell you sorry if i annoyed you, But my questions are really professionally asked and it seems awkward to just be punished for something like this, and well i accepted those answers cause they were right, i don't know why you are angry with me, pal, take it easy dear <3
F.moghaddampoor 23-Aug-12 6:46am View
   
Dear you didn't read the question care fully, i have a long text with some words bold and some words in regular shape,and i want to write them in a rectangle alligned so it sobvious i cant find the position of end of a word and start to write the other portion bold and then switch to regular.
F.moghaddampoor 10-Apr-12 10:50am View
   
i'm really thanksful majune.i will try this.
F.moghaddampoor 10-Apr-12 10:11am View
   
Hello Ed tools->customize can just add tool bars,i want to change interior design of welcome,or installation folder or confirmation installer,however because i don't want to make my sql mdf file to be readonly in program files i want to change this difault address.
F.moghaddampoor 9-Apr-12 13:21pm View
   
Hello pietvredeveld,can i ask you how can i put my database in AppData,when end user decide the app directory.
F.moghaddampoor 9-Apr-12 13:18pm View
   
majune how can we change attribute of database to write and read?plz tell me in good details.tnx before.
F.moghaddampoor 9-Apr-12 13:16pm View
   
Yes it is a permission issue,i can change the user permission of mdf file and ldf file to write on the files but,after installation it get back to its first mode,readonly for users.even i can change the permission of the files after instalation and my program will work,but end users don't understand this,so i need to have free permission for every one.how can i do this?
F.moghaddampoor 9-Apr-12 9:48am View
   
this is the error:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.Data.SqlClient.SqlException (0x80131904): Failed to update database "C:\PROGRAM FILES\DEFAULT COMPANY NAME\SETUPER2\F.MDF" because the database is read-only.
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning()
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at System.Data.Linq.SqlClient.SqlProvider.Execute(Expression query, QueryInfo queryInfo, IObjectReaderFactory factory, Object[] parentArgs, Object[] userArgs, ICompiledSubQuery[] subQueries, Object lastResult)
at System.Data.Linq.SqlClient.SqlProvider.ExecuteAll(Expression query, QueryInfo[] queryInfos, IObjectReaderFactory factory, Object[] userArguments, ICompiledSubQuery[] subQueries)
at System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query)
at System.Data.Linq.DataContext.ExecuteMethodCall(Object instance, MethodInfo methodInfo, Object[] parameters)
at Serial_port_exporter.LINQDataContext.Storeintable(Nullable`1 row, String year, String month, String day, String hour, String minute, String second, String repetition, String x, String y, String z, String operator) in E:\Setups\majid-serial port exporter-4-7-2012-B\Serial port exporter 2\Serial port exporter\LINQ.designer.cs:line 86
at Serial_port_exporter.Form1.Btnadd_Click(Object sender, EventArgs e) in E:\Setups\majid-serial port exporter-4-7-2012-B\Serial port exporter 2\Serial port exporter\Form1.cs:line 180
at Serial_port_exporter.Form1.button4_Click(Object sender, EventArgs e) in E:\Setups\majid-serial port exporter-4-7-2012-B\Serial port exporter 2\Serial port exporter\Form1.cs:line 823
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: 4.0.0.0
Win32 Version: 4.0.30319.261 (RTMGDR.030319-2600)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
Serial port exporter
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/Default%20Company%20Name/Setuper2/Serial%20port%20exporter.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win3
F.moghaddampoor 9-Apr-12 9:15am View
   
please help guys ,i'm miserable now!
F.moghaddampoor 9-Apr-12 9:13am View
   
i copied my debug files to another computer manually,and my project worked correctly.but when i'm using setup to create shortcuts and having a destination folder for my project,it happens a readonly error.
F.moghaddampoor 9-Apr-12 9:12am View
   
I just hesitate about your answer and went and after release mode,i debuged my code and then i copied release files to another folder,when i wanted to create setup i used the second folder,but still i have that error,readonly error.
F.moghaddampoor 9-Apr-12 8:45am View
   
how can i take my files out of source control then?
F.moghaddampoor 9-Apr-12 8:44am View
   
and thanks for ur answer
F.moghaddampoor 9-Apr-12 8:44am View
   
Hello Pablo,
I checked the file attributes ,but its not readonly.