Answer Questions
Klaus Prückl Copy Local Praoblem or bug
Hi All I am using visual Studio 2005 Standard Edition. I have created a Class Library Add in using VB 2005. Then i added references with copy local= true . The program complies and run smoothly. Then i changed my copy Local =false . It complies well. But to my surprise when i run the application it complains about missing reference and that reference happens to be the one which i made copy local=false. I am sure i have given the correct references paths and so on. Could anyone explain what's going on Thanks in Advace PRash Hi again My intension was to keep all my references in its origal places without coping to the out put directory. That is the reason why i used copy local = false in ...Show All
Valery Zharkov how to save a webpage's source code in vb.net?
Hello there, i have this task to get the source code from a given url e.g. you type a url in a text box, press the button and it goves you the source code in a text file or saves it in a memory. I am sure there is some sort of method in vb.net where you can get that and save it in a memory or text file, however it seems that i am not looking in the right place. If anybody knows, could you please give me some info I use visual studio 2005 and win xp pro. The method in the source displayed by Nog ...DOES give your the exact text as a webbrowser would see it. If you want the page source of an html file, then take a look at this topic: http://forums.microsoft.com/MSDN/ShowPost.a ...Show All
banswaraboy tab character!!
Hi I was looking arround in the internet and I can’t find which character nummber is the key tab!! For example, the enter key is CHR(13), which one is the one for the tab key thank you for helping me!!! Try CHR(9). I usually just use vbtab. You might also just use ControlChars.Tab. This is a very usefule VB module. ...Show All
dork Not allowed to pick directory for a new windows application project
When I am using Visual Studio 2005 professional doing VB programming I am not able to specify what directory I want the solution to be created in when I create a new windows application. I had the express edition installed previously. Anyone have any idea why I am not allowed to specify a directory for the solution Thanks in advance. If you look in Tools -> Options -> Project and Solutions Tab -> Visual Studio Project Locations. This is the root directory for all your projects (which you can change) When you create a new project the name of the project will be the name of the folder under this Project Location root folder above. Just what I needed to know. T ...Show All
eric shih Cut, Copy, & Paste
Aight. I have been scowering the web for this answer. I want to implement the cut, copy, and paste standard functions in Windows. I want an individual to be able to paste anything into a TextBox that is in my program along with Copying and Cuting anything in it. I was wondering if there was a way to only cut & copy the selected info in my text box Thanks for any help, QWERTYtech 'copy selected text to clipboard My . Computer . Clipboard . SetText ( Me . TextBox1 . SelectedText ) 'paste clipboard text Me . TextBox1 . Text = My . Computer . Clipboard . GetText () If FileLocationTXBX.Text = Nothing Then MessageBox.Show( "There is nothign to copy." ...Show All
caveman1 insert the excel data into sql server databases
I would like to import the excel in to the sql server using vb.net. how can i do it Another question is how can i execute the DTS using vb.net Hi, your code is interesting, but I'm having errors cause my application is in vb 2005. Any idea how to have the code work in vb Here is how I tried convert it to vb 2005: dim stri as New OleDb.OleDbConnection ="Provider=Microsoft.Jet.OLEDB.4.0;Data Source="C:\ my documents\ATM_spreadsheet.xls ";Extended Properties=" \Excel 12.0;;IMEX=1;ReadOnly:= False ;UpdateLinks:=0\ " 'A Connection is created with using statement so its Dispose method will be autmatically 'called and the object will relinquish it ...Show All
Tom v E Browse Network place only, howto?
How can I set my openfiledialog just to open My Network Places(shared) Local Directory not included. If you have the sample code it'll be nice thanks I'm not sure what the deal is with you not seeing your local machine in the network neighborhood - my computer shows up when I browse my network. But if you're trying to access a shared folder on the local machine you should be able to access it directly using the local path. Do you have other version of code for Smartdevice that can only browse the shared folder, I've copy paste your code to Smartdevice app and it didnt work drives = System.IO.DriveInfo.GetDrives on SmartDevice, "DriveInfo" is not member of System.IO Based on other threads abou ...Show All
Guard How to connect vb 6.0 and access?
I am a total amateur to VB and Access...so pls help me to connect vb and access. I need step bt step instructions. I just want to learn the basic so that i can do better applications next time. i want to have only one field : 'name' in MS Access ! So pls help me you need to specify the exact name of the database you have created to be connected on your program. i get an error in this line cn.Open ""Provider=Microsoft.Jet.OLEDB.4.0;;data source='" & App.Path & "\Nwind.mdb'" i changed the NWIND.mdb to arvin.mdb where i created a field called " name" and table name is " arvin " ...Show All
tkroll Including a COM library into an VB6 application
hi, i have an COM written in VC++ , to include this COM into an VB application i had included this COM dll using References (Project->References->Browse) into the VB application, my Query is : Is this is the way to include a COM in VB6 Application or is there any other way to include the COM into VB6 Application. my COM Consists of Methods and Properties. Please clarify this issue. Sarvan, The following vbscript code show a method to create COM and hope that can help you: <% Option Explicit Dim objConvert Dim sngFvalue, sngCvaluesngFvalue = 50, sngCvalue = 21 Set objConvert = Server.CreateObject( "ConvertTemp.Scriptlet" )%> <%= sngFvalue %> degrees Fahrenheit is equivalent t ...Show All
Slauncha Man Editing Listview subitem contents
Hi all, Hope someone can help me with this. I have a Listview (details view) with 5 columns. It looks like I can only edit the first column text (with labeledit=true) as the listview control won't let me select the text in the other columns. Is this a limitation in Listview or am I missing something Should I use the DataGridView control instead Thanks in advance. Thanks Paul. You understood exactly what I meant, and reenforced my thinking that I should use DataGridView as it looks to be alot more powerful. Thanks for your time. Slimer74 wrote: Hi all, Hope someone can help me with this. I have a Listview (details view) with 5 columns. It looks like I can only edit the first column t ...Show All
irl-barse Seeing the registered sql server databases in XP
Hello guys! How can i see what databases are registered in XP, how can i do in VB to get that information on a textbox, for example thks in advance. There is an smo class for this although it's a private class. I played with it brielfy sunday and didn't have much luck with it. BUT somewhere in your system.... is C:\Documents and Settings\YOUR ACCOUNTNAME\Application Data\Microsoft\Microsoft SQL Server\90\Tools\Shell\RegSrvr.xml This is an XML file with a list of the registered servers. Good luck. Thks for the answer...but my version is Sql Server 2000. I didn't try the other solution yet... The sqlcmd file is installed with the sql s ...Show All
Jack Wong Hoe to handle multiple pages of graphics in VS2005
Hi, I'm working on a graphics program which permits the user to select a drawing from a table, add required dimensions and other information, save the data in Sql tables, then produce a PDF file, and/or print out the page. Usually only one page is required with each page having a max of 6 drawings, however, on occasions there may be more than six, so a number of pages would be needed. So far I have reached the point where I am satisfied with the result, if drawings are <= 6, however, I am completely at a loss as to how to handle multiple pages. At present I am using the Paint Event to allow the user to see the result prior to saving or printing. However the print out takes about 15 seconds. Using Print Page Event, I believe ...Show All
EddieMu Opening png files from VB
Hi I have 2 problems that I hope someone can help me with. I’m quite new to VB so I’m sorry if I’m asking a stupid question but I’m really stuck. 1) I am trying to open a png file from VB. I am using the following code to open the file but it isn’t working, I’m not getting an error but nothing is happening. Dim FileFolder As String Dim fi As FileInfo FileFolder = txtExportPath.Text Dim di As New DirectoryInfo(FileFolder) Dim FileList As IList = di.GetFiles() For Each fi In FileList If fi.Name.EndsWith( "png" ) Then fi.Open(FileMode.Open) 2) I then need to copy the picture from the file. Once the file is open ...Show All
GTrz Datagrid
How can I produce a total for values in a datagrid and them display them in a label the column index is the index of the column containing these values you wish to total up. so I may have 4 columns for example: Name Address Age Salary the ItemIndex( ColumnIndex ) would be 3 (since 0 = 1 in code) as I want to total up the Salary of all the employees in this case The code is placed wherever you wish to calculate up the totals and display it on the label. Does this help I guess you can go through each row, then get the column you wish to calculate the total from (so for each row and for a specific column using the ItemArray()) here is a pseudo: ...Show All
R Raghu C# to vb .net (2005) help
help me to convert the following c# code in vb .net (2.0) do { while (bl_counts[--incrBitLen] == 0); do { bl_counts[incrBitLen]--; bl_counts[++incrBitLen]++; overflow -= 1 << (maxLength - 1 - incrBitLen); } while (overflow > 0 && incrBitLen < maxLength - 1); } what is the meaning of while loop without curly braces in c# awaiting reply. Thanks Javfarary If windowFilled = WindowSize Then windowFilled += 1 .... etc. (possibly using the updated value of 'windowFilled' Else windowFilled += 1 'updated regardless End If prefix and postfix operations do not depend on the condition you're testing. David Anton www.tangiblesoftwaresolutions.com Instant C#: VB to C# converter Instant ...Show All
