Topics
-
- 3 replies
- 2.8k views
Hi there, I'm having a strange problem. I'm writting a file import module and the following problem has occurred. I added a form to the project that automatically gets the name form1 and later i renamed the form to frmMain. Now when I want to run the application in Visual studio I get the error Resources 'Forms\Form1.resx' and 'Forms\frmMain.resx' have the same manifest resource name 'AutoImport.frmMain.resources'. Can anybody help me out.... :confused: Cire
Last reply by Guest, -
- 2 replies
- 698 views
hi, i got a small problem with an app that i am making i made a seperate .dll for all the db access and want to put it into a seperate folder so i made a folder data in the debug folder (where the .exe is) then when i add a reference to this .dll and set the copy local to false it gives an error because it cant find the file if i set it to true it works but then the .dll comes next to the .exe and i dont want that i dont want people to see the .dlls next to the .exe so is there a way to make this work so that he finds the file or the copy local copys the file to the data folder thanks
Last reply by xmanneke, -
-
- *Experts*
- Leaders
- 4 replies
- 2k views
Hi i use this class to take a screen capture but i want to include small yellow tooltips in my screen shot how do i do that?, if you press print screen then you get em in the picture so there should be a way? public class ScreenCapture { /// <summary> /// Creates an Image object containing a screen shot of the entire desktop /// </summary> /// <returns></returns> public Image CaptureScreen() { return CaptureWindow(User32.GetDesktopWindow()); } /// <summary> /// Creates an Image object containing a screen shot of a specific window /// </summary> …
Last reply by Wing, -
-
- 1 reply
- 953 views
I need to grab a file from another companies web server with no user interaction. For example, a partner passes me a url (http://theirdomain/theirfolder/theirfile.dbf) to a dbf file. I need to grab that dbf file and write it to my web server into a predefined location. Any suggestions?
Last reply by kcwallace, -
-
- *Experts*
- 3 replies
- 1.6k views
I am using a between command in an sql statement. If I go to my SQL server manager and enter the command directly, Select * From members where DOB between '08/28/2007' and '08/28/2007', I get back all those records that are have the DOB 08/28/2007. However if I run the same statement from my code, I cannot get any of the values for the DOB 08/28/2007, if I change the between command from the 08/27/2007 and 08/29/2007 I get the records that I am looking for. Any suggestions in regards to the difference? Alternatively, is their some inclusive command I can include? Mike55.
Last reply by Nerseus, -
-
-
- Administrators
- 22 replies
- 1.6k views
I have been trying my hand at encrypting and decrypting files using vb.net and kind of succeded in encrypting and decrypting one file at a time. But I am having hard time decrypting 4 files that I need done before the form loads in an app. I am using a snippet that uses base64 that worked when I used vb6; but I am new to vb.net and have not been able to do it. In the program I am only interested in decoding the files. So let's say I have four files that I encoded using base64 with the password "abc" and now have four files a.enc, b.enc, c.enc,and d.enc that are in the prg dir. I would like to decode them back to text files to a temp directory (C:\temp) and use them till…
Last reply by PlausiblyDamp, -
-
-
- Leaders
- 3 replies
- 862 views
Hi I have this simple .NET VB command which will return the computer name: System.Net.Dns.GetHostName().Trim(".") I want to know how should I convert it to VB6? I mean getting the name in VB6? I found something that won't work: Public Declare Function gethostbyname Lib "wsock32" (ByVal szHost As String) As Long Dim localhost As String gethostbyname (localhost) localhost = localhost.Trim(".")
Last reply by dynamic_sysop, -
-
-
- Administrators
- 1 reply
- 711 views
SelectSingleNode throwing exception: Hi, I have following XML which I need to modify and invoke a http request I need to select a node but I am getting "Namespace Manager or XsltContext needed. This query has a prefix, variable, or user-defined function." Error I am trying to access the <CUSTOMER/> tag with following code: requestXmlDocument.SelectSingleNode("/SOAP-ENV:Envelope/SOAP-ENV:Body/m:MT_MaterialSearchRequest/" + XmlNodeName.CUSTOMER).InnerText = some value; Please consider following tags before giving answer: • <SOAP-ENV:Envelope • <SOAP-ENV:Body • <m:MT_MaterialSearchRequest Following is the Xm…
Last reply by PlausiblyDamp, -
-
- 3 replies
- 1.5k views
I have searched the forums but, I can't seem to find anything that speaks to this: I have a GridView in my web app that retrieves data via a SQLDataSource. When the page opens, it automatically displays all data found in a particular table. I have three problems that I suspect are all related: Problem #1: I have a vb text box and button that allows the user to enter a phrase and click search. So far, that part is working pretty good. Below is the code that is executed when they click search: Protected Sub btnSearch_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSearch.Click Me.sqlArchive.SelectCommand = "SELECT * FROM ARCHIVEHOLDING…
Last reply by shanekahkola, -
- 0 replies
- 1.1k views
i want to enable macro automatically from the c#.net, because i can read the excel file without macro. thanks!
Last reply by kbn, -
- 0 replies
- 688 views
I am using the wizard control to carryout a number of steps, quite a handy little control. I have only one problem with the control, and it relates to the valign ment of items in the main section area. How can I have everything aligned to the top left corner? Mike55.
Last reply by mike55, -
- 1 reply
- 988 views
There's an aspx web page which contains 3 dropdownlists and an image button, the dropdownlists are cascading so you select something in the first, then the second, then the third. Then the imagebutton is clicked. I need to try and interact with this webpage behind the scenes in code, can I do it somehow with WebRequest and WebResponse. I need to make a selection in the first drop down (and cause the associated postback) then the second, then the third, then "click" the imagebutton. On the resulting page is some data that I need to parse out. Can it be done? Any pointers appreciated.
Last reply by mike55, -
-
- Administrators
- 2 replies
- 681 views
Hi, Got an enumeration which i've iterated through and added its members to a combobox. Dim s As New Nevron.UI.WinForm.Controls.ColorScheme Dim schemes As Array schemes = system.Enum.GetValues(GetType(Nevron.UI.WinForm.Controls.ColorScheme)) Dim scheme As Nevron.UI.WinForm.Controls.ColorScheme For Each scheme In schemes cboPalletteSelect.Items.Add(scheme) Next When the user selects a scheme I need to store the integer value of the enum in my database, but how do I access it? cboPalletteSelect.SelectedItem only returns a string, how to I get the underlying index of the selected enum? Thanks
Last reply by PlausiblyDamp, -
-
-
- Leaders
- 3 replies
- 1.7k views
Anyone have any ideas of how to get image size (height and width), without actually loading the file into an Image object? I'm working on a small utility that needs to get some stats about the image files in a given directory and all subdirectories. I have a perfectly working and valid solution but I'm looking to speed it up at this point. There could be millions of files and each file could be up to 6mb in size. The costliest part of the application is where it loads the images into an Image object just to get the dimensions. Everything else I can get from a FileInfo object which doesn't have allot of overhead but also doesn't have anything that will give me the dimen…
Last reply by snarfblam, -
-
- 3 replies
- 7.2k views
I figured out how to determine the width of the vertical scroll bar in the datagrid view (using SystemInformation namespace) but I found no clue as to how to determine if it is displayed or not (i.e. do I have enough rows in my dgv to cause it to be displayed). I am computing column widths during the resize event of the dgv but the fact that the vertical scroll bar is present or not present comes into play. Does any one know how to tell if the vertical scroll bar is displayed in a datagridview? Thanks.
Last reply by hecktarzuli, -
-
- Administrators
- 2 replies
- 2.7k views
Hi all, It's been a while, but I'm back with another question. This time its dealing with files on my web server. I have an application that uses FTP to transfer files from a local computer to my web server. The file needs to be copied into 2 different directories. The only problem is I don't want to have to upload the file twice through the local application. Is it possible to create a web service on the server that is called from the app that will copy the newly uploaded file from one directory on the server to another? Or, is there some kind of automated task that I can create that will monitor one folder and, if it sees a new file, copy it to the second fol…
Last reply by dakota97, -
-
- 0 replies
- 990 views
All, I want to know the benefits of using EntLib's Caching Application Block and what is main difference between this Caching mechanism and (In-Proc) session management? (note that I am not asking comparing (ViewState) caching to Session State Management, but the Caching from Entlib compare to session :D ) It will be great if you can give me some link as reference!! Many thanks, Carl
Last reply by microkarl, -
- 2 replies
- 929 views
My program firsts reads a file then writes to the file. The program used to work fine on my old XP Home OS and using Visual Studio 2003. I've since changed to XP Pro and installed Visual Studio 2005. I now get the following error: "The process cannot access the file "C:\Haven.dat" because it is being used by another process." It's got something to do with Haven.dat still being in use. The relevant code is as follows: Public Function Decrypt() As Integer Dim fsRead As FileStream Dim encStream As CryptoStream Dim sr As StreamReader fsRead = New FileStream("C:\Haven.dat", FileMode.Open, FileAccess.Read) encStream = New Cr…
Last reply by MrPaul, -
- 0 replies
- 1.3k views
I set up an Oracle sequence to use when I update a database table but I cannot seem to figure out the code access/update it. Does anyone know of any examples of how to do this? Thanks
Last reply by lorena, -
- 0 replies
- 3.3k views
Hi :o I need to show a different datagridview for each row in datagridview. I need click the row and expand the new datagridview. Is it possible to set a different datagridview for each row? :confused: Please.
Last reply by chuckgtz,
-
Who's Online 0 Members, 0 Anonymous, 60 Guests (See full list)
- There are no registered users currently online