Topics
-
-
- Administrators
- 3 replies
- 1.3k views
i have an open file dialog in which i always want to open the first file. is there anyway to select the first file every time without having to manually select it. does anyone know how to this?? thanks in advance guys!! Tomos
Last reply by PlausiblyDamp, -
-
- 0 replies
- 887 views
i can create the plugins when i implement one interface, but when the class that is a plugin implements two interfaces or an interface and an abstract class i get an error on this line objDll is an Assembly foreach( Type OT in objDll.GetTypes()) { the error just says "unable to load one or more of the requested types. retrieve the Loaders Exception Property for more information. any ideas??
Last reply by fguihen, -
- 0 replies
- 1.4k views
I don't like the fact that Vis Studio saves quite a lot of files under My Documents\Visual Studio 2005. This isn't the sort of thing I want to keep there. So I've changed all relevant settings that I can find under Tools/Options that referred to this to "C:\Visual Studio 2005" and copied everything over to the root directory. But I'm still getting the "My Documents\Visual Studio "folder created automatically by Vis Studio, with a sub-folder called "Back-Up". How do I prevent this?
Last reply by rbulph, -
- 2 replies
- 2.7k views
I searched google, and here, but I cant seem to find anything about converting Hex to Binary, and Binary to Hex. any help would be appreciated :)
Last reply by dcahrakos, -
Given a set of objects implementing a particular interface, what's the best way to store a user's choice of object from that set between sessions?
Last reply by rbulph, -
-
- Leaders
- 4 replies
- 1.1k views
I'm using Windows Forms 2.0 (Visual Stduio 2005) and cannot get characters within the textbox to scroll. I need displays coming out because it is a batch process and need to allow operators of the app to view the messages. I have the following code which I want to basically have show up in the window like so: line1 line 2 etc. <code> TextBox1.Text = ControlChars.CrLf & "Retrieving Search Definitions along with their respective Search Criteria." 'do some processing TextBox1.Text = ControlChars.CrLf & "Retrieved Search Definitions along with their respective Search Criteria." </code> I have the above type of code in several …
Last reply by wsyeager, -
-
-
- Administrators
- 1 reply
- 1.1k views
We have used one listbox in windows form and we bind it with datasource from database. Listbox allows multiple selected. How can we retrive value of selected items from the list box?? we tried following thing for(int i=0;i<lstEducation.SelectedItems.Count;i++) MessageBox.Show(lstEducation.SelectedItems.ToString()); But it prints System.Data.DataRowView We couldnt find the way please help
Last reply by PlausiblyDamp, -
-
-
- Leaders
- 10 replies
- 1.1k views
Hello and thank you in advance to anyone that reads this who may be able to shed some light on the problem. Now onto the problem: I have a panel (let's call it panelA) on my Windows form, and I am programmatically adding my own user controls (let's call the user control class myUC) at run-time to panelA's Controls collection. I am doing this in the event handler for a button's Click event. Let's call the button btnAdd. So each time btnAdd is clicked, I do the following in its event handler: 1) add a new myUC() to panelA's Controls collection 2) call a helper method to set the Locations of all the myUC's on panelA (the only controls on panelA are myUC's) T…
Last reply by pmacario, -
-
-
- Administrators
- 3 replies
- 929 views
in my mdi application i have some forms and i set define KeyDown event for my mainform that when user press Alt+c my calculator form come up. i want that if user focused on a textbox in a form and press Alt+c my caculator find its textbox value and get its value. it's meen that i want found last control after Alt+c pressed. thanks
Last reply by hamid, -
-
- 1 reply
- 909 views
i have an assembly loaded into my app. im trying to get at the attributes of this assembly so i have this code : foreach(Type OT in objDll.GetTypes()) { AssemblyTypeName[] custInfo = (AssemblyTypeName[])OT.GetCustomAttributes(false); } the problem is that i cant cast the return of "getCustomAttributes to an AssemblyTypeName array. i can get the return values when i use this: foreach(Type OT in objDll.GetTypes()) { Object [] custInfo = (AssemblyTypeName[])OT.GetCustomAttributes(false); } the problem is that when i try this: foreach( Object o in custInfo) { AssemblyTypeName atn = (AssemblyTypeName)o; atn.mycustomAttribute........ } i get an error here t…
Last reply by fguihen, -
-
- Leaders
- *Experts*
- 10 replies
- 2k views
Ok, what I want to do is so simple that I can't do it... I have a text box containing the value "7.5" which I need convert it to a double value: double d = 0.0 d = Convert.ToDouble(textBox.Text) [/Code] What does this do? It converts the "7.5" to "75.0", and I want it to be 7.5!!! Help? ;)
Last reply by EFileTahi-A, -
-
-
- Administrators
- 7 replies
- 1.1k views
Hi, im trying to get this code to work in vb.net but I cant seem to get it to work right, it seemed to work fine, but when using the same function from this code more then once, it throws an "Object reference not set to an instance of an object." the code takes values in a table. which is an array up to 255 to represent all hex numbers, and converts the raw hex read from a binary file into the characters represented in the table array. the code is attached because it is to long. any help is greatly appreciated. (I know its coded sloppy, but I havent had any time to clean it up, and it was written some years ago for vb6, if anyone has any tips to clean it up, …
Last reply by dcahrakos, -
-
- 0 replies
- 861 views
i set a pnal in my MDI form body. when i show a mdichild form, it will be down of it panel how can i forward my forms up the panel? i fixed the panel to my MDI form (MDIcontainer) that have a background. and i call other forms as child but i cant see them cause panel is front of them. how can i set panel backward and other forms forward? thank you
Last reply by hamid, -
-
- Leaders
- 1 reply
- 936 views
can i specify in an interface that any implementing classes must implement a custom attribute for reflection ( used to identify the assembly when its not instantiated). if i can do this with an interface, how do i do this ( what is the syntax)?
Last reply by snarfblam, -
-
-
- Leaders
- 7 replies
- 1.2k views
im playing with the plugins tutorial on this site which is great. i have one question. is there any way that i can have an identifier in a class library, and read that ( a string name or something) that i can use before the class is actually instantiated? its so i can get the names of all the various plugins, and put them in a combo box and the user can select which one they want to instantiate without instantiating all of them.
Last reply by snarfblam, -
-
-
- Leaders
- 1 reply
- 738 views
i decared a custom attribute class: [AttributeUsage(AttributeTargets.Class|AttributeTargets.Field|AttributeTargets.All, AllowMultiple = false)] public class AssemblyTypeName : System.Attribute { string itemName; public string NameOfClass { get { return itemName; } } public AssemblyTypeName(string nameOfClass) { itemName = nameOfClass; } } now, just above the class that i want to use the custom attribute i place the line: [ AssemblyTypeName("BusinessEmployee")] i read in the assembly data for the assembly that uses the custom attrib…
Last reply by snarfblam, -
-
-
- Administrators
- 2 replies
- 1k views
Hey all, I'm currently writing a VB.NET DLL to handle TCP sockets in the same way as the old VB6 WinSock control, to simplify it for myself. However, I've run into this error: "Access of shared member, constant member, enum member or nested type through an instance; qualifying expression will not be evaluated" The key code is below (a snippet from the class), and I've highlighted the line that causes the error. Public Event DataArrival(ByVal bytesTotal As Long) Private sck As System.Net.Sockets.TcpClient Private stream As System.Net.Sockets.NetworkStream Private newThread As System.Threading.Thread Public Sub New() sck = New System.Net.S…
Last reply by CryoEnix, -
-
-
- Administrators
- Leaders
- 4 replies
- 1.5k views
hi, for licensing reasons i want to limit my application to only run on one cpu! how can this be done? thx & greets natarius
Last reply by Wile, -
-
- 1 reply
- 1.1k views
Using Visual Basic.Net I have developed an application with a treeview associated with it. When the app loads it loads the treeview with all the pertinent information for both parent and there child elements. The child elements have the same displayname as the parent, except the child has the parent name and a "- child" after the parent name. I want the user to be able to left click on a child element and drag it over to another parent element in the treeview and upon release of the mouse have the child be renamed accordingly with its new parent's name. I am not quite sure how this would look in code. Any help or examples would be greatly appreciated.
Last reply by georgepatotk, -
-
- Administrators
- 1 reply
- 883 views
Hello.. I am trying to learn how to encrypt decrypt data so I can store information securley in my mssql 2k db. Nevermind.. I will just hash it :/
Last reply by PlausiblyDamp, -
-
Who's Online 0 Members, 0 Anonymous, 48 Guests (See full list)
- There are no registered users currently online