Posts
 
Reputation
Joined
Last Seen
Ranked #839
Strength to Increase Rep
+7
Strength to Decrease Rep
-1
80% Quality Score
Upvotes Received
24
Posts with Upvotes
19
Upvoting Members
18
Downvotes Received
6
Posts with Downvotes
6
Downvoting Members
4
10 Commented Posts
0 Endorsements
Ranked #355
~104.55K People Reached
Interests
play a Cricket,Couter strike and footbol.
PC Specs
windows XP, SQl server 2005,2008 and .net 2005
Favorite Tags

173 Posted Topics

Member Avatar for virusisfound

hi If you want the values of the selected rows of the content in the textbox then you can directly write this code on Datagridview_Cell Click Textbox1.Text=Results.Rows[e.RowIndex].Cells["your Cloumn Name"].Value.Tostring();

Member Avatar for pritam_4
0
6K
Member Avatar for TrueCoding

hii once again i have one idea for this problem use the radiobutton for the answer and give the value like ,1,2, and so on. now when you load the question from the database create one hidden txtbox and write the answer which is not visible at run time. and …

Member Avatar for Ailan
0
2K
Member Avatar for alladin2010

hi This is a console based application. You need to run first Server application then client. This for local host(same machine). If you run in different machine, need to configure once. About server IP/address in client code, file path & folder. [CODE] [B][COLOR="Red"]Server code:[/COLOR][/B] using System; using System.Collections.Generic; using System.Text; …

Member Avatar for modyalaskalany
0
5K
Member Avatar for bhagawatshinde

The abstract keyword enables you to create classes and class members that are incomplete and must be implemented in a derived class. The sealed keyword enables you to prevent the inheritance of a class or certain class members that were previously marked virtual.

Member Avatar for parth vyas
0
284
Member Avatar for pritesh2010

i have follwing data in datatable how to convert it to xml ErrorType UtilityType MstLocCode MDescription SubLocCode SDescription FieldName FDescription 1 Elect NM0001 XMN001 ABC ddsafs 1 Elect NM0001 XMN001 XYZ ddsafs 1 Elect NM0001 XMN001 LMN ddsafs 1 Elect NM0005 XMN002 sds 1 Elect NM0006 XMN002 fghfgh Gas ddsafs …

0
189
Member Avatar for Kingcoder210

