Vibhore Goyal's Q&A profile
Visual Basic How to download file with vb 6.0
hi i am getting a problem in downloading file from the internat in visual basic 6.0. e.g. i want to download file from www.sitename.com/file.pdf site where sitename is the name of the site and file.pdf if the file which i want to download . If anyone have idea so please help me.Its urgent Thanks. There are a lot of examples on the internet . Here is a little example: Const INTERNET_OPEN_TYPE_PRECONFIG = 0 Const INTERNET_FLAG_EXISTING_CONNECT = &H20000000 Private Declare Function InternetOpen Lib "wininet.dll" Alias "InternetOpenA" _ (ByVal lpszAgent As String, By ...Show All
.NET Development WSE/DIME - ResponseSoapContext.Current = <undefined value>
Why isn't the ASP.NET runtime providing a valid reference to the ResponseSoapContext object to my WebService I'm trying to use WSE and DIME to send attachments via Web Service. I created a brand new WebService project and added in the reference to WSE. I didn't modify the Web.Config file myself, but when I looked I was pleasantly surprised to see that all entries were added automatically for me (see Web.config file below). Here is the Web Service method which I've defined: [WebMethod] public int DropDIMEOnMe(string FileSpec) { SoapContext respContext = ResponseSoapContext.Current; &nbs ...Show All
Windows Forms N-Tier Architecture
I created 3 projects, 1 for the UI, 1 for business rules and 1 for data access. Now, what should I do to create 3 tier architecture from that Do I create a installation package for each one, and how do I have to modify each to allow for remoting Thanks in advance ...Show All
.NET Development Removing empty tags from XmlDocument
here's how my code starts... Dim xdoc As New Xml.XmlDocument Dim xnode As Xml.XmlNode Dim xelement As Xml.XmlElement Dim xatt As Xml.XmlAttribute xdoc.Load("Template.xml") then i'm looping through a text document adding in elements, attributes, values, etc... accordingly now, after all of those elements are added i'm wanting to remove any elements that do no have a value (InnerText) and my assumption is that something like this would work... ' remove any empty tags Dim xxnodes As Xml.XmlNodeList = xdoc.DocumentElement.SelectNodes("//records/record") Dim xxnode, xxxn ...Show All
Visual Studio Team System CurrentUIThread with ToString() and Parse() et al.
A topic came up on one of the lists today regarding when/where to use CurrentUICulture over CurrentCulture. One of things that came out of that was what to use where IFormatProvider is required. The FxCop help for SpecifyIFormatProvider ( http://tinyurl.com/n6kp6 [1]) does point out that CurrentCulture should be used in this circumstance (haven't seen this recommendation in any other place). But, FxCop does not provide any warning for the following lines of code: obj.ToString( Thread .CurrentThread.CurrentUICulture); obj.ToString( CultureInfo .CurrentUICulture ); I suggest the addition of a warning for using CurrentUICult ...Show All
Visual Basic How Can I Access Other Open Application Windows?
I am trying to write a program that interacts with another third party application window. They do not expose an API that I can use, so I have to hack my way through it. The sad thing is I have actually done this in the past (I had to process a large number of cases, so I wrote a routine that pulled case numbers from an open excel window, and then closed them out in this third party application). I just can't remember how I accessed and discovered the other open application windows! What I am really trying to accomplish is to be able to verify the appropriate application window is open, dock my application to the side of it, and read ...Show All
Visual Studio Express Editions Visual Basic, excel
Hi, I am a new VB user and I need some help. I have a worksheet with a combo box that references a list of items on another worksheet. See my code: Private Sub ComboBox1_Change() Worksheets("Sheet1").Range("A11").Value = Me.ComboBox1.Column(0) Worksheets("Sheet1").Range("B11").Value = Me.ComboBox1.Column(1) Worksheets("Sheet1").Range("C11").Value = Me.ComboBox1.Column(2) Worksheets("Sheet1").Range("D11").Value = Me.ComboBox1.Column(3) Worksheets("Sheet1").Range("E11").Value = Me.ComboBox1.Column(4) Worksheets("Sheet1").Range("F11").Value = Me.ComboBox1.Column(5) Worksheets("Sheet1").Range("G11").Value = Me.ComboBox1.Colum ...Show All
.NET Development How can I Add/Update/Delete ConfigFile in windows Application 2.0?
Could somebody help in writing a routine to Add/Edit/Delete a config File in 2.0 Lets suppose I have the following Config File < xml version="1.0" encoding="utf-8" > <configuration> <connectionStrings> <add name="Connection1" connectionString="Data Source=MYSERVER;Initial Catalog=Pubs;Integrated Security=True" providerName="System.Data.SqlClient" /> <add name="Connection2" connectionString="Data Source=MYSERVER;Initial Catalog=Northwind;Integrated Security=True" providerName="System.Data.SqlClient" /> </connectionStrings> </configurat ...Show All
Smart Device Development SaveFileDialog question!
the Save File Dialog box always display the Main memory (My Documents folder) on Location listbox. How to change it become the SD Card ( or other external storage) as default Or is there any way to disable or invisible the Location listbox i try use SaveFileDialog1.InitialDirectory = "\SD Card" but i cannot work! The result still that same. Please see this: http://groups.google.com/group/microsoft.public.dotnet.framework.compactframework/browse_frm/thread/ad094de6ccfbde28/06890630d9daaf73 q=SaveFileDialog+path&rnum=5&hl=en#06890630d9daaf73 ...Show All
Visual Studio Express Editions How do I know if count is counting up or counting down
I have a MCU (PIC) in which I'm using to send serial information (0-255 ASCII) out to my VB program. How can I find out if the data is counting up or counting down. Please keep in mind that I am new to VB so please speak slowly. P.S. Is there a way to differentiate between odd, even and positive, negative numbers. Thank you in advance. Ken Hi again, Is this question too simple or too vague. I would like to know because it has not been answered. Regards, Ken ...Show All
Windows Forms DataGridViewImageColumn - dynamically set images per grid row
hi, i want to add a picture from a db to a datagridviewImageColumn. There a two tables: table1 id, someData, someOtherData Table2 id,image I tried to read the picture in the CellFormatting event, but i need the id from table1 ( the value from the row wich will be currently created) but it seems that the value is not available at this time. Is there a way to get this value A join with the two tables is not possible, because in the second table can be more than on record and i need only the first. phil ...Show All
Visual C++ Error PRJ0002 : Error result 1 returned from 'C:\WINDOWS\system32\cmd.exe'
I keep getting the following error message every time I try to run or build a C++ application in Visual Studio 2005: Project : error PRJ0002 : Error result 1 returned from 'C:\WINDOWS\system32\cmd.exe'. It only comes up with a C++ program. VB seems to be fine. I was working on a "Class Library" when it first started so I tried creating a new project. I tried doing a build before doing anything and the error message still came up. Then I tried creating a brand new "Windows Form Application" and running it without any modifications - same error. I tried uninstalling and then reinstalling Visual Studio 2005 ...Show All
Microsoft ISV Community Center Forums Excel to PDF
I want to ask if anyone knows the code to detect if Adobe Distiller is installed on the machine, using VB. I'm new at this. All I know I need to write codes to see if distiller exist. I have further questions: Does Distiller comes with Adobe Reader, or do you need to have Acrobat to have Distiller I'm not working with the server version of Distiller. Do I need a Printer driver that converts Excel spreadsheet to PostScript and then call Distiller to convert to PDF Can Distiller be located on a Shared Network, where one can call it by code It's a bit confusing, but what I want is to use Distiller to convert Excel spreadsheet to PDF, usi ...Show All
Visual Basic for membership sir
HELLO! I AM NITESH MENON AND I HAVE SOME QUESTIONS. I HAVE BEEN USING VB FOR 3 DAYS AND NEED HELP. QUESTION 1- When using a web browser is there a way to go back to the previous page in VB (like back in internet explorer) QUESTION 2- When using a web browser is there a way to go back to the next page in VB (like forward in internet explorer) QUESTION 3- How can I display another form other than the main one. QUESTION 4- How do I save a configuration so when a user uses the program again he has the same settings. QUESTION 5- How do I make a web browser the default one QUESTION 6- How do I make an option menu. QUESTION 7- How ...Show All
Visual Studio Express Editions Shortcut Keys
How can a make a shortcut key combination ( ie ctrl+shift+q) open a form Assuming you mean at runtime... just for note though... traditionally a shortcut key is a keystroke that works inside of the app... like alt-f bringing up the file menu... what you are looking for is a keystroke that would be able to trigger an event regardless of what app is running... for that you are looking more into the realm of setting up a hotkey. Take a look at this CodeProject article for some code and an explanation on how to do it. ...Show All
