15,896,915 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 M_Mogharrabi (Top 88 by date)
M_Mogharrabi
5-Apr-14 4:15am
View
Hi Gangawane, I have the same problem, how did you solve it?
M_Mogharrabi
12-Mar-14 4:20am
View
Hi Reshma Babu,I tried this by writing [ComVisible(true)] before my class but it does'nt change.
M_Mogharrabi
28-Jan-14 4:57am
View
Thanks V.Lorz,that was my answer.
M_Mogharrabi
9-Oct-13 3:19am
View
Hi V.Lorz, I think your shared library solution can be my answer.I will try it and write back the result. Thanks a lot.
M_Mogharrabi
5-Oct-13 8:51am
View
Excuse me johannes. I have found the problem,it was my mistake.I had set the ReadOnly attribute of TestProperty to true! I have removed it and now every thing works fine.
Thanks a lot and excuse me again.
M_Mogharrabi
5-Oct-13 2:12am
View
Eyval..., Thanks johannesnestler, that was exactly what i wanted. But there is a problem with your code.the selected value in the formDialog returns to the EditValue method but it does not set as TestProperty value! Is that my mistake?
M_Mogharrabi
5-Oct-13 1:33am
View
Thanks BillWoodruff for your reply. "What exactly do you mean by "result" ? Do you mean something other than the currently selected value in your collection ?"
No i mean exactly the selected value in my collection by "result".
M_Mogharrabi
17-Sep-13 1:53am
View
Hi Rajesh Gelli and Thanks.
See i have about 50 tables in my application that can update in run time and i want to notify immediatly when each of them is updated.
So do you think placing these 50 tables in session is correct?
Again do you think that comparing a table with it's previous session in every 1seconds(Timer interval) does not decrease the speed of application?
M_Mogharrabi
17-Sep-13 1:32am
View
Thanks Rakesh Meel, but i think you did not read my question completely,I said in my question that "I can not use sqldependency because of it's long list of limitations"! I have used OUTER JOIN command in a lot of my queries while it is one of the Constraints of sqldependency.
M_Mogharrabi
17-Sep-13 1:31am
View
Thanks Balamurugan, but i think you did not read my question completely,I said in my question that "I can not use sqldependency because of it's long list of limitations"! I have used OUTER JOIN command in a lot of my queries while it is one of the Constraints of sqldependency.
M_Mogharrabi
16-Sep-13 6:29am
View
Because i want to refresh my forms immediatly after the table is updated however Timer maybe has a delay.also my application should work on a local network with maybe many clients so Timer can busy the network!
M_Mogharrabi
16-Sep-13 5:18am
View
The main problem is with it's limitation on OUTER JOIN command.I have to use this command in a lot of my queries.
M_Mogharrabi
11-Aug-13 3:01am
View
Hi Zoltan Zorgo and thanks for your reply.My situation is not like your invoice example, because the data should change in Table1 after Table2 was changed.
Also i can not use your suggestion about decreasing number of fields,because these fields have just 1:1 relation and thay are all have direct relation to each other.
The problem is that i could not decide between these two ways(Normalizing and De-Normalizing) in this specified situation with considering the advantages and disadvantages of these two ways?
M_Mogharrabi
9-Jul-13 3:16am
View
Thanks Denis Shemenko,but i could not open this link because of some reasons! Could you please paste it here as your answer or help me in another way?
M_Mogharrabi
7-Jul-13 3:43am
View
Thanks Sadique KT,Now it works for me too.
M_Mogharrabi
6-Jul-13 6:15am
View
Thanks but my control is panelcontrol not panelcontrolcontainer.
M_Mogharrabi
6-Jul-13 6:14am
View
I tried your solution but nothing changed.
M_Mogharrabi
2-Jun-13 3:15am
View
Ey Val.... Chill60,It was my solution!How can i say my thanks to you?!
M_Mogharrabi
13-Mar-13 1:12am
View
Hi Abhinav S and thanks.I tested the following code but it had no effect :
myExcelViewer.Focus();
Did you mean something like this?
M_Mogharrabi
13-Feb-13 0:20am
View
Hi M_Tamas, yes i want to remove them at all.
M_Mogharrabi
6-Feb-13 4:46am
View
Hi Kaushikhalvadiya,I could not understand your reply, what should i set to null?
M_Mogharrabi
4-Feb-13 4:01am
View
I have asked my question in infragistics forum (http://www.infragistics.com/community/forums/p/77459/390928.aspx#390928) but no one answered me!
M_Mogharrabi
14-Jan-13 4:50am
View
Thanks a lot for your time...
M_Mogharrabi
14-Jan-13 4:21am
View
Thanks again,And the last question(but not the least),
I have found another sample of using cassia in "http://www.findbestopensource.com/product/cassia" but it is a little different:
ITerminalServicesManager manager = new TerminalServicesManager();
using (ITerminalServer server = manager.GetLocalServer())
{
server.Open();
foreach (ITerminalServicesSession session in server.GetSessions())
{
Console.WriteLine("Hi there, " + session.UserAccount + " on session " + session.SessionId);
Console.WriteLine("It looks like you logged on at " + session.LoginTime + " and are now " + session.ConnectionState);
}
}
Do you think which one is better?
M_Mogharrabi
14-Jan-13 4:01am
View
Hi Suvabrata Roy, and thanks for your reply.I tested that code but it does not work with "winNT:" as the parameter of DirectoryEntry and i tried String.Format("LDAP://MY_SERVER_IP x.y.com","DC=x,DC=y, DC=com") instead.
Is it correct?
M_Mogharrabi
6-Nov-12 0:27am
View
Thnx Aarti Meswania for your reply, but it does not my solution, because your code does not set the sequence of columns in my preferred format.
M_Mogharrabi
6-Nov-12 0:26am
View
Thnx, but i can not understand what you mean?
M_Mogharrabi
6-Nov-12 0:10am
View
Deleted
Thnx, but i can not understand what you mean?
M_Mogharrabi
6-Nov-12 0:09am
View
Deleted
Thnx Aarti Meswania for your reply, but it does not my solution, because your code does not set the sequence of columns in my preferred format.
M_Mogharrabi
2-Oct-12 0:48am
View
Hi Abhinav S and thanx for your reply.
M_Mogharrabi
26-Sep-12 2:52am
View
Thanks Bernhard Hiller,but i want to add dependency via installshield.It has a Dependency Scanner tool but it could find just COMSysApp but not SEN Service.
even when i add COMSysApp as a dependency and then install my service i can not see this dependency in list of dependencies of my installed service!?
M_Mogharrabi
18-Sep-12 1:02am
View
Why not???
I could get this information by OnSessionChange() in windows service, but the problem is that sometimes it does not work correctly.So i want to find a better way...
M_Mogharrabi
27-Aug-12 23:16pm
View
thanx a lot,it was my solution!!!
M_Mogharrabi
17-Jul-12 0:22am
View
Hi, Yvan Rodrigues,thanks for your reply. yes i mean the first one.I want to add a virtual printer for my application.please describe how should i do that?
M_Mogharrabi
10-Jul-12 3:25am
View
yes Nothing found to solve my problem, I have tried using Thread and Timer but i could not found an example that shows me how can i call onstop() method when the system shutdown or restart...
M_Mogharrabi
9-Jul-12 4:32am
View
Hi KornaKar, Thanks for your immediate reply.I have make a Thread and do my work in it and used System.Timers.Timer in it instead of while loop.but i have my problem yet.I mean the OnStop() method does not start automatically...
M_Mogharrabi
28-May-12 2:33am
View
I have followed this two links and add my service to setup project,but my problem is that i want to add a .net dll file to this service because the service needs this dll to run successfully...
M_Mogharrabi
7-May-12 3:46am
View
it does not give me any error message but also the dll have a warning icon when i add it to References.
M_Mogharrabi
5-May-12 5:13am
View
Hi Silent Guardian and thanks for your reply but i do not think so.because the steps of this operation is something like this :
1. the user browse the system and select an image.
2. application copies that image to its folder with File.Copy() and add its name to a list.
3. the user select the name of image from list and then press delete button.
4. application should now delete an image with this name from its directory(the error will occur here)
M_Mogharrabi
5-May-12 1:19am
View
I am sure that my images are not open in another processes.
M_Mogharrabi
1-May-12 1:02am
View
Thanks but i do not have any user Id and Password..??
M_Mogharrabi
10-Apr-12 23:48pm
View
my problem is that when i use the following code to get the data from a sheet it automatically set the first row of the sheet as column name.The code is :
OleDbDataAdapter da = new OleDbDataAdapter("Select * from [Sheet1$]",OleCon); da.Fill(dt);
M_Mogharrabi
3-Mar-12 0:54am
View
thanks, i will test it in my project and say the result.
M_Mogharrabi
27-Feb-12 3:55am
View
Thanks a lot,I have found the solution... It was too easier than i thought!!!?
M_Mogharrabi
27-Feb-12 3:20am
View
Thanks ChandraKantt for your immediate reply,
but how can i set CustomActionData property programmatically and also use it in beforeuninstall event?
M_Mogharrabi
27-Feb-12 0:55am
View
So how should i use it with Smart devices??Because i have found this code to use in a Windows Application that works with Smart devices.
M_Mogharrabi
25-Feb-12 4:38am
View
Hi Mike,
Excuse me for my imperfect question!!!I have correct it.
Please help me...
M_Mogharrabi
21-Feb-12 3:37am
View
yes,It is a control of DevExpress control group.I thought it is too famous!!
in addition i have added it to my question tags.
M_Mogharrabi
18-Feb-12 23:59pm
View
yes,I have installed drivers and i could see com port in device manager and also i could found and run a c# code to open the port.but i want to know if there is another code to read data from my i2c device.my i2c device is RM_144 and '0x53' is the address of it.but i do not know how should i use this address!!!.....
M_Mogharrabi
18-Feb-12 5:18am
View
This is the link(http://www.robot-electronics.co.uk/htm/usb_i2c_tech.htm) of my I2C-USB convertor documentation.but i could not found what should i do yet???
please describe more....
M_Mogharrabi
18-Feb-12 1:01am
View
sorry for my delay.I have edited my question...
M_Mogharrabi
18-Feb-12 1:01am
View
sorry for my delay.I have edited my question...
M_Mogharrabi
14-Feb-12 4:52am
View
please describe your question more...
M_Mogharrabi
14-Feb-12 4:50am
View
You can use CellEndEdit event of datagridview.it occurs after a cell edited by the user.also you can access to index of edited column with 'e' parameter of this event.
M_Mogharrabi
14-Feb-12 3:31am
View
I want to write code for 'print' button. I have used ultraGrid1.DataSource and cast it directly to DataTable type but the problem is that the sequence and number of columns in DataSource does not match with current WinGrid that is shown on screen!!!
M_Mogharrabi
13-Feb-12 23:41pm
View
I am waiting for your helps,
Please help me....
M_Mogharrabi
6-Feb-12 23:39pm
View
Deleted
Eyval, I have found my response in this link.
M_Mogharrabi
28-Jan-12 23:33pm
View
I am waiting for your response please...
M_Mogharrabi
28-Jan-12 4:30am
View
Hi,
I've solved that error by the solution of this link "http://stackoverflow.com/questions/310669/why-does-c-sharp-xmldocument-loadxmlstring-fail-when-an-xml-header-is-included".
but now i have another problem!
I have modified my rdlc file in my application but i could not save changes.I've used xmlDocument.Save() method but anything happens...
what is my mistake???
M_Mogharrabi
27-Jan-12 23:58pm
View
Hi bluesathish,
Thanks. I've tried the solution of this link too already.but it does not work and i've received that error again.I opened my rdlc report with Notepad but i did not see any Table tag in /Report/Body/ReportItems path...
please guide me.I am too new in using xml files...
M_Mogharrabi
3-Jan-12 23:41pm
View
I'm waiting for your helps...
please help me...
M_Mogharrabi
17-Dec-11 4:22am
View
i am waiting for your response yet...
please help me..
M_Mogharrabi
17-Dec-11 2:18am
View
hi,
i have downloaded the documentation of objectarx but i could not find any thing about print dwg file in it.
I am too beginner in objectARX.
please help me...
M_Mogharrabi
13-Dec-11 1:39am
View
I have received previous message again...?
M_Mogharrabi
13-Dec-11 0:30am
View
Thanks, i have tried net.exe map p: \\servername\sharedfolder
but i have received this message :
"the syntax of this command is: NET [ACCOUNT | COMPUTER | CONFIG |...]".
i have tried net use instead of net.exe but i received a message like the above.
i have tried "net use \\servername\sharedfolder" finally however received this message : "The command completed successfully".but what does it mean?how can i get the map of my path?
M_Mogharrabi
12-Dec-11 3:01am
View
Thanks, but how can i map my path.the path is \\ServerName\SharedFolderName\ProtectedFolder\file.dwg
M_Mogharrabi
14-Nov-11 3:21am
View
thanks OriginalGriff,i have changed my way,now i want to run my exe file just after the setup has finished.how can i do that?
M_Mogharrabi
4-Oct-11 5:42am
View
i have removed form1_fill_panel.now i can see my forms but they are under ultraToolBarsManager control so i could not see top of my forms.
M_Mogharrabi
12-Sep-11 1:45am
View
thanks Mika,i could not find why that file had that problem,i deleted that file and created another one on the same path but the problem did not solved.
I tried to create my backup file in a subfolder of the shared folder and when i tried to move this new file, i could do it!!!
however thanks for your help.
M_Mogharrabi
11-Sep-11 0:38am
View
thanks Mike,i tried to change its security by network administrator from server computer but he does not have permission too.i think this problem is by SQL server,i mean SQL Server did not release the backup file after create it.
M_Mogharrabi
10-Sep-11 4:57am
View
I think that the backup file is in use by SQL Server after performing backup query.How can i release the file from SQL Server?
M_Mogharrabi
10-Sep-11 3:52am
View
I'm waiting to your replies yet!!!
please help me.
M_Mogharrabi
10-Sep-11 3:51am
View
thanks Mike,yesterday i have create and install my service and then restart my windows so the service started successfully. but the problem occurred today when i boot my windows and opened the services list of windows from Control Panel\Administrative Tools\Services and selected my service i saw that it did not start automatically. then i restarted my windows and looked at services list again i saw it started successfully!!!
M_Mogharrabi
10-Sep-11 3:05am
View
I have tried these two choices already but i received that error again.i have tried with my system administrator and it said access is denied.i wanted to change security settings but this file does not have Security tab in its properties!!!?
M_Mogharrabi
10-Sep-11 1:05am
View
Thanks all, but none of these solutions solved my problem.I found the code,i used registry:
using Microsoft.Win32;
RegistryKey key = Registry.CurrentUser.OpenSubKey(@"Software\Microsoft\Installer\Assemblies");
string regfilepath="";
if (key!=null) // Make sure there are Assemblies
{
foreach(string Keyname in key.GetSubKeyNames())
{
if (Keyname.IndexOf("YOUR_EXE_FILE.EXE")>0)
{
regfilepath=Keyname.Replace('|','\\');
break;
}
}
}
M_Mogharrabi
10-Sep-11 1:01am
View
thanks a lot.I mean any thing that works like windows service and it does not have the problems of windows service?
M_Mogharrabi
7-Sep-11 0:28am
View
thanks SA,but i did not understand how can i use UserInteractive property to solve my problem.is there any way instead of windows service?
M_Mogharrabi
5-Sep-11 3:16am
View
i want to get backup automatically with my windows service and i used timer to check my backup schedule table every N minutes.
M_Mogharrabi
5-Sep-11 2:49am
View
yes, i have 3 applications and one of them contains a windows service.
i tried to install my application that contains service with visual stdio command prompt but i received that error again.
where should i define my windows service?it should be in an independent application or it can be at the middle of other applications?
M_Mogharrabi
5-Sep-11 2:36am
View
thanks for your reply, but this link describe how to install windows service manually but i want to install my service automatically?
M_Mogharrabi
5-Sep-11 2:16am
View
thanks for reply, but these codes return the path of executable file of application but not the path of where the application is installed.am i right?
M_Mogharrabi
5-Sep-11 1:15am
View
why should i install .Net framework 2.0 and 3.5? i want to use .Net framework 4.0
M_Mogharrabi
4-Sep-11 4:48am
View
thanks a lot,that was worked but i have another warning yet:
The value of the 'public key' attribute in 'Microsoft .NET Framework 4(x86 and x64)' does not match that of file 'C:\Program files\Microsoft SDKs\Windows\V7.0A\Bootstrapper\Packages\DotNetFx40\DotNetFx40_Full_x86_x64.exe'.
what does it try to say?
M_Mogharrabi
4-Sep-11 0:44am
View
thanks Tejas_Vaishnav for your reply,but i have another question. should i define my windows service in an independent project or it can be in my main project with other forms?
M_Mogharrabi
4-Sep-11 0:35am
View
thanks RaisKazi,the link was too useful.
M_Mogharrabi
3-Sep-11 4:51am
View
should i start it myself?i thought it starts automatically when windows boots!
How should i start it?
M_Mogharrabi
3-Sep-11 4:29am
View
thanks, you were right.i have granted permission of access to my share folder to server computer and my problem resolved.
M_Mogharrabi
3-Sep-11 4:22am
View
i could not find AxSHDocVw.dll?
Show More