huumn.use group by student`s ID & name in your query. so first it will group all the student with the given iD or name and then display the reult. it will show only one recored when you pass parameter. Try this if problem is solved mark as solved

Member Avatar for sandybriones
0
2K
Member Avatar for cumadhu

web.config is configure ur apllication only but machine.config file related to ur all d application on ur server. the settings made in the web.config file are applied to that particular web application only whereas the settings of machine.config file are applied to the whole asp.net application. The MACHINE.config file contains …

Member Avatar for perezvarm
0
656
Member Avatar for ana_eht

what do you want it's not clear and i can't understand pleas write clear what u want after selecting of green color. so i can help You.

Member Avatar for xyudha
0
752
Member Avatar for Mirfath

Hi, I think you had binded your gridview with database then use following code. /* Create One Property in Item Form which Hold the Value which you give from datagridview */ private int _itemId; public int ItemID { get{ return _itemId;} set{ _itemId = value;} } private void dataGridView1_CellContentClick(object sender, …

Member Avatar for pritesh2010
0
1K
Member Avatar for pritesh2010

how to add multiple image in listview columns like ListViewItem.ListViewSubItem[] subItems; ListViewItem item = null; item = new ListViewItem(imageList1.Images[0].ToString(), _GroupName); subItems = new ListViewItem.ListViewSubItem[] { new ListViewItem.ListViewSubItem(item,imageList1.Images[1].ToString()), new ListViewItem.ListViewSubItem(item,imageList1.Images[2].ToString()), new ListViewItem.ListViewSubItem(item,_Row["Description"].ToString()), new ListViewItem.ListViewSubItem(item,imageList1.Images[3].ToString())}; item.SubItems.AddRange(subItems); ListView.Items.Add(item); how add to do that. dynamically.

Member Avatar for pritesh2010
0
272
Member Avatar for pritesh2010

how to convert this code to C#. Protected Class Calendar Public Sub New(ByRef Picker As NullableDateTimePicker) End Sub End Class

Member Avatar for Michael27
0
119
Member Avatar for pritesh2010

REATE TABLE [dbo].[BiddingTable]( [cAuctionId] [int] NULL, [idUserId] [int] NULL, [cItemId] [int] NULL, [vcBidamount] [nvarchar](50) NULL, [vcBidcount] [int] NULL, [bidQty] [varchar](5) NULL, [vcBidtime] [datetime] NULL, [status] [varchar](50) NULL ) ON [PRIMARY] INSERT [dbo].[BiddingTable] ([cAuctionId], [idUserId], [cItemId], [vcBidamount], [vcBidcount], [bidQty], [vcBidtime], [status]) VALUES (10, 36, 21, N'93.6', 1, N'0', CAST(0x0000A05500F83B44 AS DateTime), …

Member Avatar for poojavb
0
168
Member Avatar for pritesh2010

hi everyone , write now i have a with data which i want show the in tabular format like my query gives output like Name Location Rate AA A1 56 AA A2 27 AA A3 67 AB A1 56 AB A2 27 AB A3 67 BB A1 45 BB A2 …

Member Avatar for hericles
0
87
Member Avatar for pritesh2010

hi everyone, In my project i'm working on Fileupload control.when i browse a file with IE7 it gives me a full path path of file but when i'm trying in Firefox and Chrome it does not give me a file path. some says save it to your server or a …

Member Avatar for dickersonka
0
661
Member Avatar for chanthung

you this line is wrong that's whi it's not working ''da = New OleDbDataAdapter("Select * From Application Where Sl_No='" + txteditno.Text + "'", con) in VB.net we are not concatenation string with '+' sign we are use '& '. so instead of this write like this [CODE] da = New …

Member Avatar for nicolle john
0
177
Member Avatar for poloblue

Even you can try this method also. [CODE] private void btnCheckIP_Click(object sender, EventArgs e) { try { string HostName = System.Net.Dns.GetHostName().ToString(); string UserName = System.Security.Principal.WindowsIdentity.GetCurrent().Name.ToString(); UserName = UserName.Replace(@"\", @"\\"); string IPAddresses = ""; System.Net.IPHostEntry _IPHostEntry = System.Net.Dns.Resolve(HostName); foreach (System.Net.IPAddress IPAddress in _IPHostEntry.AddressList) { IPAddresses += IPAddress.ToString() + ";"; } MessagBox.Show(HostName …

Member Avatar for sknake
0
176
Member Avatar for PutingPanday

for generating random number use random class for that. see below Example which gives you some idea how to generate Random Number. [CODE] Private Function GenerateRandomString(length As Integer) As String Dim charPool As String = "ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890" Dim rs As New StringBuilder() Dim rnd As New Random() While System.Math.Max(System.Threading.Interlocked.Decrement(length),length + 1) …

Member Avatar for thines01
0
135
Member Avatar for choosechrist

see this link it might be help you to host calender column in Datagridview [URL="http://msdn.microsoft.com/en-us/library/7tas5c80.aspx#Y68"]Msdn[/URL] and [URL="http://www.codeproject.com/Articles/38972/Nullable-datetime-column-in-NET-DataGrid-with-Date"]Click to see Example[/URL]

Member Avatar for choosechrist
0
198
Member Avatar for rhone0809

your codes this part is not working Format() is not sql Command just maniuplate from code to find date and time or see the nblow given link for dateTime [URL="http://www.sql-server-helper.com/tips/date-formats.aspx"]http://www.sql-server-helper.com/tips/date-formats.aspx[/URL] [CODE]Format([CheckTime],'mm/dd/yyyy') AS [Date], First(Format([CheckTime],'hh:nn AM/PM')) AS TimeIN, Format([CheckTime],'dddd') AS DDay [/CODE]

Member Avatar for M.Waqas Aslam
0
149
Member Avatar for vodkasoda
Member Avatar for LearnVBnet

see the below link [URL="http://www.programmersheaven.com/mb/VBasic/123406/123406/list-view---show--currency/"]http://www.programmersheaven.com/mb/VBasic/123406/123406/list-view---show--currency/[/URL]

Member Avatar for LearnVBnet
0
1K
Member Avatar for bwaha

if you are binding your listbox with data source so you can do the sum like this also [CODE] Dim i As Integer = 0 For Each _row As DataRow In DirectCast(listBox1.DataSource, DataTable).Rows i += Convert.ToInt32(_row(1)) Next MessageBox.Show(i.ToString()) [/CODE] DirectCast(listBox1.DataSource, DataTable).Rows convert your listbox to DataTable and it loop on …

Member Avatar for bwaha
0
11K
Member Avatar for dilse4sk

hi just try this code it solve your problem [CODE] Dim result As DialogResult result = MessageBox.Show("r u sure", "Test", MessageBoxButtons.YesNo, MessageBoxIcon.Information) If result = Windows.Forms.DialogResult.Yes Then //statement Else //statement End If [/CODE]

Member Avatar for pritesh2010
0
167
Member Avatar for saadahkh

hey have you check Button1.Content of Button1. what if it contain null value??

Member Avatar for tungnk1993
0
102
Member Avatar for pritesh2010

can any one tell me how to create a html help file in detail. Actually i already tried for that even i have created but the problem is i don't no how to create tree in content file. and when i passing the image url to my local machine and …

Member Avatar for pritesh2010
0
282
Member Avatar for dilse4sk

you can also bind your combobox like this also [CODE] //Com is my command, daReserveM my Dataadapter,dtRm1 is my DataTable Com.CommandText = "Select ID,RoomType from mytable" daReserveM.SelectCommand = Com daReserveM.Fill(dtRm1) dtRm1.TableName = "mytable" drp.DataSource = dtRm1 drp.DataTextField = dtRm1.Columns(1).ToString drp.DataValueField = dtRm1.Columns(0).ToString drp.DataBind() //drp is my dropdownlist [/CODE]

Member Avatar for pritesh2010
0
185
Member Avatar for saneeha.nust

this error because when you use this [CODE]DateTime.Now.ToShortDateString().ToString()[/CODE] it gives following output and with the slashes(/) 2/15/2012 so insted of try this to solve a problem or [CODE] DateTime.Now.ToShortDateString().ToString().Replace("/","") DateTime.Now.ToShortDateString().ToString().Replace("/","-") DateTime.Now.Year.ToString() + DateTime.Now.Month.ToString() + DateTime.Now.Date.ToString() [/CODE]

Member Avatar for saneeha.nust
0
233
Member Avatar for dilansankalpa

see the below example which can be help you. it's a just example just write your own code. [Code] ex:- string str = "a,b,b,c,c,d,d,e,e,f,f,g,g,h,h,i,i,j,j,k,"; //now i want to split with the evry 2 comma //so my o/p should be display like this a,b b,c c,d d,e e,f f,g g,h i,j …

Member Avatar for thines01
0
253
Member Avatar for bhagawatshinde

you can do this using the Random Class. Just create one Random class count your datatable rows and then looping on count put that rows into another datatable. for Ex. [CODE] Private Datatable ShuffelTable() { DataTable Table = mytable.copy(); if(Table.Rows.Count>0) { Table.Clear(); Random _Shuffelrandom = new Random(); while (mytable.Rows.Count > …

Member Avatar for bhagawatshinde
0
101
Member Avatar for ee_persian

for returning the value from any form you can use a Property See the below for Ex. [Code] Class A { private string mystr; public A() { } Public string MYstr { get { return mystr; } set { mystr=values;} } public Void Display() { mystr="WelCome" + mystr; } } …

Member Avatar for pritesh2010
0
158
Member Avatar for mt1

you can do this easily when you click on user control back button just fire your master windows back button. For this create one public method on your master windows and call that method on your user control back button. [CODE]this is my MstaerPage namespace TestProject { public partial class …

Member Avatar for pritesh2010
0
122
Member Avatar for shann1718

for this you have suppose to be create a an EventAuditTrail. In this create one table which contain Id,User Id,DaeTime, ModuleName and Eventtext. and create one static event like (EventAuditTrail) which have above parameter and one insert statement which insert the data into your table. and then call each and …

Member Avatar for Pgmer
0
1K
Member Avatar for prathapsv3

just check out this code it may give you small idea how to do it. [CODE] private void button1_Click(object sender, EventArgs e) { int i = 0; if (textBox2.Text.ToString()!= "") { i = Convert.ToInt32(textBox2.Text); } int j = Convert.ToInt32(textBox1.Text); textBox2.Text = Convert.ToString(i + j); }[/CODE]

Member Avatar for GeekByChoiCe
0
122
Member Avatar for Dorayaki

define your form2 at namespace lavel like for e.g.[CODE] namespace WindowsApplication2 { public partial class Form1 : Form { Form2 frm = new Form2(); public Form1() { } private void btnbold_Click(object sender, EventArgs e) { frm.loadDis(textBox1.Text); f2.Show(); } } } [/CODE]

Member Avatar for Dorayaki
0
184
Member Avatar for Behseini

on click of btn bold make btn font style bold [CODE] private void btnbold_Click(object sender, EventArgs e) { if (btnbold.Checked) { btnbold.Checked = false; btnbold.CheckState = CheckState.Unchecked; btnbold.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular); } else { btnbold.Checked = true; btnbold.CheckState = CheckState.Checked; btnbold.Font = new System.Drawing.Font("Microsoft Sans Serif", …

Member Avatar for Behseini
0
1K
Member Avatar for surferxo3

hi when you done the changes in datagridview make your non editable. [CODE]DatagridView.EndEdit();[/CODE] and Pass the new changes of the datagridView to DataTable writing [CODE]DataTable _DataTable= ((DataTable)DatagridView.DataSource).AcceptChanges(); [/CODE] It grive the Changes of Datagridview to datatable. and check the Changes.

Member Avatar for surferxo3
0
3K
Member Avatar for Andy90

see the below link may be it will help you to what you want to do. [URL="http://www.codeproject.com/KB/shell/dotnetbandobjects.aspx"]http://www.codeproject.com/KB/shell/dotnetbandobjects.aspx[/URL]

Member Avatar for shandoosheri
0
585
Member Avatar for tungnk1993

see the below link which help you very well [URL="http://www.codeproject.com/KB/system/processescpuusage.aspx"]http://www.codeproject.com/KB/system/processescpuusage.aspx[/URL]

Member Avatar for skatamatic
0
136
Member Avatar for rajeemaharjan

see the blow link which contains detail of encode and decode [URL="http://www.vbforums.com/showthread.php?t=287324"]http://www.vbforums.com/showthread.php?t=287324[/URL] [URL="http://snipplr.com/view/6034/"]http://snipplr.com/view/6034/[/URL]

Member Avatar for pritesh2010
0
247
Member Avatar for geoamins2

[CODE]//whenever you are trying to bind DataTable to Datagridview //First of all make Datagridview datasource null; //set the dgExperience.DataSource = null // then write your code // and even you can check your DataTable Like DataTable _DataTable=new DataTable(); if( _DataTable!=null || _DataTable.Rows.Count !=0) then // bind your grid with datatable …

Member Avatar for pritesh2010
0
5K
Member Avatar for superjj

[CODE]To do this see this code which // this contains my TempDocumentFolder inside my path . DirectoryInfo _Directory = new DirectoryInfo(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "TempDocuments")); //when you load the form first check the _Directory path it is valid or it contains any file like try { foreach (FileInfo file in _Directory.GetFiles("pe_*.pdf")) // it …

Member Avatar for superjj
0
439
Member Avatar for pennywise134

now when you click on Add button just add for loop for that scores like this int total=0; for(int i=0;i<scores.Length;i++) { total = total + scores[i]; } MessageBox.Show(total.ToString());

Member Avatar for D19ERY
0
706
Member Avatar for pritesh2010

hi can any one tell me how to call webservice through json query here is my code. i want pass two variable and i want to get the result of that methos say Add methos of following service. for webservice [CODE] using System; using System.Collections.Generic; using System.Linq; using System.Web; using …

Member Avatar for nakor77
0
148
Member Avatar for papershop

hi see the below link which tell you how to save the data from datagridview to datatable. [URL="http://geekswithblogs.net/dotNETvinz/archive/2009/08/02/save-dynamic-textbox-values-from-gridview-to-database.aspx"]http://geekswithblogs.net/dotNETvinz/archive/2009/08/02/save-dynamic-textbox-values-from-gridview-to-database.aspx[/URL]

Member Avatar for pritesh2010
0
140
Member Avatar for pritesh2010

Hello everyone, I’d created mlm website which is working fine but the only problem i stop that how to show horizontal tree view, or how to show binary tree. I’d already checked this [url]http://www.codeproject.com/KB/vb/SimpleBTree.aspx[/url] [url]http://forums.asp.net/t/Next/2701209[/url] [url]http://www.codeproject.com/KB/vb/SimpleBTree/BTree_src.zip[/url] [url]http://forums.asp.net/t/1639275.aspx/1[/url] [url]http://forums.asp.net/t/1336595.aspx/1[/url] [url]http://www.codeproject.com/KB/scripting/Horizontal_JS_Tree/Horizontal_Tree.zip[/url] site but didn’t get any reference if any have idea how …

0
68
Member Avatar for TrueCoding

your sql query is wrong write where condition with qoutes. like [CODE] sql="Select UserName,Password from tblStudentLogin WHERE [Username ID] ='" & trim(UserName.Text) & "' AND [Password =]'" & trim(PassWord.Text) & "' " [/CODE] try this will run.

Member Avatar for karthi5390
0
11K
Member Avatar for pritesh2010

hello everyone , I'm facing a problem in inserting data in TEMPORARY table. i can do it by simple query easily. but i want to do through [CODE] for Ex. i have bunch of query which i'm executing through SET @QueryText="Select ID from employees limit 5"; //it contains bunch of …

Member Avatar for pritaeas
0
217
Member Avatar for moshe12007

try this code [code] con = new MySqlConnection(); con.ConnectionString = "Your Connection String"; string sql = "SELECT * FROM table1,table2;"; adpter = new MySqlDataAdapter(sql, con); adpter.Fill(ds); if (ds.Tables[0].Rows.Count == 0) { MessageBOx.Show("NO Details in Table1"); } [/code]

Member Avatar for shine_jose
0
186
Member Avatar for xanawa

You can do this also. [CODE] //form1: public Form1() { InitializeComponent(); label1.Text = ""; } private void button1_Click(object sender, EventArgs e) { Form2 f2 = new Form2(); f2.ShowDialog(this); label1.Text=f2.SendValue.ToString(); } //form2: public Form2() { InitializeComponent(); label1.Text = ""; } //Create your public property on form2 private uint _sendValue; public uint …

Member Avatar for xanawa
0
101
Member Avatar for neo.mn

write your codee what you have written for put the child form in second pane.

Member Avatar for pritesh2010
0
682

The End.