102 Posted Topics

Member Avatar for hery

[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 …

Member Avatar for samir_ibrahim
0
6K
Member Avatar for Clueless86

[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 …

Member Avatar for samir_ibrahim
0
201
Member Avatar for scooby36

[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" ?

Member Avatar for scooby36
0
169
Member Avatar for nileshgr
Member Avatar for Arunabh Nag

[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

Member Avatar for samir_ibrahim
0
99
Member Avatar for samanaonline

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 ... ?

Member Avatar for samanaonline
0
631
Member Avatar for laks_samy

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 …

Member Avatar for samir_ibrahim
0
190
Member Avatar for babbu

[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 …

Member Avatar for kvprajapati
0
523
Member Avatar for witecloner

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 …

Member Avatar for witecloner
1
305
Member Avatar for kimbula...
Re: SQL

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')

Member Avatar for samir_ibrahim
0
123
Member Avatar for gibbshsu

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]

Member Avatar for gibbshsu
0
425
Member Avatar for sonia sardana

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, …

Member Avatar for samir_ibrahim
0
1K
Member Avatar for awo

[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 …

Member Avatar for samir_ibrahim
0
136
Member Avatar for samir_ibrahim

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 …

Member Avatar for samir_ibrahim
0
287
Member Avatar for morb

[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?

Member Avatar for morb
0
101
Member Avatar for RobinTheHood

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 …

Member Avatar for samir_ibrahim
0
116
Member Avatar for BillWebber

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 …

Member Avatar for BillWebber
0
154
Member Avatar for ad65222

[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 …

Member Avatar for samir_ibrahim
0
172
Member Avatar for samir_ibrahim

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 …

Member Avatar for samir_ibrahim
0
91
Member Avatar for Sylenas

[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 …

Member Avatar for Teme64
0
2K
Member Avatar for hkarthik

[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

Member Avatar for samir_ibrahim
0
104
Member Avatar for neutralfox

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 …

Member Avatar for Teme64
0
300
Member Avatar for VIPER5646

[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] …

Member Avatar for VIPER5646
0
172
Member Avatar for DAWNIE
Member Avatar for Teme64
0
323
Member Avatar for bigtreeworld

[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]

Member Avatar for bigtreeworld
0
1K
Member Avatar for dot_net_rookie

[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]

Member Avatar for samir_ibrahim
0
105
Member Avatar for aveao

[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 …

Member Avatar for samir_ibrahim
0
75
Member Avatar for Zandermander

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 …

Member Avatar for Zandermander
0
3K
Member Avatar for danish_k12

- 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 …

Member Avatar for vb5prgrmr
0
790
Member Avatar for dinilkarun

[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 …

Member Avatar for amccaul1976
0
1K
Member Avatar for Pacman21

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 …

Member Avatar for Pacman21
0
109
Member Avatar for doraemon

[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 …

Member Avatar for doraemon
0
200
Member Avatar for velladurais

[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.

Member Avatar for samir_ibrahim
0
139
Member Avatar for vasunttfshimoga
Member Avatar for jaasaria

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

Member Avatar for samir_ibrahim
0
171
Member Avatar for pjacquez68
Member Avatar for sonia sardana

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

Member Avatar for samir_ibrahim
0
177
Member Avatar for sierrasoft

[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 …

Member Avatar for samir_ibrahim
0
212
Member Avatar for asif786

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 …

Member Avatar for samir_ibrahim
0
3K
Member Avatar for asif786

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 …

Member Avatar for samir_ibrahim
0
167
Member Avatar for samir_ibrahim

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 …

Member Avatar for samir_ibrahim
0
152
Member Avatar for Gizmo89

I am using [B]HelpNDoc Personal[/B], free and work gr8 [url]http://www.portablefreeware.com/?id=1233[/url]

Member Avatar for Gizmo89
0
77
Member Avatar for bharanidharanit

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 …

Member Avatar for samir_ibrahim
0
83
Member Avatar for malg

[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

Member Avatar for samir_ibrahim
0
111
Member Avatar for manoj_582033

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

Member Avatar for samir_ibrahim
0
143
Member Avatar for kv79

[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

Member Avatar for Ramy Mahrous
0
139
Member Avatar for samir_ibrahim

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?

Member Avatar for samir_ibrahim
0
209
Member Avatar for samir_ibrahim

[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 …

Member Avatar for chan_lemo
0
144
Member Avatar for Ixeman

[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 …

Member Avatar for Ixeman
0
217
Member Avatar for hawisme000

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

Member Avatar for Jx_Man
0
78

The End.