Topics
-
-
- Leaders
- 2 replies
- 1.9k views
Hi, I have 2 questions: 1. I still didn't understand when I should use "" and when I should use Nothing? For example, when checking the value of a text box or getting value from registry or etc... for which case I should use each one? 2. I also didn't found out the difference between <> and IsNot yet! For example when comparing 2 values or comparing 2 checkboxes or etc... When I should use <> and when I should use IsNot?! Many thanks for your help to help me learn:)
Last reply by snarfblam, -
-
-
- Administrators
- Leaders
- 14 replies
- 5.9k views
Hi As described in the Topic I'm having some problems with changing the Progressbar (used in a statusstrip). The DoWork sub calls a Downloadfunction, where while it downloads, the progress percentage is calculated and "reported". Then the ProgressChanged Sub is called and the percentage is assigned to the progressbar value, but nothing happens, not even an error. I've copy-pasted an example from die MSDN and it worked perfectly, but I can't find the differences which would mine not work. Relevent Code: Public Sub GetAddons() LogEvent("Getting available ace addons...") THArgument.DownloadType = 0 THArgument.Arg = "http://wowace.com/…
Last reply by dynamic_sysop, -
-
- 2 replies
- 1.6k views
How do I get hold of the properties of an dll? I want to know its name, the date it was created, and the Company information, all as shown in the Properties dialogue which you get by right-clicking on it in Explorer. It's a plug-in, so I'm finding it with code like below, which means that my starting point is an Assembly object. <vb> Dim strDLLs() As String, intIndex As Integer Dim objDLL As Assembly 'Go through all DLLs in the application's directory. strDLLs = Directory.GetFileSystemEntries(Path.GetDirectoryName(System.Windows.Forms.Application.ExecutablePath), "*.dll") For intIndex = 0 To strDLLs.Length - 1 …
Last reply by rbulph, -
-
- Leaders
- 5 replies
- 1.4k views
Hi, I am nearing completion of a project in Visual Studio C# 2005 Express, and wish to distribute the software. Can anyone tell me if there are any restrictions on whether you can distribute an application created in an Express edition, and also whether you are able to distribute the .net 2.0 Framework with it or whether that has to be downloaded via the web. I have read conflicting reports for both questions, and one suggested that you needed Standard Edition as a minimum before you can distribute an application. Thanks for any advice you can offer. Sparky.
Last reply by mskeel, -
-
- 1 reply
- 4.9k views
See this page http://www.dfes.gov.uk/cgi-bin/inyourarea/dist.pl How can I programatically put two postcodes into the form and then submit it so I can parse the HTML response and get the distance? Thanks
Last reply by MrPaul, -
- 1 reply
- 1.2k views
I can't get this to work. Object Whatever implements interface IWhatever, this interface is used as the proxy in the GUI (web app) to talk to the concrete implementation on the app server. Using Console applications this works fine. I'm using WKO and configuring via remote, I'm using the TCP channel. When trying to use a web application as the client, the object is created of coarse (WKO isn't created on service host until first method is called) and this is where IIS freezes. Since everything works fine in Console test apps, I know it must be some sort of security and/or configuration issue. I've never had to deal with remoting outside of windows applicat…
Last reply by LostProgrammer, -
- 1 reply
- 1.3k views
I have the treeview added to the page at design time In runtime, I add a bunch of nodes to it Now, I want to select a node by firing the SelectedNode_Changed event It always finds the first node as selected Am I missing something here?
Last reply by LostProgrammer, -
-
- Administrators
- 1 reply
- 1.4k views
Hi, In VB6 I was getting the users IP by placing a winsock control on the form and : Winsock1.LocalIP Now in .NET how can I get the IP address of machine? Thanks:)
Last reply by PlausiblyDamp, -
-
- 1 reply
- 1.3k views
I want to reference a CLR type in an xsd file. Is there someway to reference the schema that would contain the the type? Is it available @ schemas.microsoft.com? something like: <xs:schema id="Schema1" xmlns:data="http://tempuri.org/Data.xsd"/> <xs:import schemaLocation="Data.xsd" namespace="http://schemas.microsoft.com/clr/nsassem/System.Data" /> <xs:element name="Command" type="data:SqlCommand"/> any thoughts, ideas, leads appreciated. Thanks -lp
Last reply by LostProgrammer, -
- 0 replies
- 951 views
My list sometimes doesn't update the values shown when I change the list.SelectedIndex or list.SelectedItem values, while other times this works fine. Any clue as to what is going on?
Last reply by IceAzul, -
-
- Administrators
- 1 reply
- 999 views
I am writing an inventory application that uses MS access as a backend. I am having no problems accessing and obtaining information from the database through my program except in one spot. This is the code: Dim Pro As New OleDb.OleDbCommand Dim Read2 As OleDb.OleDbDataReader Dim Con3 As New OleDb.OleDbConnection Dim ID3 As New OleDb.OleDbCommand Private Sub CmbBoxProducts_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CmbBoxProducts.SelectedIndexChanged Con3.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\subdir\database.mdb;Mode=ReadWrite;Persist Security Info=False" If txtBoxWatch.text …
Last reply by PlausiblyDamp, -
-
-
- Leaders
- 2 replies
- 3k views
I have been able to read existing Metadata embedded in images via C# using PropertyItems which is readonly. I have been unable to find a way to add or alter the metadata that might be missing. For example I have some scanned images without the DateTime metaData. How do you add to Metadata to a image?
Last reply by forgottensoul, -
-
-
- Leaders
- 2 replies
- 989 views
I use API a lot.. But only because .Net doesnt have functions to do what some of the API functions do. Or if they do have a function similar in .Net 1.0 some of those functions were slower than the API version. Does anyone know if they increased the amount of functions available in 2.0 so that you need less API? Keep in mind I use these functions because I interact with other programs on my desktop.. these are not the same program as my program. Basically Im controlling things like Notepad with my program.. this is why I cant use some of the more basic 2.0 functions. Here's some example of API functions i curently use: MoveWindow GetPixel mouse_event keybd_event…
Last reply by NeuralJack, -
-
-
- Administrators
- Leaders
- *Experts*
- 17 replies
- 3.9k views
In .NET 1.x, I got back an IAsynchResult (I think) object when I called BeginMethodName. I could hold onto the handle until I really needed the data, then call a Wait method to make sure the webmethod returned (or errored out). In .NET 2.0, they've implemented the Event-based Asynchronous Pattern. In this pattern, I hook up an event handler and then call MethodNameAsync. My trouble is, I can't figure out how to wait for method to finish from within WinForms. The scenario is this: Form1 is a search form that uses a static "Lookups" class. The "Lookups" class exposes a method that makes an asynchronous webmethod call to get some standard lookup tables from the DB. …
Last reply by Nerseus, -
-
-
- Administrators
- *Experts*
- 7 replies
- 1.6k views
Hi, I am working with c#.net after using VB6, and apart from a couple of problems it's not been bad, but I just came across this problem. I am trying to set the value of the textbox : TextCounter.Text = Properties.Settings.Default.SoftwareCounterValue.ToString(); Error:"Cross-thread operation not valid: Control 'TextCounter' accessed from a thread other than the thread it was created on." Yet, I can set the value of the box to 0 when I click a button, which I was assuming was also on a different thread - is this not the case? If you have any ideas then that would be great - I seem to have more questions than answers at the moment. Cheers, Sparky.
Last reply by Nerseus, -
-
-
- Administrators
- 2 replies
- 1.1k views
Hi, We have plenty of coding convention rules, we cannot check using FxCop. I mean rules that are related to comments or regions in our source code. Do you know tool, we can use to check such rules? What are your experiences with problem like this? cyberjoe
Last reply by PlausiblyDamp, -
-
- 4 replies
- 1.9k views
I wasn't sure where else to put this question.... Here is what I am wanting to do. I have a Blog feed of which I am wanting to read ..... Here is how this blog works... its an artist blog... I'm the artist.... I am wanting to read the xml feed at http://mbstudiosdailypaintings.blogspot.com/atom.xml and within each post on the blog is a image ... I am wanting to get the image and add it to a gallery to be viewed on a web page. So each new image automatically add it to the gallery. vbMarkO
Last reply by GrenadeFX, -
-
- Leaders
- 10 replies
- 2k views
Could someone please clarify to me how the build output paths in http://www.xtremedotnettalk.com/showthread.php?t=49597&highlight=build+output+path work? I would like to have the exe and dlls in the same folder on the user's computer, so how do I go about mirroring this as I develop the application and plug-ins? Do I need a folder especially for building both the host exe and plug-in dll? How does this tie in with the need to have both a debug and a release version of whatever I build?
Last reply by rbulph, -
-
-
- Leaders
- *Experts*
- 5 replies
- 1.8k views
Hi I was using this in VB6: Private Sub SubjectTextBox_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles SubjectTextBox.KeyDown On Error Resume Next If (KeyCode = vbKeyZ) And (Shift = vbCtrlMask) Then SendKeys("^Z") End If If (KeyCode = vbKeyX) And (Shift = vbCtrlMask) Then Clipboard.Clear() Clipboard.SetText(Subject.SelText) Subject.SelText = "" End If If (KeyCode = vbKeyC) And (Shift = vbCtrlMask) Then Clipboard.Clear() Clipboard.SetText(Subject.SelText) End If If (KeyCode = vbKeyV) And (Shift = vbCtrlMask) …
Last reply by snarfblam, -
-
- 0 replies
- 711 views
Using Crystal Reports I want to display a page per record in the database the report is pulling from, I just have no idea how to accomplish this. Any help offered would be greatly appreciated.
Last reply by lothos123452000,
-
Who's Online 0 Members, 0 Anonymous, 50 Guests (See full list)
- There are no registered users currently online