Topics
-
-
- Administrators
- 4 replies
- 2k views
I started a new VS 2008 solution today, and I can't for the life of me figure something out. I've created two projects in the solution, a windows client, and a webservice. The windows client calls the webservice passing it xml documents that are parsed and then logged into a database. The problem is that the web service can't seem to find the web.config file. Calls to the application settings return nothing. (System.Configuration.ConfigurationManager.AppSettings.Get("SQLServer").ToString) What's even weirder is the calls to the Connectionstrings return something else. System.Configuration.ConfigurationManager.ConnectionStrings(0).ConnectionString This: …
Last reply by samsmithnz, -
-
-
- Administrators
- 1 reply
- 683 views
I have an array here: Private AttachName() As String In my code probably I will add something to my array, and possible that I don't! However, how can I finally find out if the AttachName has anything inside or not? If AttachName.Length = Nothing Then ... I get error: 'System.NullReferenceException' What should I do?!
Last reply by PlausiblyDamp, -
-
-
- Administrators
- 2 replies
- 1.2k views
I am writing a image file to a stream and then add this to a picturebox using the following code: ' Converts comment image in zip file to bmp Dim bmp As New Bitmap(New System.IO.FileStream("C:\Orig.bmp", FileMode.Open, FileAccess.Read)) Me.pictureBox.Image = bmp The problem is that when I try to delete the file it gives me an error that the file is still in use. What I need to know is how I can release the image file. Thanks in advance Simon
Last reply by Nate Bross, -
-
- 2 replies
- 1.3k views
I have managed to create an application that allows drawing of items on a screen capture, however some flicker appears when drawing items. The first item when drawn does not flicker but then after that any item when being drawn flickers, I have been trying to solve this for some time now with no luck. Would someone be able to help me with this? I have attached the whole project so you can see exacually what I am doing. Download from this link http://www.ticodi.com/temp/orig.zip Thanks in advance Simon
Last reply by Nate Bross, -
- 4 replies
- 927 views
Whenever an application is given a MenuBar and the "Standard Items" are included, there is an Edit section that includes "Redo," "Undo," "Cut," "Copy," "Paste," and "Select All." Generally, this would be applicable to text editing controls, but I've heard a little about people using them with objects. I generally do very basic coding (VB or C#), and I've never dealt with any of this. Related to this ability is the ability to accept "Drag-n-Drop," or it seems like it fits into the same voodoo category to me. Where could I find something simple on how to (redo, undo, cut, copy, paste, select all, dragNdrop) with objects? Are events typically set up that enabl…
Last reply by mskeel, -
-
- Administrators
- 4 replies
- 8.2k views
We have an ASP.NET web application (C#) that copies videos from a CCTV truck to a Linux server. What I am trying to do is convert the .AVI videos(which is how they are created on the truck) to .WMV in my C# code using Windows Media Encoder. I have a virtual directory to the truck location of the videos. I also have a virtual directory created to the Linux box. The application resides on a Windows Server 2003 and I am using VS 2005, .NET framework 2.0. The method calling the conversion function uses impersonation and all virtual directories are set up to connect with the impersonated user. When I use the application to copy the videos without converting, it works perfectly…
Last reply by clinnebur, -
-
-
- Administrators
- 4 replies
- 2.6k views
Hi, I need some help regarding a web services client that I am coding in C# .NET. The web service returns a dataset from a database table as System.XML.XMLElement over SOAP. In the client code, I stored the result in a variable of type System.XML.XMLElement, and convert it to a dataset but it doesen't show any rows returned whereas I can see data getting returned in the packet trace. Here's how I am trying: System.Xml.XmlElement resultCode; resultCode = GwareWebInt.ReadIVRConfiguration(locationID); System.Xml.XmlNodeReader xnr = new XmlNodeReader(resultCode); DataSet d…
Last reply by PlausiblyDamp, -
-
- 0 replies
- 798 views
Hi, I'm making a program that traces urls/IPs and show the results graphically. The problem is... I need to make a traceroute from a router, so i have to telnet the router. once in the router, i need to type the username and the password.. then, i have to execute the command traceroute ("www.google.com" i.e.).. All these in command-line... Public Class Telnet Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim myProcess As Process = New Process() Dim s As String myProcess.StartInfo.FileName = "cmd.exe" myProcess.StartInfo.UseShellExecute = False myProcess.Star…
Last reply by nakib, -
- 3 replies
- 4.8k views
Greetings, I'm not quite sure whether I got it right on the title. I'd like to make a function say Paint_me and get a colour as parameter. However I don't want to pass it as an integer (1,2,3..) or string ("blue", "white",...). My ultimate goal is, when the user calls the function and tries to input the colour, a list like that will be presented to him: vbBlue vbRed ... How is this done? Tried something with Structures but didn't manage it to the end. Thanxs in advance
Last reply by Harkon, -
- 2 replies
- 887 views
The following code creates a new command button, at run time, named btnTest1. How can i add events(like btnTest1_click) to this object? How can i add code that hadles the events for this object? :( Dim myButton As Button = New Button() Me.Controls.Add(myButton) myButton.Name = "btnTest1" myButton.Size = New Size(45, 45) myButton.Location = New Point(10, 10)
Last reply by JumpyNET, -
-
- Administrators
- 1 reply
- 2.9k views
VB.NET 2008-FORM: Getting a window to forground while only knowing its partial name. Hi guys :) I have the name of an application, it starts with ACI and I want to set it to my forground in order to sendkeys some stuff to it. Now I've read a BUNCH of stuff and could not come up with a solution on my own. This is the code I have for now, a bunch of stuff compiled together [most of the code I've seen out there and help, was provided by someone named Herfried - so 95% credits of what I have here should go to him] :] [[[On the side if you could point me in the right direction, how do I send text to a textbox who's HWND I know?]]] Thanks in advance, Lov…
Last reply by PlausiblyDamp, -
-
- 1 reply
- 1.8k views
Hi eveyone, I've been working on this for days now and am frustrated... I keep getting an exception unhandled error "EndOfStreamException." It says "Unable to read beyond the end of the stream." What this code is supposed to do is that read a binary file but tis binary file has 4 byte floating-point values in it. What I am trying to do is just read these floating point values and write them to file... I would really appreciate it if someone could help me out. Thanks. Dim s1 As FileStream 'Load file 1 Dim s3 As FileStream 'Save output If System.IO.File.Exists(TextBox19.Text) Then System.IO.File.Delete(TextBox19.Text) …
Last reply by Arokh, -
- 0 replies
- 903 views
I'm need a solution that behaves something like this: (A) application (outside company) - this application is the front-end used as user data input (lots of webpages, one for each specific Report) - this application should use one common Web Service which hosts Crystal Reports and exports them (B) application (my Web Service) - hosts all Crystal Reports (at first 30, then should be an option to add more) - primary source for reports is DataSet or Class object (created with XSD.exe on DataSets for each report) - it exports Crystal Report as RPT file which is then used in application C. © application - an utility (DLL) I created that is set into client GAC whic…
Last reply by IxiRancid, -
- 1 reply
- 862 views
Hello, I can obtain the value/text of a splitbutton dropdown menu item by: toolstripbutton1.dropdownitems(0).text Can someone help me obtain the value of the menu item a user has clicked at the time the user clicks it. A simple example would be to populate a textbox with the value/text or to assign the value to a variable. For some reason, this control appears to not use the same method as a standard dropdown. Using VS 2005 and VB .net. Thanks as always. -gk
Last reply by gkiril, -
-
- Administrators
- 7 replies
- 5.7k views
Hello, I've been searching high and low for this answer, but not having any luck. Can someone provide a simple example (VB .net) of saving a value to a text file, populating the dropdown menu with that value, and then reloading that value from the text file when the application is closed and restarted? This code can be executed by clicking a button on a blank form with a splitbutton. Separately, I know how to add items to the splitbutton control, and how to write text to a text file. However, I do not know how to write data in the necessary format to a text file for a dropdown control or how to call/retrieve that information in the form load event. Please help. A…
Last reply by gkiril, -
-
- 0 replies
- 721 views
Does anyone know how to programmatically get the Font Dialog Box that opens in Word? I am currently using the vb.net FontDialog but it is scaled down from what you see in Word. I would like more features. Thanks:)
Last reply by kservice, -
-
- Administrators
- 3 replies
- 1.3k views
Hello, I'm hoping someone can help. I have an html document with three frames, topFrame, middleFrame, and bottomFrame. I have the document loading in a webBrowser control in VB .net 2005. I have a button on my form and when the button is clicked, I want to add text to a text box in the bottom frame. All documentation on MSDN and what I have found online shows that the following simple code should work, but I get an error message when the button is clicked. Please help if you can. Here is the code I am trying to execute: Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim hElement As HtmlE…
Last reply by gkiril, -
-
-
- Administrators
- 4 replies
- 844 views
Let's say i have a class that is derived from PropertyDescriptor public class MyProp : PropertyDescriptor { //implement all abstract methods } why would something like the following return an undefined value or need to be cast in the first place since MyProp "is a" PropertyDescriptor and PropertyDescriptorCollections contains a collection of PropertyDescriptors public class SomeClass { private int id=0; private string customer=""; public SomeClass() { foreach(PropertyDescriptor p in TypeDescriptor.GetProperties(this.GetType())) { //MyProp mP = p;//this won't compile…
Last reply by barski, -
-
- 2 replies
- 878 views
I am using the following code to filter my datagrid's results. The batch number is entered in a text box and then on the keyup event, it fires off the following code: Dim Hold_Search As Integer Dim Hold_Field As String Hold_Search = Me.txt_BatchNumber.Text Hold_Field = "BatchNumber" DvBatch.RowFilter = Hold_Field & " = " & Hold_Search DvBatch.Sort = Hold_Field It does what it is supposed to do, but the problem is I really don't want the data 'filtered'. What i want is for the datagrid to scroll to the valid row and then keep scrolling based on the client's input until the desired value is reached - b…
Last reply by lauriemc, -
-
- Administrators
- 3 replies
- 1.7k views
I have a DataBound DataGridView on a form that ties into our company's records of all employees, both past and present. We want the DataGridView to include all of the employees, but also include the ability to view only active or only past employees. I have tried hiding individual rows like so: DataGridView1.Rows[i].Visible = false; // C# syntaxBut, the compiler will not allow this. Does anyone have any other ideas? Can this be done with a DataBound DataGridView?
Last reply by joe_pool_is, -
-
Who's Online 1 Member, 0 Anonymous, 49 Guests (See full list)