15,899,474 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 sharat naik (Top 32 by date)
sharat naik
20-Mar-19 7:24am
View
how any logic please suggest me.
sharat naik
21-Mar-18 22:44pm
View
Its working nice.................
Timer Active_Timer = new Timer();
Form frmShow = new Form();
public MainForm()
{
InitializeComponent();
Active_Timer.Interval = 100;
Active_Timer.Tick += new EventHandler(Active_Timer_Tick);
Active_Timer.Start();
}
private async void Active_Timer_Tick(object sender, EventArgs e)
{
bool IsOpen = false;
this.Hide();
SqlConnection con = new SqlConnection(connection);
con.Open();
SqlCommand cmd = new SqlCommand("select Form_Name from Display_External_Selected where Type=4", con);
SqlDataReader rdr = cmd.ExecuteReader();
if (rdr.HasRows)
{
rdr.Read();
var Frm_Name = (string)rdr["Form_Name"];
var str_array = Frm_Name.Split(',');
SqlCommand cmdd; SqlDataReader reader; SqlConnection conn;
for (var i = 0; i < str_array.Length; i++)
{
Active_Timer.Stop();
conn = new SqlConnection(connection);
conn.Open();
cmdd = new SqlCommand("select Form_Active from Display_Parameters where Form_No=" + str_array[i] + "", conn);
reader = cmdd.ExecuteReader();
if (reader.HasRows)
{
reader.Read();
var Active_Frm_Name = (string)reader["Form_Active"];
IsOpen = true;
string formTypeFullName = string.Format("{0}.{1}", this.GetType().Namespace, Active_Frm_Name);
Type type = Type.GetType(formTypeFullName, true);
Form frmShow = (Form)Activator.CreateInstance(type);
frmShow.Location = new Point(0, 0);
frmShow.Size = Screen.PrimaryScreen.WorkingArea.Size;
frmShow.StartPosition = FormStartPosition.CenterScreen;
if (IsOpen == true)
{
frmShow.Show();
IsOpen = false;
}
if (IsOpen == false)
{
await Task.Delay(3000);
frmShow.Close();
}
Active_Timer.Enabled = false;
Active_Timer.Start();
Active_Timer.Interval = 1000;
}
}
con.Close();
}
}
sharat naik
7-Mar-18 1:57am
View
Deleted
--content has been removed due to updation of question---
sharat naik
6-Mar-18 6:16am
View
Deleted
question has changed... please help me
sharat naik
21-Feb-18 2:30am
View
Is their any form sliding tool in telerik,i want to display full screen forms, please suggest me..
sharat naik
18-Feb-18 21:41pm
View
i want it in winform or telerik
sharat naik
17-Feb-18 6:40am
View
i have updated code , in that it will go to 1st and 2nd form, how to go2 3rd form
sharat naik
17-Feb-18 6:39am
View
i have updated code , in that it will go to 1st and 2nd form, how to go2 3rd form
sharat naik
17-Feb-18 6:31am
View
Because i am making project on textile, in that more than 30 forms are available and each form having all equipment details and production details. these details are displayed in 50" monitor.
if i used panels it is more difficult configure all different screens and i required full screen display..
thank you
please suggest me
sharat naik
17-Feb-18 1:21am
View
Deleted
I want All the Forms sliding( like image slide show)
sharat naik
16-Feb-18 21:55pm
View
Deleted
I want All the Forms sliding( like image slide show)
sharat naik
16-Feb-18 6:36am
View
i tried but it wont go2 second page,
i want form1 will load for 10sec and after 10sec form1 close and form2 will load.
Every 10seconds each page loading..
sharat naik
11-Aug-15 2:32am
View
i am not tried
sharat naik
11-Aug-15 2:26am
View
move text to textbox by clicking text
sharat naik
11-Aug-15 2:18am
View
move text to textbox by clicking text
sharat naik
21-Apr-15 1:32am
View
thank you so much
sharat naik
20-Apr-15 7:16am
View
i dont want 15 days from today... reference date may be any.. that reference date to 15 days .. i need new script or alter it for previous.. thank you
sharat naik
20-Apr-15 7:02am
View
min date(ref Date) should be any date not a current date... piz help me...
sharat naik
20-Apr-15 7:00am
View
min date(ref Date) should be any date not a current date... piz help me...
sharat naik
26-Dec-14 1:38am
View
thanks
sharat naik
26-Dec-14 1:38am
View
thank you
sharat naik
23-Dec-14 2:04am
View
article was good.. here dropdown bind with the table data.. if i select 'SELECT' option, that 'SELECT' option removes in the other dropdown..
my code is below piz check it
public void D1()
{
SqlDataAdapter da = new SqlDataAdapter(" SELECT Distinct [Drum_No] FROM [DrumMaster] where grade='Recovery Grade'", connection);
DataTable dt = new DataTable();
da.Fill(dt);
ddl_D1.DataSource = dt;
ddl_D1.DataTextField = "Drum_No";
ddl_D1.DataValueField = "Drum_No";
ddl_D1.DataBind();
ddl_D1.Items.Insert(0, "Select");
}
sharat naik
25-Jan-14 0:56am
View
Good morning dear sir,
Here i am getting error for belove code, sir can send me the working
example with design code. because i am a fresher sir..
design::
<asp:Panel ID="Panel1" runat="server">
<asp:ListView ID="ListView1" runat="server">
<asp:Label ID="Label1" runat="server"
Text="Label">
..................................................................................................
cs code...
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Collections.Generic;
using System.Text;
namespace Heavy_Water_management_System
{
public partial class Mo_4D_Details : System.Web.UI.Page
{
int i=0;
var queryAllCustomers;
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
if (!IsPostBack)
AddControls();
Grd1();
}
}
string connection =
ConfigurationManager.ConnectionStrings["HWMSConnectionString"].ToStri
ng();
protected override void LoadViewState(object savedState)
{
base.LoadViewState(savedState);
if (ViewState["controsladded"] == null)
AddControls();
}
private void AddControls()
{
int count = 0;
for(i = 0; i < LinqQuery(true).count; i ++)//ERROR--OPERATOR '.'CAN
NOT BE APLLIED TO OPERAND TYP OF VOID
{
TextBox dynamictextbox = new TextBox();
dynamictextbox.Text = LinqQuery(true)[i].name);//CAN NOT APLLY
INDEXING WITH [ ] TO AN EXPRESSION TYP OF VOID..
dynamictextbox.ID =
string.Format("txtPerson{0}"LinqQuery(true)[i].ID));
Button dynamicbutton = new Button();
dynamicbutton.Click += new
System.EventHandler(string.Format("dynamicbutton{0}_Click",
LinqQuery(true)[i].ID);
dynamicbutton.Text = "Dynamic Button";
Panel1.Controls.Add(dynamictextbox);
Panel1.Controls.Add(new LiteralControl("<br>"));
Panel1.Controls.Add(new LiteralControl("<br>"));
Panel1.Controls.Add(dynamicbutton);
}
ViewState["controlsadded"] = true;
}
private void LinqQuery (bool active)
{
if (active)
queryAllCustomers = from Rx_Register in Mo_4D_Details select
Rx_Register where Rx_Register.active = 'yes';
return queryAllCustomers;
}
protected void dynamicbutton_Click(object sender, EventArgs e)
{
for(i = 0; i < LinqQuery(true).count; i ++)
{
TextBox tb = new TextBox();
tb = (TextBox)
(Panel1.FindControl(string.Format("txtPerson{0}"LinqQuery(true)[i].ID)));
Label1.Text = tb.Text;
}
}
Thanking You..
sharat naik
25-Jan-14 0:21am
View
Good morning dear sir,
Here i am getting error for belove code, sir can send me the working
example with design code. because i am a fresher sir..
design::
<asp:Panel ID="Panel1" runat="server">
<asp:ListView ID="ListView1" runat="server">
<asp:Label ID="Label1" runat="server"
Text="Label">
..................................................................................................
cs code...
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Collections.Generic;
using System.Text;
namespace Heavy_Water_management_System
{
public partial class Mo_4D_Details : System.Web.UI.Page
{
int i=0;
var queryAllCustomers;
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
if (!IsPostBack)
AddControls();
Grd1();
}
}
string connection =
ConfigurationManager.ConnectionStrings["HWMSConnectionString"].ToStri
ng();
protected override void LoadViewState(object savedState)
{
base.LoadViewState(savedState);
if (ViewState["controsladded"] == null)
AddControls();
}
private void AddControls()
{
int count = 0;
for(i = 0; i < LinqQuery(true).count; i ++)//ERROR--OPERATOR '.'CAN
NOT BE APLLIED TO OPERAND TYP OF VOID
{
TextBox dynamictextbox = new TextBox();
dynamictextbox.Text = LinqQuery(true)[i].name);//CAN NOT APLLY
INDEXING WITH [ ] TO AN EXPRESSION TYP OF VOID..
dynamictextbox.ID =
string.Format("txtPerson{0}"LinqQuery(true)[i].ID));
Button dynamicbutton = new Button();
dynamicbutton.Click += new
System.EventHandler(string.Format("dynamicbutton{0}_Click",
LinqQuery(true)[i].ID);
dynamicbutton.Text = "Dynamic Button";
Panel1.Controls.Add(dynamictextbox);
Panel1.Controls.Add(new LiteralControl("<br>"));
Panel1.Controls.Add(new LiteralControl("<br>"));
Panel1.Controls.Add(dynamicbutton);
}
ViewState["controlsadded"] = true;
}
private void LinqQuery (bool active)
{
if (active)
queryAllCustomers = from Rx_Register in Mo_4D_Details select
Rx_Register where Rx_Register.active = 'yes';
return queryAllCustomers;
}
protected void dynamicbutton_Click(object sender, EventArgs e)
{
for(i = 0; i < LinqQuery(true).count; i ++)
{
TextBox tb = new TextBox();
tb = (TextBox)
(Panel1.FindControl(string.Format("txtPerson{0}"LinqQuery(true)[i].ID)));
Label1.Text = tb.Text;
}
}
Thanking You..
sha
sharat naik
24-Jan-14 5:49am
View
hello sir,
here i am using visual studio 2008, i got error in linqQuery ,its shows it was not exist in the current context.
sharat naik
24-Jan-14 1:13am
View
i have send the concept is sample, my code length is very high ...
previous concept -- after the insertion active users data i need, one textbox and one button,
like name and view , if i click view it shows that user details..
piz send me any related topic
thank you
sharat naik
23-Sep-13 6:08am
View
i want code
sharat naik
21-Apr-13 16:38pm
View
This answear is nonsense. i tried use substring,3,1 is the ryt answear
sharat naik
21-Apr-13 16:19pm
View
my english is too weak.. i have 2 improve that..
sharat naik
21-Apr-13 16:16pm
View
can u send the full query
sharat naik
15-May-12 3:04am
View
means it display only 500rows.
sharat naik
15-May-12 3:04am
View
Deleted
but it has more than 50,000 mobile numbers, it takes only 100 rows
Show More