ASPForums.Net RSS Feedhttp://www.aspforums.net/Handlers/RSS.ashxLatest additions to the content that appears on ASPForums.Net(c) 2017 www.aspforums.com. All rights reserved.you can not start the application it has already installed in different location<p>I have developed a VB.net application. installing in windows server 2008 to share the application. I use the oneclick install the application. Other users can not use the application.</p> <p>when chick the shortcut, the error say, 'you can not start the application, it has already installed in different location'</p> <p>&nbsp;</p> <p>&nbsp;</p>http://www.aspforums.net/Threads/914984/you-can-not-start-the-application-it-has-already-installed-in-different-location/http://www.aspforums.net/Threads/914984/you-can-not-start-the-application-it-has-already-installed-in-different-location/Mon, 21 May 2012 09:33:14 GMTWrite to Event Log using Windows Service in C# and VB.Net<p>how to write eventlog in windows servies and where can i get log file</p> <p>and how to use threading</p>http://www.aspforums.net/Threads/440844/Write-to-Event-Log-using-Windows-Service-in-C-and-VBNet/http://www.aspforums.net/Threads/440844/Write-to-Event-Log-using-Windows-Service-in-C-and-VBNet/Tue, 04 Aug 2015 02:31:08 GMTWinForms Reports using DevExpress Reporting<p>how to make report in windows form using dev express&nbsp;</p>http://www.aspforums.net/Threads/195872/WinForms-Reports-using-DevExpress-Reporting/http://www.aspforums.net/Threads/195872/WinForms-Reports-using-DevExpress-Reporting/Sun, 14 Aug 2016 06:00:28 GMTWindows Service Scheduler.cs Code Problem<p>Hi ,</p> <p>&nbsp; &nbsp;This is my Scheduler.cs Code&nbsp;</p> <p>&nbsp;</p> <pre class="brush: csharp"> private Timer timer1 = null; public Scheduler() { InitializeComponent(); } protected override void OnStart(string[] args) { timer1 = new Timer(); this.timer1.Interval = 30000; this.timer1.Elapsed += new System.Timers.ElapsedEventHandler(this.timer1_Tick); this.timer1.Enabled = true; Library.WriteErrorLog(&#34;Service Has Been Started&#34;); } private void timer1_Tick(object sender, ElapsedEventArgs e) { Library.WriteErrorLog(&#34;Timer ticked and some job doing&#34;); sendEmailNotification(); Library.WriteErrorLog(&#34;Timer ticked and some job Completed&#34;); } private bool sendEmailNotification() { bool isSend = false; try { MailMessage message = new MailMessage(); message.To.Add(&#34;xxx@gmail.com&#34;); // if (!string.IsNullOrEmpty(dEmail.CC)) message.CC.Add(&#34;xxxx@gmail.com&#34;); //if (!string.IsNullOrEmpty(dEmail.BCC)) // message.Bcc.Add(dEmail.BCC); message.Subject = &#34;Tezting&#34;; message.Body = &#34;Testing&#34;; message.IsBodyHtml = true; SmtpClient smtp = new SmtpClient(); smtp.Send(message); isSend = true; } catch (Exception ex) { throw (ex); } return isSend; } protected override void OnStop() { timer1.Enabled = false; Library.WriteErrorLog(&#34;Teh window service has been stopped&#34;); }</pre> <p>Problem : In my log file its always printing like beloow:</p> <p>&nbsp;</p> <p>&nbsp;</p> <pre class="brush: csharp">4/6/2016 12:41:23 PMService Has Been Started 4/6/2016 12:41:53 PMTimer ticked and some job doing 4/6/2016 12:42:23 PMTimer ticked and some job doing 4/6/2016 12:42:53 PMTimer ticked and some job doing 4/6/2016 12:43:23 PMTimer ticked and some job doing 4/6/2016 12:43:53 PMTimer ticked and some job doing 4/6/2016 12:44:23 PMTimer ticked and some job doing 4/6/2016 12:44:53 PMTimer ticked and some job doing 4/6/2016 12:45:23 PMTimer ticked and some job doing 4/6/2016 12:45:53 PMTimer ticked and some job doing</pre> <p>its always printing job is doing...but not completed message&nbsp;</p>http://www.aspforums.net/Threads/207510/Windows-Service-Schedulercs-Code-Problem/http://www.aspforums.net/Threads/207510/Windows-Service-Schedulercs-Code-Problem/Wed, 06 Apr 2016 01:52:43 GMTWindows Forms: Procedure or function has too many arguments specified.<p>im working with this code;</p> <p>&nbsp;</p> <p><strong>&nbsp;i have stored procedure :</strong></p> <p>&nbsp;</p> <pre class="brush: vb">ALTER PROCEDURE [dbo].[Insert_target] @year_covered int, @region int, @province int, @project int, @municipality varchar(50), @subproject varchar(50), @allocation int, @target_new int, @target_restore int, @target_rehab int, @target_fb int, @target_job int, @idd int output AS BEGIN SET NOCOUNT ON; Insert into tbltarget (year_covered, region, province, municipality, project, subproject, allocation, target_new, target_restore, target_rehab, target_fb, target_job)&nbsp;</pre> <pre class="brush: vb"><span style=&#34;font-size: 9pt;&#34;>values (@year_covered,@region,@province,@municipality,</span><span style=&#34;font-size: 9pt;&#34;> @project,@subproject,@allocation,@target_new,@target_restore,@target_rehab,@target_fb,@target_job)</span></pre> <pre class="brush: vb"> set @idd = scope_identity() return @idd END</pre> <pre class="brush: vb">&nbsp;</pre> <pre class="brush: vb">&nbsp;</pre> <p><strong>My Code :&nbsp;</strong></p> <p>&nbsp;</p> <p>&nbsp;</p> <pre class="brush: vb">For Each lv In ListView1.Items dbCommand.CommandType = CommandType.StoredProcedure dbCommand.CommandText = &#34;Insert_target&#34; dbCommand.Parameters.AddWithValue(&#34;@year_covered&#34;,CInt(ListView1.Items(i).Text.ToString)) dbCommand.Parameters.AddWithValue(&#34;@region&#34;, CInt(REGION)) dbCommand.Parameters.AddWithValue(&#34;@province&#34;, CInt(PROVINCE)) dbCommand.Parameters.AddWithValue(&#34;@municipality&#34;, ListView1.Items(i).SubItems(6).ToString) dbCommand.Parameters.AddWithValue(&#34;@project&#34;, CInt(PROJECT)) dbCommand.Parameters.AddWithValue(&#34;@subproject&#34;, ListView1.Items(i).SubItems(7).ToString) dbCommand.Parameters.AddWithValue(&#34;@allocation&#34;, CInt(ListView1.Items(i).SubItems(8).Text.ToString)) dbCommand.Parameters.AddWithValue(&#34;@target_new&#34;, CInt(ListView1.Items(i).SubItems(9).Text.ToString)) dbCommand.Parameters.AddWithValue(&#34;@target_restore&#34;, CInt(ListView1.Items(i).SubItems(10).Text.ToString)) dbCommand.Parameters.AddWithValue(&#34;@target_rehab&#34;, CInt(ListView1.Items(i).SubItems(11).Text.ToString)) dbCommand.Parameters.AddWithValue(&#34;@target_fb&#34;, CInt(ListView1.Items(i).SubItems(12).Text.ToString)) dbCommand.Parameters.AddWithValue(&#34;@target_job&#34;, CInt(ListView1.Items(i).SubItems(13).Text.ToString)) dbCommand.Parameters.Add(&#34;@idd&#34;, SqlDbType.Int).Direction = ParameterDirection.Output dbCommand.Connection = dbConnection Try dbCommand.ExecuteNonQuery() Dim ids As String = dbCommand.Parameters(&#34;@idd&#34;).Value.ToString Catch ex As Exception MessageBox.Show(ex, MessageBoxButtons.OK, MessageBoxIcon.Information) End Try Next</pre> <p>Im hoping someone could help me... &nbsp;</p>http://www.aspforums.net/Threads/397574/Windows-Forms-Procedure-or-function-has-too-many-arguments-specified/http://www.aspforums.net/Threads/397574/Windows-Forms-Procedure-or-function-has-too-many-arguments-specified/Tue, 17 Sep 2013 03:46:17 GMTWindows Forms DataGridView has 3 columns but need to insert data for 5 columns<p>Hi</p> <p>I am making a windows application in which user enters details through gridview there are 3 grid view 2 of entering data correctly but 3 gridview size is small so i cant bind all colums there i have bind only 3 columns there are total 5 columns in total&nbsp; is there any way to enter ther remaining columns data .</p>http://www.aspforums.net/Threads/213660/Windows-Forms-DataGridView-has-3-columns-but-need-to-insert-data-for-5-columns/http://www.aspforums.net/Threads/213660/Windows-Forms-DataGridView-has-3-columns-but-need-to-insert-data-for-5-columns/Tue, 27 Nov 2012 03:24:50 GMTWindows form controlscontainer in asp.Net c#<p>Im new in Windows form application.</p> <p>I want to know that how i can <strong>control the position, size, orientation of the controls/containers</strong> used in windows form, asp.net c#.</p> <p>i.e., 1) On <strong>increasing the form size</strong>, <strong>container/control size also increase</strong> (as per defined)</p> <p>2) On <strong>decreasing the form size</strong>, container/control size <strong>retain in its same orientation</strong> (as per defined)</p> <p>please help me in understanding.</p> <p>please reply.</p>http://www.aspforums.net/Threads/784417/Windows-form-controlscontainer-in-aspNet-c/http://www.aspforums.net/Threads/784417/Windows-form-controlscontainer-in-aspNet-c/Fri, 27 Dec 2013 02:27:05 GMTWindows error when using visual studio<p>Respected sir&nbsp;</p> <p>When ever i run visual studio (any version), windows application works f9 but when i work on web application and run them couple of times (to see the webpage and test coding) my system crashes and i get following error.</p> <p>Blue screen appears with this error</p> <p>&nbsp;irql_not_less_or_equal(tcpip.sys).</p> <p>and system restarts.</p> <p>I am using windows 8.and AVG as antivirus.</p> <p>Sir please help i am not able to work.</p>http://www.aspforums.net/Threads/181037/Windows-error-when-using-visual-studio/http://www.aspforums.net/Threads/181037/Windows-error-when-using-visual-studio/Sat, 21 Sep 2013 23:32:51 GMTWindows Console program to print 1- 10 digits and some specific text for 4th digit using C#<p>hi all,</p> <p>&nbsp;</p> <p>i have a few douts am trying ascending order program using c#.</p> <p>actually i done this program by the&nbsp; given below output of ascending order</p> <p>output:</p> <p>1 2 3 4 5 6 7 8 9 10</p> <p>my question is :</p> <p>i need to display the message the one who is reach 4 in the order of output which i mentioned above.</p> <p>my message should be like this (" you have been reached 4th position of ascending order")</p> <p>after getting the 4 th postions the code again will start execute the reamining order which means 5th,6th,7th,8th,9th and 10th</p> <p>&nbsp;</p> <p>my expected output is:</p> <p>1</p> <p>2</p> <p>3</p> <p>(" you have been reached 4th position of ascending order")</p> <p>5</p> <p>6</p> <p>7</p> <p>8</p> <p>9</p> <p>10</p> <p>&nbsp;</p> <p>please find out my code below and were i alter my code below. please let me know,advice are very appreciable</p> <p>my code is:</p> <p>&nbsp;</p> <pre class="brush: csharp">using System; using System.Collections.Generic; using System.Text; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { int i = 0; while(i&lt;10) { i = i + 1; Console.WriteLine(i); Console.ReadLine(); } } } } </pre> <p>&nbsp;</p> <p>thanks in advance..</p>http://www.aspforums.net/Threads/507462/Windows-Console-program-to-print-1--10-digits-and-some-specific-text-for-4th-digit-using-C/http://www.aspforums.net/Threads/507462/Windows-Console-program-to-print-1--10-digits-and-some-specific-text-for-4th-digit-using-C/Thu, 04 Jul 2013 05:47:34 GMTWindows Console Application - Access private method in to the main function<p>hi all,</p> <p>Am new in c# console application , i have a few clarification that is ,</p> <p>is there any possibility to access private method in to the main function</p> <p>my code below:</p> <p>&nbsp;</p> <pre class="brush: csharp">using System; using System.Collections.Generic; using System.Text; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { } public class c : Program { private void sample() { Console.WriteLine(&#34;hi&#34;); Console.ReadKey(); } } } } </pre> <p>thanks in advance.</p>http://www.aspforums.net/Threads/139543/Windows-Console-Application---Access-private-method-in-to-the-main-function/http://www.aspforums.net/Threads/139543/Windows-Console-Application---Access-private-method-in-to-the-main-function/Fri, 20 Sep 2013 04:02:08 GMTWindows Authentication and Roles<p>Hi Mudassar Khan,</p> <p>I am developing a website which requires windows authentication.I have to configure the webiste in such a way that there is only one user with admin privileges and rest of the user should have only read access.This should be done without the user logging in manually using windows authentication method.The requirement is there should be two roles Admin and User.</p> <p>Also Please provide an Example on Membership and role in aspsnippets.com website.</p> <p>Please provide suggestions to implement this. Thanks in Advance.</p> <p>&nbsp;</p> <p>&nbsp;</p>http://www.aspforums.net/Threads/899231/Windows-Authentication-and-Roles/http://www.aspforums.net/Threads/899231/Windows-Authentication-and-Roles/Sat, 14 Dec 2013 11:08:52 GMTWindows Application WindowsIdentity.GetCurrent().Name- Get only UserName and not Domain<p>hi</p> <p>I am writing this code</p> <pre class="brush: csharp">LBEmpName.Text = WindowsIdentity.GetCurrent().Name;</pre> <p></p> <p>&nbsp;</p> <p>But i want to display only user name wt should i do.<br /><br /></p>http://www.aspforums.net/Threads/144054/Windows-Application-WindowsIdentityGetCurrentName--Get-only-UserName-and-not-Domain/http://www.aspforums.net/Threads/144054/Windows-Application-WindowsIdentityGetCurrentName--Get-only-UserName-and-not-Domain/Tue, 09 Oct 2012 08:33:01 GMTWhich control is similar to Frames control in Windows in ASP.Net<p>in visual basic i use frames...in asp.net what is replacement of frames or how we can use working of frames in asp.net.</p> <p>in frames we give the caption and group together control.</p>http://www.aspforums.net/Threads/653942/Which-control-is-similar-to-Frames-control-in-Windows-in-ASPNet/http://www.aspforums.net/Threads/653942/Which-control-is-similar-to-Frames-control-in-Windows-in-ASPNet/Thu, 05 Dec 2013 03:13:19 GMTWhere is the location of aspnetregiis exe tool<p>What is the basic functionalty of aspnet_regiis command &amp; where it is in the system?</p>http://www.aspforums.net/Threads/149069/Where-is-the-location-of-aspnetregiis-exe-tool/http://www.aspforums.net/Threads/149069/Where-is-the-location-of-aspnetregiis-exe-tool/Thu, 19 Sep 2013 02:39:33 GMTWant to Learn C# language<p>hi i m new to asp can u suggest&nbsp; me to start learning C# from basic</p> <p>can you help to learn</p>http://www.aspforums.net/Threads/187985/Want-to-Learn-C-language/http://www.aspforums.net/Threads/187985/Want-to-Learn-C-language/Mon, 11 Jun 2012 08:46:11 GMTvb.net reporting doesnt add up the decimal point<p>I am using the vb.net reporting provided by mircosoft.</p> <p>The Database Access has stored a decimal value. 31.23.</p> <p>in the reporting, it doesn't show 31.00 instead it display 31.23</p> <p>I use the FormatNumber(Fields!Cubic.Value,2). it display 31.00 not 31.23.</p> <p>What is the problem with it ? Is it Mircosoft bug.</p> <p>&nbsp;</p> <p>&nbsp;</p>http://www.aspforums.net/Threads/164282/vbnet-reporting-doesnt-add-up-the-decimal-point/http://www.aspforums.net/Threads/164282/vbnet-reporting-doesnt-add-up-the-decimal-point/Fri, 22 Jun 2012 00:02:08 GMTValidate PinCode ZipCode Postal Code in Windows Application<p>Hi All,</p> <p>&nbsp;</p> <p>How to validate pincode in windows application with c# coding? Pincode will not accept below 6 digits and above 6 digits.</p> <p>&nbsp;</p> <p>Thanks and Regards,</p> <p>Murali.K</p>http://www.aspforums.net/Threads/191374/Validate-PinCode-ZipCode-Postal-Code-in-Windows-Application/http://www.aspforums.net/Threads/191374/Validate-PinCode-ZipCode-Postal-Code-in-Windows-Application/Fri, 28 Dec 2012 04:46:21 GMTuser roles management using c# windows application<p>hi all,</p> <div class="post-text"> <p>i wana work on a windows forms application using c# that several users can work with different roles, for example 3 roles ,that "A role" only to access some parts of the program and cannot see and access it and "B role" can acess to entire of application, but some parts are just right to access and view, "C role" full access to all parts of the Application i have these roles and users in a database (sql server).</p> <p>whats a good way for make this application?</p> <p>&nbsp;</p> <p>&nbsp;</p> <p>&nbsp;</p> <p>thanks in advance...</p> </div>http://www.aspforums.net/Threads/548771/user-roles-management-using-c-windows-application/http://www.aspforums.net/Threads/548771/user-roles-management-using-c-windows-application/Tue, 05 Mar 2013 04:12:01 GMTUse ASPSnippets SMS API (Site2SMS) in Console Application using C# .Net<p>Will the Site2SMS code work with a console application using COM1? If it can be use send me the code snipped, please.</p> <p>Thanks</p>http://www.aspforums.net/Threads/544350/Use-ASPSnippets-SMS-API-Site2SMS-in-Console-Application-using-C-Net/http://www.aspforums.net/Threads/544350/Use-ASPSnippets-SMS-API-Site2SMS-in-Console-Application-using-C-Net/Wed, 16 Sep 2015 00:18:02 GMTUse and add Windows Forms controls in ASP.Net Web application<p>I have a web application, through the library System.Windows.Form can create a winform window, which can add controls winform.<br />To compile in visual studio it works fine but when IIS publish this window is not displayed.<br />Is there any way to achieve the IIS deploy the winform? or some way to publish this application?<br />Any ideas?</p> <p>Sorry for my bad English<br />Thanks</p>http://www.aspforums.net/Threads/179819/Use-and-add-Windows-Forms-controls-in-ASPNet-Web-application/http://www.aspforums.net/Threads/179819/Use-and-add-Windows-Forms-controls-in-ASPNet-Web-application/Mon, 06 Jul 2015 13:01:03 GMT