tag:blogger.com,1999:blog-11125705283823738922009-04-03T13:36:32.613-07:00Programming Tutorials by KPSoftsIts a blog from KPSofts. Here we will teach you codings of softwares. We will teach you various languages basically C,C# and VB .Net,javascript and java. We will update tutorials everyday also we will teach you software developing via snapshots and video tutorials. So get ready to step into software developing with KPSofts. From developed Softwares visit our main website KPSoftsKunal Pradhanhttp://www.blogger.com/profile/06526274835647294574noreply@blogger.comBlogger18125tag:blogger.com,1999:blog-1112570528382373892.post-77489204056360714642008-06-27T21:37:00.000-07:002008-06-27T21:40:46.046-07:00Orkut Profile Maker Without TIMERsPosting Projects seem to be Dumb <img src="http://www.orkut.com/img/smiley/i_funny.gif" alt="" border="0" /> , so i am posting the full tut <img src="http://www.orkut.com/img/smiley/i_wink.gif" alt="" border="0" />...1st download VB express edition 2008 then open new project and then from toolbar draw following -:<br />7 Textboxes<br />1 Button<br />1 Webbrowser<br /><br />name these Textboxes From Their Properties windows as -:<br /><br />vik-->the textbox to make string <img src="http://www.orkut.com/img/smiley/i_funny.gif" alt="" border="0" /> ..and set its visible value to hidden <img src="http://www.orkut.com/img/smiley/i_funny.gif" alt="" border="0" /><br />fn--> First name<br />ln-->last name<br />no-->number<br />e1-->email<br />e2-->d<div class="para"><wbr>omain<br />pass--> password<br /><br /><br /><br />and then change there text properties respectively <img src="http://www.orkut.com/img/smiley/i_funny.gif" alt="" border="0" /><br /><br />To navigate to the signup page , Double click on the button and Put this Code --><b><span style="color:#ff0000;"> WebBrowser1.Navigate("<a href="https://www.google.com/accounts/NewAccount?continue=http%3A%2F%2Fwww.orkut.com%2FRedirLogin.aspx%3Fmsg%3D1&amp;service=orkut&amp;hl=en&amp;quot" target="_blank">https://www.google.com/accounts/NewAccount?continue=http%3A%2F%2Fwww.orkut.com%2FRedirLogin.aspx%3Fmsg%3D1&amp;service=orkut&amp;hl=e<wbr>n&amp;quot</a>;)<br /><br /></span></b> This will take us to the sign up page by clicking the button <img src="http://www.orkut.com/img/smiley/i_wink.gif" alt="" border="0" /> ..now the coding part of how to fill the form .. For that , Double Click on the Webbrowser and Write this Code --><br /><br /><br />vik.Text = WebBrowser1.Url.ToString()<br />If vik.Text = "<a href="javascript:void(0);" target="_blank" onclick="_linkInterstitial('https://www.google.com/accounts/NewAccou\74wbr\76nt?continue\75http://www.orkut.com/RedirLo\74wbr\76gin.aspx?msg\0751\46service\75orkut\46hl\75en\46quot'); return false;">https://www.google.com/accounts/Ne<wbr>wAccount?continue=http://www.orkut.com/R<wbr>edirLogin.aspx?msg=1&amp;service=orkut&amp;a<wbr>mp;amp;hl=en&amp;quot</a>; Then<br />WebBrowser1.Navigate("javascript:va<div class="para"><wbr>r vik=document.forms[0].elements;vik[1].va<wbr>lue='" + fn.Text + no.Text + "';vik[2].value='" + ln.Text + "';vik[3].value='" + e1.Text + no.Text + e2.Text + "';vik[4].value='" + p.Text + "';vik[5].value='" + p.Text + "';vik[14].focus();void(0);&amp;amp<wbr>;quot;)<br />End If<br />If vik.Text = "<a href="https://www.google.com/accounts/CreateAccount?continue=http://www.orkut.com/RedirLogin.aspx?msg=1&amp;service=orkut&amp;hl=en&amp;quot" target="_blank">https://www.google.com/accounts/CreateAccount?continue=http://www.orkut.co<wbr>m/RedirLogin.aspx?msg=1&amp;service=orkut&amp;hl=en&amp;quot</a>; Then<br />WebBrowser1.Navigate("<a href="https://www.google.com/accounts/ServiceLogin?continue=http%3A%2F%2Fwww.orkut.com%2FRedirLogin.aspx%3Fmsg%3D1&amp;service=orkut&amp;hl=en&amp;t=null&amp;passive=true&amp;skipvpage=true&amp;sendvemail=false&amp;quot" target="_blank">https://www.g<wbr>oogle.com/accounts/ServiceLogin?continue=http%3A%2F%2Fwww.orkut.com%2FRedirLogin<wbr>.aspx%3Fmsg%3D1&amp;service=orkut&amp;hl=en&amp;t=null&amp;passive=true&amp;skip<wbr>vpage=true&amp;sendvemail=false&amp;quot</a><wbr>;)<br />End If<br /><br />If vik.Text = "<a href="http://www.orkut.com/Terms.aspx?mode=signup&amp;quot">http://www.orkut.com/Terms.aspx?mo<wbr>de=signup&amp;quot</a>; Then<br />My.Computer.FileSystem.WriteAllText(&amp;amp<div class="para"><wbr>;quot;ids.txt", e1.Text + no.Text + e2.Text + vbNewLine, True)<br />My.Computer.FileSystem.WriteAllText(&amp;amp<wbr>;quot;password.txt", p.Text + vbNewLine, True)<br />no.Text += 1<br />WebBrowser1.Navigate("javascript:do<wbr>cument.getElementById('birthYear&amp;amp<wbr>;#39;).value= '1980';document.getElementById(&amp;<wbr>amp;#39;terms').checked= 'true' ;_submitForm(document.forms[0], 'acceptTerms', '')<br />end if<br />if vik.Text = "<a href="http://www.orkut.com/EditSummary.aspx&amp;quot">http://www.orkut.com/EditSummary.a<wbr>spx&amp;quot</a>; Then<br />WeBrowser1.Navigate("javascript<wbr>:document.getElementById('gender0&amp;#3<wbr>9;).click();javascript:document.getEleme<wbr>ntById('country').value='91&amp;<wbr>#39;;_submitForm(document.forms[2], 'update', '');void(0)")<br />end if<br /><br />if vik.Text = "<a href="http://www.orkut.com/Home.aspx&amp;quot">http://www.orkut.com/Home.aspx&amp;amp<wbr>;quot</a>; Then<br />WeBrowser1.Navigate("<a href="http://www.orkut.com/Home.aspx&amp;quot">http://www<wbr>.orkut.com/Home.aspx&amp;quot</a>;)<br />end if<br />if vik.Text = "<a href="http://www.orkut.com/Home.aspx&amp;quot">http://www.orkut.com/Home.aspx&amp;amp<wbr>;quot</a>; Then<br />Webbrowser1.Navigate("<a href="https://www.google.com/accounts/NewAccount?continue=http%3A%2F%2Fwww.orkut.com%2FRedirLogin.aspx%3Fmsg%3D1&amp;service=orkut&amp;hl=en&amp;quot" target="_blank">https://w<wbr>ww.google.com/accounts/NewAccount?contin<wbr>ue=http%3A%2F%2Fwww.orkut.com%2FRedirLog<wbr>in.aspx%3Fmsg%3D1&amp;service=orkut&amp;<wbr>hl=en&amp;quot</a>;)<br />End If<br /><br />the first code will make a string of the textbox with the url of the webbrowser so that the soft can execute a js on a particular link <img src="http://www.orkut.com/img/smiley/i_wink.gif" alt="" border="0" /><br /><br /><br />U R done With The Coding Part <img src="http://www.orkut.com/img/smiley/i_cool.gif" alt="" border="0" /><br /><br /><br />now build the app and close and save the project ..<img src="http://www.orkut.com/img/smiley/i_funny.gif" alt="" border="0" /><br /><br />then go to the location where the project is saved and then bin --> Release and See there the .exe app lies <img src="http://www.orkut.com/img/smiley/i_bigsmile.gif" alt="" border="0" /><br /><br />thats ur app <img src="http://www.orkut.com/img/smiley/i_wink.gif" alt="" border="0" /><br /><br /><br />njoi .<img src="http://www.orkut.com/img/smiley/i_wink.gif" alt="" border="0" /><br /><br />credits vix<br /></div><br /></div><br /><b><span style="color:#ff0000;"><br /><br /></span></b></div><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1112570528382373892-7748920405636071464?l=tutorials.kpsofts.com'/></div>Kunal Pradhanhttp://www.blogger.com/profile/06526274835647294574noreply@blogger.com2tag:blogger.com,1999:blog-1112570528382373892.post-63916787353766142552008-06-27T21:34:00.000-07:002008-06-27T21:35:20.896-07:00Source code Status message changer for orkutSource code Status message changer for orkut<br /><br /><a href="http://www.xtrmcoder.eu/Status_Changer.rar" target="_blank">http://www.xtrmcoder.eu/Status_Changer.r<wbr>ar</a><br /><br />credits xtreme coder<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1112570528382373892-6391678735376614255?l=tutorials.kpsofts.com'/></div>Kunal Pradhanhttp://www.blogger.com/profile/06526274835647294574noreply@blogger.com0tag:blogger.com,1999:blog-1112570528382373892.post-67882529861324046132008-06-23T12:38:00.000-07:002008-06-23T12:43:14.869-07:00orkut profile maker tutorialMake a New Project<br />Add 7 Textboxes to it<br />In the name property of them, change it to:<br />fname<br />lname<br />email1<br />x<br />email2<br />pwd<br />cs<br /><br />Change their Text Property to: [respectively]<br />First Name<br />Last Name<br />username<br />1<br />@yahoo.com<br />Password<br />Enter Captcha Here<br /><br />Now create 2 Buttons<br />Change their Text property to:<br />Start<br />Create<br />Stop<br /><br />Add 1 WebBrowser and 5 Timers<br /><br />Edit Interval of Timers:<br />Timer1 > 8500<br />Timer2 > 3500<br />Timer3 > 6000<br />Timer4 > 3000<br />Timer5 > 2000<br />You can change the timer interval according to ur internet speed<br /><br />Double click start button and type:<br />WebBrowser1.Navigate("https://www.google.com/accounts/NewAccount?continue=http%3A%2F%2Fwww.orkut.com%2FRedirLogin.aspx%3Fmsg%3D1&service=orkut&hl=en")<br />Timer1.Enabled = True<br /><br />Double Click create button and Type:<br />WebBrowser1.Navigate("javascript:var kp=document.forms[0].elements;kp[19].value='" + cs.text + "';kp[25].click();void(0);")<br />Timer2.enabled = true<br /><br />Double click Stop Button and Type:<br />WebBrowser1.Navigate("")<br />Timer1.Enabled = False<br />Timer2.Enabled = False<br />Timer3.Enabled = False<br />Timer4.Enabled = False<br />Timer5.Enabled = False<br /><br />Double Click 1st Timer and Type:<br />If Timer1.enabled = true then<br />WebBrowser1.Navigate("javascript:var kp=document.forms[0].elements;kp[5].value='" + fname.Text + "';kp[6].value='" + lname.Text + "';kp[7].value='" + email1.Text + x.Text + email2.Text + "';kp[8].value='" + pwd.Text + "';kp[9].value='" + pwd.Text + "';kp[19].focus();void(0);")<br />cs.text = ""<br />cs.focus()<br />end if<br />Timer1.enabled = false<br /><br />Double click 2nd Timer and Type:<br />If Timer2.enabled = true then<br />WebBrowser1.Navigate("https://www.google.com/accounts/ServiceLogin?continue=http%3A%2F%2Fwww.orkut.com%2FRedirLogin.aspx%3Fmsg%3D1&service=orkut&hl=en&t=null&passive=true&skipvpage=true&sendvemail=false")<br />end if<br />Timer2.enabled = false<br />timer3.enabled = true <br />Double click 3rd Timer and Type:<br />If Timer3.enabled = true then<br />WebBrowser1.Navigate("javascript:g=document.forms[0].elements;g[4].value='1980';g[5].checked=true;_submitForm(document.forms[0], 'acceptTerms', '');void(0)")<br />end if<br />Timer3.enabled = false<br />timer4.enabled = true<br /><br />Double click 4th Timer and Type:<br />If Timer4.enabled = true then<br />WebBrowser1.Navigate("javascript:document.forms[2].elements[6].checked=true;document.forms[2].elements[16].value='91';_submitForm(document.forms[2], 'update', '');;")<br />end if<br />Timer4.enabled = false<br />timer5.enabled = true<br /><br />Double click 5th Timer and Type:<br />If Timer5.enabled = true then<br />x.text += 1<br />WebBrowser1.Navigate("https://www.google.com/accounts/NewAccount?continue=http%3A%2F%2Fwww.orkut.com%2FRedirLogin.aspx%3Fmsg%3D1&service=orkut&hl=en")<br />end if<br />Timer5.enabled = false<br />timer1.enabled = true<br /><br />Your Profile Maker is Ready!<br />Now Press Start Button<br />When Captcha is shown, enter captcha in the cs box and press create<br />other thing soft will do<br />when you want to stop, press stop Button'<br /><br />Note: document form numbers can be changed by orkut by time.we will post tutorial on that later how to code the javascript even after document code has been changed.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1112570528382373892-6788252986132404613?l=tutorials.kpsofts.com'/></div>Kunal Pradhanhttp://www.blogger.com/profile/06526274835647294574noreply@blogger.com1tag:blogger.com,1999:blog-1112570528382373892.post-49871671405985820942008-06-22T09:11:00.000-07:002008-06-22T09:13:26.460-07:00c# video tutorials<a href="http://rapidshare.com/users/ERM977" target="_blank">http://rapidshare.com/users/ERM977</a><br /><br />Its a collection by someone found on net.<br />KPSofts is not responsible for any piracy content,If you are using it you must aware all copyrights are of original creator,not of KPSofts.KPSofts is none of related with the videos in any offense.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1112570528382373892-4987167140598582094?l=tutorials.kpsofts.com'/></div>Kunal Pradhanhttp://www.blogger.com/profile/06526274835647294574noreply@blogger.com2tag:blogger.com,1999:blog-1112570528382373892.post-38308502808198332262008-06-22T09:07:00.000-07:002008-06-22T09:09:12.182-07:00Create Captcha in Vb .Net<blockquote><blockquote></blockquote> Make a New Form<br />Make 1 Button, rename it as cmdDraw<br />Make 1 TextBox, rename it as txtSource<br />Make 1 PictureBox, rename it as picCaptcha(select the picture box<br />then go to properties, there will name<br /><br />type the name there)<br /><br />Now double click d form and remove all d text from the Coding part, if anything is der, just remove it<br /><br />Now put d Code which is in dis page der:<pre>Imports System.Drawing.Drawing2D<br />Imports System.Math<br /><br />Public Class Form1<br /> Inherits System.Windows.Forms.Form<br /><br />#Region " Windows Form Designer generated code "<br /><br /> Public Sub New()<br /> MyBase.New()<br /><br /> 'This call is required by the Windows Form Designer.<br /> InitializeComponent()<br /><br /> 'Add any initialization after the InitializeComponent() call<br /><br /> End Sub<br /><br /> 'Form overrides dispose to clean up the component list.<br /> Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)<br /> If disposing Then<br /> If Not (components Is Nothing) Then<br /> components.Dispose()<br /> End If<br /> End If<br /> MyBase.Dispose(disposing)<br /> End Sub<br /><br /> 'Required by the Windows Form Designer<br /> Private components As System.ComponentModel.IContainer<br /><br /> 'NOTE: The following procedure is required by the Windows Form Designer<br /> 'It can be modified using the Windows Form Designer. <br /> 'Do not modify it using the code editor.<br /> Friend WithEvents picCaptcha As System.Windows.Forms.PictureBox<br /> Friend WithEvents txtSource As System.Windows.Forms.TextBox<br /> Friend WithEvents Label1 As System.Windows.Forms.Label<br /> Friend WithEvents cmdDraw As System.Windows.Forms.Button<br /><br /> <system.diagnostics.debuggerstepthrough()> Private Sub InitializeComponent()<br /> Me.picCaptcha = New System.Windows.Forms.PictureBox<br /> Me.txtSource = New System.Windows.Forms.TextBox<br /> Me.Label1 = New System.Windows.Forms.Label<br /> Me.cmdDraw = New System.Windows.Forms.Button<br /> CType(Me.picCaptcha, System.ComponentModel.ISupportInitialize).BeginInit()<br /> Me.SuspendLayout()<br /> '<br /> 'picCaptcha<br /> '<br /> Me.picCaptcha.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D<br /> Me.picCaptcha.Location = New System.Drawing.Point(32, 40)<br /> Me.picCaptcha.Name = "picCaptcha"<br /> Me.picCaptcha.Size = New System.Drawing.Size(192, 64)<br /> Me.picCaptcha.TabIndex = 0<br /> Me.picCaptcha.TabStop = False<br /> '<br /> 'txtSource<br /> '<br /> Me.txtSource.Location = New System.Drawing.Point(40, 8)<br /> Me.txtSource.Name = "txtSource"<br /> Me.txtSource.Size = New System.Drawing.Size(120, 20)<br /> Me.txtSource.TabIndex = 1<br /> Me.txtSource.Text = "Visual Basic"<br /> '<br /> 'Label1<br /> '<br /> Me.Label1.AutoSize = True<br /> Me.Label1.Location = New System.Drawing.Point(8, 8)<br /> Me.Label1.Name = "Label1"<br /> Me.Label1.Size = New System.Drawing.Size(28, 13)<br /> Me.Label1.TabIndex = 2<br /> Me.Label1.Text = "Text"<br /> '<br /> 'cmdDraw<br /> '<br /> Me.cmdDraw.Location = New System.Drawing.Point(176, 8)<br /> Me.cmdDraw.Name = "cmdDraw"<br /> Me.cmdDraw.Size = New System.Drawing.Size(64, 24)<br /> Me.cmdDraw.TabIndex = 3<br /> Me.cmdDraw.Text = "Draw"<br /> '<br /> 'Form1<br /> '<br /> Me.AcceptButton = Me.cmdDraw<br /> Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)<br /> Me.ClientSize = New System.Drawing.Size(248, 109)<br /> Me.Controls.Add(Me.cmdDraw)<br /> Me.Controls.Add(Me.Label1)<br /> Me.Controls.Add(Me.txtSource)<br /> Me.Controls.Add(Me.picCaptcha)<br /> Me.Name = "Form1"<br /> Me.Text = "Form1"<br /> CType(Me.picCaptcha, System.ComponentModel.ISupportInitialize).EndInit()<br /> Me.ResumeLayout(False)<br /> Me.PerformLayout()<br /><br /> End Sub<br /><br />#End Region<br /><br /> ' Make a captcha image for the text.<br /> Private Function MakeCaptchaImge(ByVal txt As String, ByVal min_size As Integer, ByVal max_size As Integer, ByVal wid As Integer, ByVal hgt As Integer) As Bitmap<br /> ' Make the bitmap and associated Graphics object.<br /> Dim bm As New Bitmap(wid, hgt)<br /> Dim gr As Graphics = Graphics.FromImage(bm)<br /> gr.SmoothingMode = Drawing2D.SmoothingMode.HighQuality<br /><br /> Dim rectf As New RectangleF(0, 0, wid, hgt)<br /> gr.FillRectangle(Brushes.White, rectf)<br /><br /> ' See how much room is available for each character.<br /> Dim ch_wid As Integer = wid \ txt.Length<br /><br /> ' Draw each character.<br /> Dim rnd As New Random<br /> For i As Integer = 0 To txt.Length - 1<br /> Dim font_size As Single = rnd.Next(min_size, max_size)<br /> Dim the_font As New Font("Arial", font_size, FontStyle.Bold)<br /> DrawCharacter(txt.Substring(i, 1), gr, the_font, i * ch_wid, ch_wid, wid, hgt)<br /> the_font.Dispose()<br /> Next i<br /><br /> ' Mess things up a bit.<br /> Dim x As Integer = rnd.Next(16)<br /> Do While x < wid<br /> gr.DrawLine(Pens.Blue, x, 0, x, hgt)<br /> x += 8 + rnd.Next(16)<br /> Loop<br /> Dim y As Integer = rnd.Next(16)<br /> Do While y < hgt<br /> gr.DrawLine(Pens.Blue, 0, y, wid, y)<br /> y += 8 + rnd.Next(16)<br /> Loop<br /> For i As Integer = 1 To 20<br /> Dim x1 As Integer = rnd.Next(wid)<br /> Dim y1 As Integer = rnd.Next(hgt)<br /> Dim x2 As Integer = rnd.Next(wid)<br /> Dim y2 As Integer = rnd.Next(hgt)<br /> gr.DrawLine(Pens.White, x1, y1, x2, y2)<br /> Next i<br /><br /> gr.Dispose()<br /><br /> Return bm<br /> End Function<br /><br /> ' Draw a deformed character at this position.<br /> Private Sub DrawCharacter(ByVal txt As String, ByVal gr As Graphics, ByVal the_font As Font, ByVal X As Integer, ByVal ch_wid As Integer, ByVal wid As Integer, ByVal hgt As Integer)<br /> ' Center the text.<br /> Dim string_format As New StringFormat<br /> string_format.Alignment = StringAlignment.Center<br /> string_format.LineAlignment = StringAlignment.Center<br /> Dim rectf As New RectangleF(X, 0, ch_wid, hgt)<br /><br /> ' Convert the text into a path.<br /> Dim graphics_path As New GraphicsPath<br /> graphics_path.AddString(txt, the_font.FontFamily, _<br /> CInt(Font.Style), the_font.Size, rectf, string_format)<br /><br /> ' Make random warping parameters.<br /> Dim rnd As New Random<br /> Dim x1 As Single = CSng(X + rnd.Next(ch_wid) / 2)<br /> Dim y1 As Single = CSng(rnd.Next(hgt) / 2)<br /> Dim x2 As Single = CSng(X + ch_wid / 2 + rnd.Next(ch_wid) / 2)<br /> Dim y2 As Single = CSng(hgt / 2 + rnd.Next(hgt) / 2)<br /> Dim pts() As PointF = { _<br /> New PointF(CSng(X + rnd.Next(ch_wid) / 4), CSng(rnd.Next(hgt) / 4)), _<br /> New PointF(CSng(X + ch_wid - rnd.Next(ch_wid) / 4), CSng(rnd.Next(hgt) / 4)), _<br /> New PointF(CSng(X + rnd.Next(ch_wid) / 4), CSng(hgt - rnd.Next(hgt) / 4)), _<br /> New PointF(CSng(X + ch_wid - rnd.Next(ch_wid) / 4), CSng(hgt - rnd.Next(hgt) / 4)) _<br /> }<br /> Dim mat As New Matrix<br /> graphics_path.Warp(pts, rectf, mat, WarpMode.Perspective, 0)<br /><br /> ' Rotate a bit randomly.<br /> Dim dx As Single = CSng(X + ch_wid / 2)<br /> Dim dy As Single = CSng(hgt / 2)<br /> gr.TranslateTransform(-dx, -dy, MatrixOrder.Append)<br /> Static prev_angle As Integer = 0<br /> Dim angle As Integer = prev_angle<br /> Do While Abs(angle - prev_angle) < 30<br /> angle = rnd.Next(-60, 60)<br /> Loop<br /> prev_angle = angle<br /> Debug.WriteLine(angle)<br /> gr.RotateTransform(angle, MatrixOrder.Append)<br /> gr.TranslateTransform(dx, dy, MatrixOrder.Append)<br /><br /> ' Draw the text.<br /> gr.FillPath(Brushes.Blue, graphics_path)<br /> gr.ResetTransform()<br /> graphics_path.Dispose()<br /> End Sub<br /><br /> Private Sub cmdDraw_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdDraw.Click<br /> Dim txt As String = txtSource.Text<br /> Dim bm As Bitmap = MakeCaptchaImge(txt, _<br /> 22, 30, _<br /> picCaptcha.ClientSize.Width, _<br /> picCaptcha.ClientSize.Height)<br /> picCaptcha.Image = bm<br /> End Sub</pre></blockquote><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1112570528382373892-3830850280819833226?l=tutorials.kpsofts.com'/></div>Kunal Pradhanhttp://www.blogger.com/profile/06526274835647294574noreply@blogger.com0tag:blogger.com,1999:blog-1112570528382373892.post-21584391775182090632008-06-22T07:49:00.000-07:002008-06-22T07:55:58.062-07:00Orkut Basic terms gid uid tid pid aid etcMaking an orkut application or using orkut you should know these basic terms used by orkut.<br /><br /><span style="font-weight: bold;">Terms:</span><br />uid- user identification<br />tid - thread identification<br />aid - the album identification<br />pid - photo in the album<br /><br /><span style="font-weight: bold;">Uses:</span><br />lists, testimonials, settings and updates use xid whereas all other<br />features use uid or gid.<br /><br />gid- for images<br /><br /><span style="font-weight: bold;">Random and unity:</span><br />gid - not random<br />uid - random<br /><br />gid an uid both are unique per user<br />GID is the number of your avatar picture<br /><br />These will useful when you want to target users via social application or vb application<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1112570528382373892-2158439177518209063?l=tutorials.kpsofts.com'/></div>Kunal Pradhanhttp://www.blogger.com/profile/06526274835647294574noreply@blogger.com0tag:blogger.com,1999:blog-1112570528382373892.post-30546708639335896522008-06-22T06:25:00.000-07:002008-12-09T09:48:07.286-08:00Learn VB .NET easy way Part -1 TutorialGuide to start with VB .Net<br /><br />First download and install VB .NET 2008 and required components (which comes in package)<br /><a href="http://www.microsoft.com/express/download/">http://www.microsoft.com/express/dow</a><a href="http://www.microsoft.com/express/download/">nload/</a> (approx. 70 mb)<br /><br />After installing you can see "Microsoft Visual Basic 2008 Express Edition" in your start menu.<br />Open it.<br /><br />Click on "project..." which is on right side of label "create".<br />Choose windows forms application,give name whatever you want in below name box and press ok.<br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_JcxwsEaP-rU/SF5UD2VxlOI/AAAAAAAAAII/su9BYtO009E/s1600-h/vb.JPG"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://1.bp.blogspot.com/_JcxwsEaP-rU/SF5UD2VxlOI/AAAAAAAAAII/su9BYtO009E/s400/vb.JPG" alt="" id="BLOGGER_PHOTO_ID_5214697843644798178" border="0" /></a>you can see window like this (click on image to enlarge)<br />On right side panel you can see its properties panel which shows property of selected element of project.<br />Also you can see a toolbox there.If you can't you can enable it viw view--> toolbox(CTRL+AL+X)<br /><br />Now lets make our first simple application.<br /><br />Add a button from tool bar.Click button and make a button of your size in form1's area.This is similar to make a rectangle in paint.<br />Now you have make graphix part<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_JcxwsEaP-rU/SF5WfgArCHI/AAAAAAAAAIQ/1N0tnktNTKo/s1600-h/vb2.JPG"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://2.bp.blogspot.com/_JcxwsEaP-rU/SF5WfgArCHI/AAAAAAAAAIQ/1N0tnktNTKo/s400/vb2.JPG" alt="" id="BLOGGER_PHOTO_ID_5214700517710301298" border="0" /></a><br />as an application has two parts graphix and codings<br />now lets move to coding part<br />Double click on button you made to open the coding part<br />double click will open the button's default coding event i.e. button1_click<br />Note: you can switch between coding and designer via view menu.<br /><br />Now we will give user a message on pressing the button.<br /><br />So message code will be<br /><br />msgbox("your message")<br /><br />like<br />msgbox("This is my first application")<br /><br />Tip: you can choose msgbox type by giving secong argument<br />like<br />MsgBox("This is my first application", MsgBoxStyle.Information)<br /><br />This shows the msgbox will be windows' default information style box.<br /><br />so final code will be<br /><br />Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click<br /> MsgBox("This is my first application", MsgBoxStyle.Information)<br /> End Sub<br /><br />Click on green arrow like play button on top to run your first application!<br /><br />More options:<br />Project menu---> project name properties... contains useful options about your project<br />You can change application logo and important properties from properties of form1 (right click on form1's and area and select properties(the part where u drew button)<br /><br />You can publish you application and can distribute within friends by build menu--->build application name example build windows application1<br /><br />You ready to distribute application will be in D:\Documents and Settings\Kunal Pradhan\My Documents\Visual Studio 2008\Projects\"project name that you gave"\"project name that you gave"\bin\Release\application name.exe<br /><br />you can send this exe file to all.<br /><br />Next tutorial will be posted soon.Support us by informing friends about us.<br /><br />Get all vb .net tutorials click here:<a href="http://tutorials.kpsofts.com/search/label/vb%20.net">List all</a><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1112570528382373892-3054670863933589652?l=tutorials.kpsofts.com'/></div>Kunal Pradhanhttp://www.blogger.com/profile/06526274835647294574noreply@blogger.com0tag:blogger.com,1999:blog-1112570528382373892.post-2934130655650229772008-06-19T01:22:00.000-07:002008-06-19T06:18:21.837-07:00C Programming Tutorial (Algorithms)<span style="color: rgb(255, 0, 0); font-weight: bold;">Find Area of a Circle</span><br /><br />We need formula A= 3.14 * R * R<br /><br />So Now we Will Put it in Algorithm<br /><br />First we need a value of R so we will take it from user<br /><br />Algorithm Starts :<br /><br /><br />1. Area <-- 1<br />2. Input R <br />3. Area <---3.14*R*R <br />4. Print Area <br />5. End <br /><br /><span style="font-weight: bold; color: rgb(255, 0, 0);">Find The Minimum from given two numbers</span><br />Logic : Scan two numbers from user,Compare them,Print the Minimum.<br /><br /><br />1. Input N1<br /><br />2. Input N2<br /><br />3. If N1>N2 Go to (6)<br /><br />4. Print N1<br /><br />5. Go to (7)<br /><br />6. Print N2<br /><br />7. End<br /><br /><span style="font-weight: bold; color: rgb(255, 0, 0);"> Find The Minimum from given three numbers</span><br />Logic Compare two set of number one by one<br /><br /><br />1. Input N1<br />2. Input N2<br />3. Input N3<br />4. If N1>N2 Go to (8)<br />5. If N1>N3 Go to (11)<br />6. Print N1<br />7. Go to (12)<br />8. If N2>N3 Go to (11)<br />9. Print N2<br />10. Go to (12)<br />11. Print N3<br />12. End<br /><br /><span style="font-weight: bold; color: rgb(255, 0, 0);"> Find Sum of First 100 odd numbers</span><br />Logic: Use a sum variable, use a counter , use another variable to give step value of two<br /><br /><br />1. count<--1<br />2. sum<--0<br />3. step <-- 1<br />4. sum<--sum+step<br />5.step<-- step + 2<br />6. count<--count+1<br />7. If count<=100 Go to (4)<br />8. Print Sum<br />9. End<br /><br /><span style="font-weight: bold; color: rgb(255, 0, 0);"> Generate First N Fibonacci</span><br />Logic: Fibonacci :Total of No and its previous no<br /><br />2+3=5<br />3+5=8<br />5+8=13<br /><br />This is the formula of Fibonacci<br /><br /><br />1. Input N<br />2. Count<--2<br />3. F1<--0<br />4. F2<--1<br />5. Print F1<br />6. Print F2<br />7. F3<--F1+F2<br />8. Print F3<br />9.Count<--Count+1<br />10. F1<-- F2<br />11. F2 <-- F3<br />12. If Count< N Go to (7)<br />13. End<br /><br /><span style="font-weight: bold; color: rgb(255, 0, 0);"> Addition of First 15 Numbers Divisable by 7</span><br />Logic: Use of MOD function to know whether the number is divisible by 7 or not<br /><br /><br />1. Count<--0<br />2. Sum <-- 0<br />3. Num <-- 1<br />4. Num<--Num+1<br />5. If (Num%7==0) Go to (7)<br />6. Go to (4)<br />7. Sum<--Sum+Num<br />8. Count<--Count+1<br />9. If Count < 13 then Go to (4)<br />10. Print Sum<br />11. End<br /><br /><span style="font-weight: bold; color: rgb(255, 0, 0);"> Calculate Total Salary as Per Rules Given</span><br />Basic<=1500_________HRA 400<br />Basic>1500 &amp; <6000___________HRA 1500<br />Basic >6000__________HRA 2000<br /><br /><br />DA<br />15 % _______ if Basic <= 2500 else 10 %<br /><br />MA Rs. 200<br /><br />Salary Formula: Basic +HRA +DA +MA<br /><br /><br />1. Input Basic<br />2. Salary<--0<br />3. HRA<--0<br />4. DA<--0<br />5. If Basic <=1500 Go to (9)<br />6. If Basic <6000 Go to (11)<br />7. HRA<--2000<br />8. Go to (12)<br />9. HRA<--400<br />10. Go to (12)<br />11. HRA<--1500<br />12. If Basic<=2500 Go to (15)<br />13. DA<--0.10*Basic<br />14. Go to (16)<br />15. DA<--0.15*Basic<br />16. Salary<--Basic+HRA+DA+200<br />17. Print Salary<br />18. End<br /><br /><span style="font-weight: bold; color: rgb(255, 0, 0);"> Count Electricity Bill</span><br />Same as above but here Electricity bill<br /><br />First 50 units 50p/unit<br />Next 50 0.75/u<br />Next 100 1.25/u<br />above 200 1.75/u<br />Fuel charge 40% of unit charge<br />Government tax 15% of unit and fuel charge<br />Meter rent 20 Rs.<br /><br />1. Input Units<br />2. If Units <= 50 Go to (7)<br />3. If Units <=100 Go to (9)<br />4. If Units <= 200 Go to (11)<br />5. Unit_Charge<--50*0.50+50*0.75+100*1.25+(<div class="para"><wbr>Units-200)*1.75<br />6. Go to (12)<br />7. Unit_Charge<--Units*0.50<br />8. Go to (12)<br />9. Unit_Charge<--50*0.50+(Units-50)*0.75<br />10. Go to (12)<br />11. Unit_Charge<--50*0.50+50*0.75+(Units-100<wbr>)*1.25<br />12. Fuel_Charge<--0.40*Unit_Charge<br />13. Govern_Tax<--0.15*(Fuel_Charge+Unit_Char<wbr>ge)<br />14. Bill<--Unit_Charge+Fuel_Charge+Govern_Ta<wbr>x+20<br />15. Print Bill<br />16. End</div><br />Read all C Programming tutorials <a href="http://tutorials.kpsofts.com/search/label/C">Click here</a><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1112570528382373892-293413065565022977?l=tutorials.kpsofts.com'/></div>Kunal Pradhanhttp://www.blogger.com/profile/06526274835647294574noreply@blogger.com0tag:blogger.com,1999:blog-1112570528382373892.post-88521301641770641082008-06-18T22:09:00.000-07:002008-06-18T22:19:54.515-07:00C Programming Tutorial Part-1you know when we r talking about a new program we must know the keywords of that program, by using which we construct the program these keywords are defined in compiler, so here is the list of keywords used in C,<br /><br />there are 32 keywords defined in standard C, and these are :=<br /><br /><br />auto double int struct break else long switch case enum register<br /><br />typedef char extern return union const float short unsigned continue<br /><br />for signed void default goto sizeof volatile do if static while<br /><br />Now we will learn more about these keywords,<br /><br />Data Types<br /><br />there are five datatypes in C subset : character ( like A,B,c,d); integer(12,50,89675); floating point (12.564,0.9876); double floating point (12.7865234195) - the precision is more than simple floating point and value-less<br /><br /><br />the keywords for them are respectively char,int,float,double and void<br /><br /><br /><br />now we have a very long list of the range of these keywords<br /><br />i am giving just fews :-<br /><br />the size of char type variable in memory is 1 byte and it's range :- -127 to 127<br />and the keywords signed and unsigned is used to define explicitly if negative sign will be present there or some other ways will be taken to represent the negative variable :- like - unsigned char ranges from 0 to 255<br /><br /><br />size of int type variable in the memory is 2 byte and ranges from -32767 to 32767 (if we dont tell the comiler explicitly then it takes it as signed i.e. with negative signs) and the size of float is 4 byte whereas the size of double is 8 byte<br /><br />i am sure with lots of theory ur head is just buzzing now so we here give an example, how ur first c program should be<br /><br /><br /><br />#include<><br /><br />void main()<br />{<br />printf("Hello world");<br />}<br /><br /><br />this will print Hello world in the output screen<br /><br /><br />now we analyse the program<br /><br />at first line i have given #include<><br /><br />i am not gonna tell you guys what exactly this thing means right now, you will learn more when i start pre processor<br /><br />for present information include is a pre processors directive and every pre processors must start with a '#' and that means we r including some files here, and in this case the file is stdio.h... the extension .h stands for header file<br /><br />and stdio (standard input-output) is a special file stored in compiler which has some compiler defined functions which are related to input and output, we will learn about them later<br /><br /><b><b>Read all C Programming tutorials <a href="http://tutorials.kpsofts.com/search/label/C">Click here</a></b></b><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1112570528382373892-8852130164177064108?l=tutorials.kpsofts.com'/></div>Kunal Pradhanhttp://www.blogger.com/profile/06526274835647294574noreply@blogger.com0tag:blogger.com,1999:blog-1112570528382373892.post-47233516942505818452008-06-18T22:07:00.000-07:002008-06-18T22:08:03.981-07:00Virtual Software Development Guideline<div class="para"> When we go to develop a working real life software remember following points and go ahead !!!<br /><br />=> A software is the thing which automates something.<br />Steps:<br /><br />+ Think your need.<br />+ Write your need.<br />+ Get info about available inbuilt functions to complete your need<br />+ If you cant get above use resources like google<br />+ Still if you are not getting develop your own<br />+ Develop whole code and according to that minimum UI that needed<br />+ Improve UI<br />+ Find Bugs<br />+ Correct Bugs<br />+ Find the points that worst user of your software can do it with your software<br />+ Protect your software from above one.<br />+ Put the locks to your software you want.<br />+ Do final test.<br />+ Release it.<br /><br />Happy Software Developing<img src="http://www.orkut.com/img/smiley/i_smile.gif" alt="" border="0" /> </div><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1112570528382373892-4723351694250581845?l=tutorials.kpsofts.com'/></div>Kunal Pradhanhttp://www.blogger.com/profile/06526274835647294574noreply@blogger.com0tag:blogger.com,1999:blog-1112570528382373892.post-35593950711787369662008-06-18T22:05:00.000-07:002008-06-18T22:06:02.533-07:00Javascript Tutorial Part-3objective: to learn the if..else statements...<br /><br />what is if...else statements?<br />if else statements are used as conditional statements..<br /><br />for example .. if a certain condition is true ...which script to run .. and if it is false then what to do ...<br />these statements are very useful !!!<br /><br /><br />IF STATEMENT<br /><br />it tells the script what to do when a certain condition is true ...<br />this is how it should be used :<br />if (condition){the code that should execute if the condition is true.}<br /><br />e.g.<br />javascript:var a=prompt("insert a number between 1-1000","Enter number");if (a<750){alert("number is less then 750")}<br /><br /><br /><br />IF ElSE STATEMENT<br /><br />it tells the script what to do when a certain condition is true ... and what to do if it is false.<br />this is how it should be used :<br />if (condition){the code that should execute if the condition is true.}else{code to execute if it is false}<br /><br />e.g.<br />javascript:var a=prompt("insert a number between 1-1000","Enter a number");if (a<750){alert("number is less then 750")}else{alert("number greater then 750")}<br /><br /><br />Prompt function we can give default value as second element<br /><br />like<br />javascript:prompt("Enter your name","kunal");void(0)<br /><br />I have given my name as default value.<br /><br /><b><b>Read all javascript tutorials <a href="http://tutorials.kpsofts.com/search/label/javascript">Click here</a></b></b><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1112570528382373892-3559395071178736966?l=tutorials.kpsofts.com'/></div>Kunal Pradhanhttp://www.blogger.com/profile/06526274835647294574noreply@blogger.com0tag:blogger.com,1999:blog-1112570528382373892.post-58412014575352725732008-06-18T21:55:00.000-07:002008-06-18T22:01:45.260-07:00Javascript Tutorial Part-2Same function as alert<br /><br />there is another function<br /><br />"prompt"<br /><br />prompt is useful to take some value from user<br /><br /><br />like javascript:prompt("Enter your name");void(0)<br /><br />here we have written another function void(0) because<br />when we use javascript browser creates a new page<br />by writing void(0) we say to browser that we have to do nothing.just run the script and stay at same page<img src="http://www.orkut.com/img/smiley/i_smile.gif" alt="" border="0" /><br /><br /><br />Taken value vis prompt we can store it and use it in future<br /><br />e.g.<br /><br />javascript:var a=prompt("Enter your name");alert("Hello "+a+" How are you?");void(0)<br /><br />in above example we are taking user's name in variable a via prompt and then using it in second alert function<br /><br />; is used to separate two javascripts<br /><br /><br />try yourself make your own javascripts using alert,+,variables,prompt<br /><br /><b><b>Read all javascript tutorials <a href="http://tutorials.kpsofts.com/search/label/javascript">Click here</a></b></b><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1112570528382373892-5841201457535272573?l=tutorials.kpsofts.com'/></div>Kunal Pradhanhttp://www.blogger.com/profile/06526274835647294574noreply@blogger.com0tag:blogger.com,1999:blog-1112570528382373892.post-25459650860914235622008-06-18T21:07:00.000-07:002008-06-18T22:02:24.705-07:00Javascript Tutorial Part-1<span style="font-weight: bold;">Javascript is one the important part in making softwares,so in this ttopic I will teach it.</span><br /><br /><b><b>it is a scripting language designed to add interactivity to webpages and can be embedded directly into html pages.<br /><br />How to find it???<br /><br />It can be found as <> and via < language="javascript"> tag in body<br /><br /><br />How it is useful?<br /><br />It is useful in make page extra ordinary.<br />but in our tutorials we will make the page automated using javascripts.<br /><br />Lets make a simple script<br /><br />basic : Declaring variables<br /><br />What is variable?<br />a variable is like a 'container' for info u want to store.<br /><br />we will store some values instead of biscuits<img src="http://www.orkut.com/img/smiley/i_wink.gif" alt="" border="0" /><br /><br />once you are declared variables,it can be used easily at any moment<br /><br />javascript:<span style="color: rgb(255, 0, 0);">var teacher</span>="teaching you javascripts";alert(<span style="color: rgb(0, 0, 255);">teacher</span>);alert(<span style="color: rgb(0, 0, 255);">teache<wbr>r</span> + "1");alert(<span style="color: rgb(0, 0, 255);">teacher</span> + "2")<br /><br />run in above script i have declared teacher as a variable<br /><br />declare variables code<br /><span style="color: rgb(255, 0, 0);"><br />var <></span><br />e.g.<br />var tt<br />var ab<br /><br />Give variable names as short as you can.<br />Keep them unique<br />Keep them clear,you should not confuse about them<br />like for sem marks give sm and final marks give fm<br /><br /><br />In above script<br />It will give alerts<br /><span style="color: rgb(255, 0, 0);"><br />alert()</span> function is used to popup a alert box.<br />like <span style="color: rgb(132, 0, 0);">javascript:alert("this is an alert")<br /></span><br />+ sign is used to join<br />It can join two variables<br />It can join variable with strings as we have done above<br />joined teacher variable with 1 and 2<br /><br />We will talk about it later<br />now just concentrate on variables<br />make your own such scripts post it here<br /><br />main use of variable we dont have to write a long things too many times as I did above<br />every time i have to write just variable teacher<br /><br />instead of teacher i can give the variable name just<span style="color: rgb(255, 0, 0);"> t</span><br />so every time i have to write just <span style="color: rgb(255, 0, 0);">t<br /></span><br /><br />javascript:var <span style="color: rgb(255, 0, 0);">t</span>="teaching you javascripts";alert(<span style="color: rgb(255, 0, 0);">t</span>);alert(<span style="color: rgb(255, 0, 0);">t</span> + "1");alert(<span style="color: rgb(255, 0, 0);">t</span> + "2")<br /><br />tryout it yourself<br />Comment your created javascripts here<br /><br />Read all javascript tutorials <a href="http://tutorials.kpsofts.com/search/label/javascript">Click here</a><br /></b></b><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1112570528382373892-2545965086091423562?l=tutorials.kpsofts.com'/></div>Kunal Pradhanhttp://www.blogger.com/profile/06526274835647294574noreply@blogger.com0tag:blogger.com,1999:blog-1112570528382373892.post-57779727482959700712008-06-18T20:55:00.000-07:002008-06-18T21:00:36.646-07:00Orkut Mass Community JoinerAdd 2 Buttons<br />Add 1 textbox<br />Add 3 Labels<br />And 1 webbrowser<br />Add 1 Status bar<br />Add 1 Progress Bar<br />Add 1 timer(optional)<br /><br />Now Change the text of one button to start and one to stop<br /><br />***Label Work You Can Do of your own from the project<br /><hr><br />Double Click On The Form and after "Public forrm1"<br />type<br />Dim uid As Integer = 1<br />Dim join As Integer = 0<br />Dim sec As Integer<br />Dim over As Boolean<br />Dim status As Integer = 0<br />Dim start As Boolean = False<br /><br /><hr><br /><hr><br />Double Click On the Web browser and type<br /><br />If start = True Then<br />Select Case status<br />Case 0<br />web1.Navigate("http://www.orkut.com/Community.aspx?cmm=" & uid)<br />status = 1<br />Case 1<br />status = 2<br />Case 2<br />web1.Navigate("javascript:mr=document.forms[1]; mr.action='CommunityJoin.aspx?Action.join&'+location.href.match(/cmm=\d*/gi); mr.submit(); void (0)")<br />status = 3<br />join = join + 1<br />Label3.Text = join & " Comminities joined in " & sec & " sec"<br />Case 3<br />uid = uid + 1<br />status = 0<br />End Select<br />End If<br />TextBox1.Text = uid<br /><br /><hr><br /><hr><br />Double Click On textbox and type<br /><br />uid = Val(TextBox1.Text)<br /><br /><hr><br /><hr><br /><br />Double Click On "Start" button and type<br /><br />start = True<br />web1.Navigate("http://www.orkut.com")<br />time.Enabled = True<br /><br /><hr><br /><hr><br />Double Click On "Stop" button and type<br /><br />start = False<br />time.Enabled = False<br /><br /><hr><br />Optional Service<br /><hr><br /><br />double Click on timer and type<br /><br />sec = sec + 1<br />Label3.Text = join & " Comminities joined in " & sec & " sec"<br /><br /><hr><br />Add One Statuslabel and name it as "status1"<br />Select "Status Text Changed " Event From web browser<br />TYPE<br /><br />status1.Text = web1.StatusText<br /><br /><hr><br />Select "ProgressChanged" event from web browser<br />and type<br /><br />ProgressBar1.Value = e.CurrentProgress<br /><br /><hr><br />*********************************************************<br />NOTE:Change The name Of the webbrowser1 to web1<br /><br />*********************************************************<br /><br />whole project link<br />http://sunilpalon.110mb.com/mass_comm_joiner.zip<br /><br />Credits:Xtreme Coder a.k.a Chetan Mendhe<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1112570528382373892-5777972748295970071?l=tutorials.kpsofts.com'/></div>Kunal Pradhanhttp://www.blogger.com/profile/06526274835647294574noreply@blogger.com1tag:blogger.com,1999:blog-1112570528382373892.post-34336899529581475722008-06-18T20:49:00.000-07:002008-06-18T20:52:29.841-07:00Simple HTML Editor in VB .NETinsert a Split Container or 2 Panels<br /><br />then,<br /><br />add a Menu Strip to both the panels..<br /><br />and then add a ToolStrip<br /><br />then add a Text Box to the first panel and a Web Browser (Preferably IE). Then in the toolstrip, add any buttons that yew want like new, open, save, save as etc.. etc.. in panel 1..<br /><br /><br />then add a button Preview to the toolstrip...<br /><br />dbl click on preview and type the following....<br /><br /><hr><br />WebBrowser1.DocumentText = TextBox1.Text<br /><hr><br /><br />Then add a Label to panel 2...<br /><br />set the text as..<br /><br />' page title will appear here '<br /><br />Then type the following after the above code that yew entered..<br /><br /><hr><br />Label1.Text = WebBrowser1.DocumentTitle<br /><hr><br /><br />add another label and set the text as..<br /><br />' Double click on preview to view page title '<br /><br />you are done..<br /><br />Note:you can develop functions of other buttons<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1112570528382373892-3433689952958147572?l=tutorials.kpsofts.com'/></div>Kunal Pradhanhttp://www.blogger.com/profile/06526274835647294574noreply@blogger.com0tag:blogger.com,1999:blog-1112570528382373892.post-83462141500623535932008-06-18T20:45:00.000-07:002008-06-18T20:48:36.657-07:00Reading From Text file VB .NET (Text file to Listbox)For reading id and password while making orkut related software or any other site related software use below code<br />FOR ID<br />If My.Computer.FileSystem.FileExists("id.txt") Then<br />Dim stream_reader As New IO.StreamReader("id.txt")<br />ListBox1.Items.AddRange(Split(stream_reader.ReadToEnd, _<br />vbCrLf))<br />ListBox1.SelectedIndex = 0<br />stream_reader.Close()<br />Else<br />My.Computer.FileSystem.OpenTextFileWriter("id.txt", True)<br />MsgBox("The Software has created files required for this Software, please fill required information in them, Then run this program, For now the program is Closing!", MsgBoxStyle.Critical, "Error!")<br />Me.Close()<br />End If<br /><br />FOR PASSWORD<br />If My.Computer.FileSystem.FileExists("passwd.txt") Then<br />Dim stream_reader As New IO.StreamReader("passwd.txt")<br />ListBox2.Items.AddRange(Split(stream_reader.ReadToEnd, _<br />vbCrLf))<br />ListBox2.SelectedIndex = 0<br />stream_reader.Close()<br />Else<br />My.Computer.FileSystem.OpenTextFileWriter("passwd.txt", True)<br />MsgBox("The Software has created files required for this Software, please fill required information in them, Then run this program, For now the program is Closing!", MsgBoxStyle.Critical, "Error!")<br />Me.Close()<br />End If<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1112570528382373892-8346214150062353593?l=tutorials.kpsofts.com'/></div>Kunal Pradhanhttp://www.blogger.com/profile/06526274835647294574noreply@blogger.com0tag:blogger.com,1999:blog-1112570528382373892.post-16446117800487772362008-06-18T13:27:00.000-07:002008-06-18T20:40:08.097-07:00Make softwares without timer in VB .NETFollow the steps given below and you will be able to navigate from google to yahoo then to msn :-<br /><br />1. create a invisible textbox and name it anything (we use url as name here).<br />2. go to webbrowsers document completed event. there type the following code to navigate without timers..<br /> <br />if url.text.contains("google") then<br />msgbox("We are on google now!")<br />webbrowser1.navigate("http://www.yahoo.com") <br />end if<br /><br />if url.text.contains("yahoo") then<br />msgbox("We are on yahoo now!")<br />webbrowser1.navigate("http://www.msn.com/") <br />end if<br /><br />if url.text.contains("msn") then<br />msgbox("We are on msn now!")<br />end if<br /><br />3. create a button and set its text property to "Google".<br />go to its click event and type the following code there -<br /><br />webbrowser1.navigate("http://www.google.com/") <br /><br /><hr><br />The total codes work is like this, when you press the button webbrowser will navigate to google.com and <br />when its on google it will show a msgbox that its on google, after that msgbox it will navigate to yahoo <br />and the process will again happen then after the msgbox this time it will navigate to msn and show a <br />msgbox there and stop.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1112570528382373892-1644611780048777236?l=tutorials.kpsofts.com'/></div>Kunal Pradhanhttp://www.blogger.com/profile/06526274835647294574noreply@blogger.com0tag:blogger.com,1999:blog-1112570528382373892.post-47853631112930611092008-06-17T10:32:00.000-07:002008-06-17T10:47:00.708-07:00Intro of the blogIts a blog from <a href="http://www.kpsofts.com">KPSofts</a>.<br />Here we will teach you codings of softwares.<br />We will teach you various languages basically C,C# and VB .Net,javascript and java.<br />We will update tutorials everyday also we will teach you software developing via snapshots and video tutorials.<br /><br />So get ready to step into software developing with KPSofts.<br /><br />From developed Softwares visit our main website <a href="http://kpsofts.com">KPSofts</a><br /><br />Regards,<br />Kunal Pradhan,Owner,<a href="http://kpsofts.com">KPSofts</a>.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1112570528382373892-4785363111293061109?l=tutorials.kpsofts.com'/></div>Kunal Pradhanhttp://www.blogger.com/profile/06526274835647294574noreply@blogger.com0