102 Posted Topics
Re: [QUOTE=hery;953002]yeah.. You right.. But i want to 10,000.00.. How can make it.. Not depending where i place.. Please.... I stuck ...[/QUOTE] Unless I did not miss something, I found adatapost answer is what you want [CODE=vbnet] Dim n As Integer = 12345 TextBox1.Text = n.ToString("###,###.00") MsgBox("Next") Dim d As Double … | |
Re: [QUOTE=abu taher;950824]not like that. like :[CODE]Private Sub Form_Load() Dim x As Integer x = 100 Label4.Caption = x End Sub [/CODE][/QUOTE] Hi Abo Taher I want to say thanks to you for the effort you did trying to help people in the forum, and for the effort helping the PO … | |
Re: [QUOTE=scooby36;944256]Hi Sknake, the line of code that is throwing the exception is "daLinStock.Update(ds) When It tries to do the update I thing the dataset is empty but I don't know why. Thanks[/QUOTE] Where and how did you declare the variable "ds" ? | |
![]() | Re: What is your db back-end? ![]() |
Re: [QUOTE=Arunabh Nag;942074]getting the following exception : [CODE] Object reference not set to an instance of an object. [/CODE][/QUOTE] Check if you have declared a public variable to an object exist on the form in the declaration section. hth | |
Re: Do you mean something like that? [CODE=vb.net]Dim A1 = "Message1" Dim A2 = "Message2" Dim A3 = "Message3" Dim B B = "A1" MsgBox(B) <-- should show "Message1" B = "A2" MsgBox(B) <-- should show "Message2"[/CODE] etc ... ? | |
Re: Well that is not gonna be easy (unless there is a built-in function in .net I am not aware of) here is the closet thing I manage to reach. Add FolderBrowseDialog [CODE=vb.net]Dim ServerName = "server_name" Dim AdminUserName = "Administrator" Dim DomainName = "domain_name" Dim AdminPassword = "administrator_password" ' Initialize WMI … | |
Re: [QUOTE=babbu;909674]oledbcom.executereader is working without any errors. and m using it because i want the last value to be fetched which i dont think is possible with executescalar. m getting this error at the last line oledbcom1.executenonquery() plz help[/QUOTE] That error will occur when you specify a parameter type which is … | |
Re: My answer may appear a little far from your question, but here how I look to it. In every applications we all write these layers are exist, but they were all exist in one place. Suppose you create a form which include one textbox and save button, in the save … | |
Re: Try this SELECT Training.EmpID, Training.TrainingType, Employee.EmpName, EmpProfInfo.Des_ID, Designation.Designatio FROM Designation RIGHT OUTER JOIN Employee RIGHT OUTER JOIN EmpProfInfo RIGHT OUTER JOIN Training ON EmpProfInfo.EmpID = Training.EmpID ON Training.EmpID = Employee.EmpID ON Designation.Des_ID = EmpProfInfo.Des_ID WHERE (Training.TrainingType <> 'Type1') | |
Re: Try this: [URL="http://msdn.microsoft.com/en-us/library/aa390385(VS.85).aspx"]http://msdn.microsoft.com/en-us/library/aa390385(VS.85).aspx[/URL] | |
Re: Hi Sonia, I Suggest using the [ICODE]ContextMenuShowing[/ICODE] instead of [ICODE]MouseDown[/ICODE], as it seems that [ICODE]MouseDown[/ICODE] is 1 click behind and don't give the current element but it gives the previous element that rightclick is occur on it. Now, to get the element (I don't know what information you want) info, … | |
Re: [QUOTE]but when i tried using the same model for the restore it give a massage that i do not have exclusive acces to perform the action[/QUOTE] Backup and restore are totally different and they require different parameter to be filled. So, What do you mean by using the same model … | |
hi all, I hope i am writing in the right forum, I don't have a question but a suggestion. As you all know there is - vb 2003/2005/2008/2010 - .Net 1.1 to 3.51 plus .Net 4 Beta - Win XP, Vista, Windows 7, Win2003 win2008 I suggest that the user … | |
Re: [QUOTE]Guess what happened?![/QUOTE] You got infected and did you not create the anti-virus yet? ;) [QUOTE]Any help will be appreciated! [/QUOTE] Help with what exactly? The above is correct. does it give any error? | |
Re: For your first question, and it is my own opinion, I prefer that you create a view on the SQL Server side, and call this view whenever you need it. (at least less coding) For your second question regarding filter. That is a big question and cannot be answered directly … | |
Re: As fast response, you have 2 things missing Inet <-- is not declared DivideText <-- which i guess it is a function is not there is your code. You can stick with your code, and you can use my code if you find it better [code=vb] Dim xmlHTTP Dim URL … | |
Re: [QUOTE]creating a file in the folder with userID & password.[/QUOTE] The only way I know to do that is to create a folder and the file on a server itself, where you can set the permission as you like. Are you taking about folder and file on local HDD or … | |
I have this issue which I did not find an answer to it. I am creating a small app which SUPPOSE to be easy and it is about getting 4 things (User Name, Pc Name, Domain Name, and IP Address) I have over 35 pc's connected to a domain, and … | |
Re: [QUOTE=Sylenas;879581] Account: Apple Username: Orange Password: Banana basically i just want to fill my textboxes with the Apple, Orange and Banana part. [/QUOTE] Basically, you did not run or test the code posted by Tame. Because if you do, you will notice that he has 2 parts, parts 1 reading … | |
Re: [QUOTE=hkarthik;880942] I want to get our remote server's date and time.[/QUOTE] One trick I know to get date and time from any machine, is to create a file on that machine (server) and then read the created file date & time. hth | |
Re: I have This function from my framework, and sorry I cannot remember from where I got it, so I am saying that this function is not mine. I wonder if I did not say the above and owner will came and say "Hey, give me my 10$" :) [CODE=vb.net]Dim RootDir … | |
Re: [QUOTE=VIPER5646;874650]I have two Issue using a MDI app. 1-at this moment I'm able to open MDI child forms using the MDIparent except when the I opens form1 I'm also able to open forms 2 and 3 . but I only want one form to be open at a time. [/QUOTE] … | |
Re: The checkboxs you show are displayed in word document or in vb form? | |
Re: [QUOTE=bigtreeworld;873459]How can you stop IE from opening up in a WebBrowser control on a new window (target=_blank")? [/QUOTE] If I understand correctly, you put a WebBrowser control on a form, and when you Issue Navigate it open in IE instead of the form? if that so, [CODE]WebBrowser1.Navigate("www.google.com", False)[/CODE] | |
Re: [QUOTE=dot_net_rookie;873208]Hi, How can i pass values from datareader to arraylist [/QUOTE] I did not see any arraylist declaration in your code? but you can access the datareader as array if that help. [CODE]For I = 1 to objReader.RecordsAffected Debug.Print(objReader(I)) Next I [/CODE] | |
Re: [QUOTE=aveao;868657]displayListBox1 is the name of the listbx containing the data I need to use in my LINQ inquiry. thank you.[/QUOTE] If you want to use LINQ, I guess there is no need to store the value off the Listbox in array. [CODE=vbnet]Dim _Linq As IEnumerable = From _ListBoxItems In Me.ListBox1.Items … | |
Re: I managed to get this code, it works but it is slow. [code=vbnet] Dim _oWMI, _IP, _oPings,_PcName _oWMI = GetObject("winmgmts:") For I = 1 To 255 _IP = "192.168.0." + I.ToString _oPings = _oWMI.ExecQuery("Select * from WIN32_Pingstatus where address='" + _IP + "'" + " and ResponseTime > 0") For … | |
Re: - Google Search CutePDF - Download and Install it (it is free) - That will create a PDF printer - open the PDF File using VB and Acrobat reader - Send the file to CutePDF printer from page 1 to page 1 - Send the file to CutePDF printer from … | |
Re: [QUOTE=dinilkarun;605960]Can anybody please help me with the code to read file names inside a zip file using VB6. I am able to open(not extract) the zip file.[/QUOTE] I use this code to read information about files stored in zip [CODE] Dim oShellApp As New Shell32.Shell Dim ZipFileName As String ZipFileName … | |
Re: I have a working code in VFP, I try to convert to Vb.Net and It gives error, I got the help from Dave Kreskowiak from code project. and here it is the working code [code=vbnet] ' Add a panel to the form ' Form Declaration Private Declare Auto Function SetParent … | |
Re: [QUOTE=doraemon;821016]hi, Is there any way to rewrite this code using a loop? Does vb.net have something similer to the pointers used in C++? thank you.[/QUOTE] Try this for reducing code in your example. I don't know C++ so I cannot answer your question about pointer. [CODE=vbnet] Dim nTotal As Double … | |
Re: [QUOTE=velladurais;810489]Thank you for reply, Actually I am using file element for uploading image in html [/QUOTE] The above is Upload [QUOTE=velladurais;810489] Can any one help me , how to send the image file from html to vb.net.. [/QUOTE] The above is Download Make your mind and ask a clear question. | |
| |
Re: Hi, I had a suggestion for you. You are filling the Listview from table and function (which use table) I suggest that you create new rs which will hold all your required data and then fill the listview from the rs. hth | |
Re: Do you want fires with the finished project ? | |
Re: I did some research and here is my result #1 subitem image is no longer supported in listview for vb.net [url]http://social.msdn.microsoft.com/forums/en-US/winforms/thread/355566d9-5b17-4654-ab78-61394713c05c/[/url] #2 you can use the vb6 listview and use the reporticon [url]http://www.vbforums.com/showthread.php?t=25032[/url] #3 search google for "vb.net OAKListView" [url]http://www.codeproject.com/KB/list/OAKListView.aspx?display=PrintAll[/url] hth | |
Re: [QUOTE=sierrasoft;795478]How to move (or Duplicate) a Microsoft SQL Server Database from One Physical Server to another server (like backup) in vb.net 2.0 ?[/QUOTE] First, Move is totally different from Duplicate Move is deleting DB from first server and put it is second server Duplicate is both server having the same … | |
Re: As per the logic of execution your code, if you want to fill the array in let say button_1 click and then use the array in another sub, you have to declare the array in the form declaration not in the same sub. or else you will be able to … | |
Re: I will speak on my self when I say I did not understand how your array should work, and I guess that is the reason why you did not got an answer so far, so I suggest the following - you already post your pseudo-code so we know you had … | |
Hi Every one As I am still in the learning curve of vb.net I have 2 Question 1- Before I as start learning vb.net I know vb6 (good) and visual foxpro (Professional). In these 2 languages every thing that cannot be handled with there native command, I use win32 API … | |
Re: I am using [B]HelpNDoc Personal[/B], free and work gr8 [url]http://www.portablefreeware.com/?id=1233[/url] | |
Re: Hi, If I understand, you want to create a restaurant application and you don't have a base knowledge. I guess you have 2 solution #1 Go to a restaurant holding a paper and pen, and start asking question about how the operation flows and then create your app #2 Download … | |
Re: [URL="http://msdntracker.blogspot.com/2008/03/list-currently-opened-windows-with.html"]http://msdntracker.blogspot.com/2008/03/list-currently-opened-windows-with.html[/URL] hth | |
Re: Maybe that because there is already items in the combo, so Try to add the value you want to the combo first [code=vb.net] ComboBox.Items.Add(ds.tables(0).rows(0).item(0)) ComboBox.Text = ds.tables(0).rows(0).item(0) [/code] hth | |
Re: [URL="http://www.vbmysql.com/articles/vbnet-mysql-tutorials/the-vbnet-mysql-tutorial-part-1"]http://www.vbmysql.com/articles/vbnet-mysql-tutorials/the-vbnet-mysql-tutorial-part-1[/URL] [URL="http://dev.mysql.com/tech-resources/articles/ebonat-connection-string-vb-net.html"]http://dev.mysql.com/tech-resources/articles/ebonat-connection-string-vb-net.html[/URL] hth | |
Hi all, Is there a function in vb.net to get how many times string1 is exist in string2? I had search google and all I found is long code such as this one ( i did not test it) [URL="http://www.freevbcode.com/ShowCode.Asp?ID=1025"]http://www.freevbcode.com/ShowCode.Asp?ID=1025[/URL] Is there better way? | |
[CODE=VB.NET] Dim dr As DataRow Dim dt As DataTable Dim ds As DataSet ds = DataSet2 dt = ds.Tables("firm") dr = dt.NewRow() dr.Item("f_num") = 9999 dr.Item("f_name") = "samir" 'txt_FarmName.Text dr.Item("f_floor") = 10 'Val(txt_FloorCnt.Text) dr.Item("f_type") = "C" ' Left (com_CusType.Text, 1) ds.Tables("firm").Rows.Add(dr) [/CODE] as I am reading from an example? there … | |
Re: [CODE=vb.net] Dim swFile As System.IO.StreamWriter swFile = System.IO.File.CreateText("c:\myfile.txt") swFile.Write("MyText") swFile.Close() Dim srFile As System.IO.StreamReader Dim sTextRead As String srFile = System.IO.File.OpenText("c:\myfile.txt") sTextRead = srFile.Read() Debug.Print(sTextRead) srFile.Close() [/CODE] This is not exactly what you want, but it will give you an idea. ps: if someone see's that there is better code … | |
Re: Hi i am foxpro programmer, and I have good knowledge about vb6 and I am learning vb.net I have vb6 application, I am trying to convert it to vb.net. searching google, and ask in the forum when I get stuck. check this site [URL="http://www.java2s.com/Tutorial/VB/CatalogVB.htm"]http://www.java2s.com/Tutorial/VB/CatalogVB.htm[/URL] hth Samir Ibrahim |
The End.