Topics
-
-
- *Experts*
- Leaders
- 13 replies
- 3.4k views
http://msdn.microsoft.com/vstudio/express/support/faq/default.aspx#pricing
Last reply by joe_pool_is, -
-
- 3 replies
- 1.6k views
Hi All, I've asked around and no-one seems to be able to answer me!... Here's my question(s): All in C#: Abstract collection based on an arraylist "ab_collection.cs" Abstract entity object which stores ID and Description "ab_entity.cs" Real collection based on abstract collection "number_of_people.cs" Real object based on abstract entity "person.cs" Question 1: If I put an add method on my abstract collection public void Add(ab_entity entity) { addme(entity); } When I inherit the method within "number_of_people" will it loose any of my entity if I pass a "person" object to it. Question 2: If my "person" entity has additional storage of Firs…
Last reply by bri189a, -
-
- Leaders
- 4 replies
- 3.1k views
I have a VB6 application that writes a 2 dimensional array (40,1024) to a file using FileNum2=freefile Open FilePath For Binary As #FileNum2 Put #FileNum2, , VoltArr Close #FileNum2 Where VoltArr is a 40 x 1024 array of double type. I know need to open that file using .NET 2003. I need to load the entire array at once just like I did in VB6 using Dim FileNum As Integer FileNum = FreeFile Open FName For Binary As #FileNum Get #FileNum, , ImageArr 'Populate array Close #FileNum Can someone point me in the right direction?
Last reply by snarfblam, -
-
-
- Leaders
- 3 replies
- 1k views
I have a list of button names that exist on my form in my DB, I have added the functionallity for the admin user to determine what buttons they wish to see i.e. the DB has column for the name and another column specifying true or false. What I would like to be able to do is build the VB code up form the DB. An example code (not correct just to give you an idea) Do While myReader.Read ' get button name from DB dim buttonName as string = myReader("columnName") ' get button is visible (true or false) from DB dim buttonVis as boolean = myReader("columnVis") ' This is where I want to dynamically build the vb code using the above ' values me.button…
Last reply by Cags, -
-
- 2 replies
- 2.1k views
I have a program that draws on my desktop...but I want it so after 10 seconds the line goes away. I thought ReleaseDC(hWnd, hDC) would do it but it didn't i have to put like a window ontop of it or something then it will go away. and My line drawing is on a loop and in a timer. I actually have the drawing on a hotkey...so when I press PrintScreen, it will draw, but I want it to after 10 seconds it will vanish...
Last reply by Biodegradable, -
- 7 replies
- 3.1k views
Hi all, What would be the pattern for finding the last comma in a line of text? Ex: Brown, Brown, Brown, Brown, Brown, Brown Thanks a bunch! ;)
Last reply by IngisKahn, -
-
- Leaders
- 2 replies
- 2k views
The .Net framework has a class, System.Windows.Forms.NativeWindow, which provides low-level encapsulation for a window. I would like to use the class to override a window's WndProc function. I would need to inherit the class in order to override the protected method WndProc(). The problem is that I need to use this class for a pre-existing window from another program, which means that I can not use the constructor, but instead I need to use the NativeWindow.FromHandle method, which will not return my inherited class, but rather a NativeWindow, hence my override will not be used. There is a function AssignHandle, but I used this function and my WndProc is not being called…
Last reply by snarfblam, -
-
-
- Administrators
- 10 replies
- 1.6k views
What is the best way of getting out of a nested loop (using c#), I know that you can exit a single Loop with the break; command, for(int i = 0; i < iCount; i++) { if(RequirementMet) // situation on which I want to exit break; } but I'm unsure of the best way of exiting a nested loop, this is the way I'm currently doing it. for(int i = 0; i < iWidth; i++) for(int(j = 0; j < iHeight; j++) if(ReqruirementMet) goto BreakLoop; BreakLoop: Is this the best approach, I remember reading somewhere that the goto command isn't particularly good coding practice, but I don't know of any other obvious way to exit.
Last reply by bri189a, -
-
- 0 replies
- 1.4k views
With generics in 2.0 it's easy to databind the custom object collections to controls that support databinding. However I have hit a snag. If you databind a dataset to a DataGridView control which has two tables with relationships setup between them, the DataGridView will generate a little "+" next to the row which will let you drill down into the actual details of the child table (you can see this functionality in the XML editor in VS). However, I have a generic collection of custom objects for which I want to display the same or similar functionality and so far I have not figured out a solution for this. I was hoping for an interface that would let me specify the …
Last reply by DimkaNewtown, -
I can add a Sub Main to a module as a start point for the application, as I would have done in VB6, but I can't figure out how to specify that this is where the application is to start. The listbox under Application Properties/Application/StartUp Form only allows me to select forms. So how do I do this?
Last reply by rbulph, -
OK, I got the WIA thingy working etc. Now I have a problem. My app scans predefined forms which contain a small square for a signature and a paraf. Signature is divided from the paraf with a thin black line. here's how the process goes: 1. scan a picture with a WIA compatible scanner 2. save entire A4 image in TIFF 3. again with WIA I crop the abovementioned square + save the Tiff and delete the original one, and load the crop into PictureBox 4. then I do this Private Sub pictureBox1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Dim g As Graphics = e.Graphics g.FillRectangle(System.Drawing.Brushes.White, 529, 0, 7, Pi…
Last reply by Cags, -
- 3 replies
- 2.5k views
This is probably answered somewhere already, but I was unable to locate what I needed. I want to have my application start when booted, and I do this by putting a registry value in the Software-Microsoft-Windows-CurrentVersion-Run. Right now, I always put this value under HKEY_LOCAL_MACHINE but I want it to go there only if the user selected to install my application for everyone. If they selected to install only for the current user, then I want this key to be added in the HKEY_CURRENT_USER. How can I base this on the users selection?
Last reply by grip003, -
- 1 reply
- 1.1k views
i keep having a concurrency violation when i try to update a row in my database. im adding the data via a form, and when the user clicks a button it is added to the database, but when i go back to the form to edit the data i get the concurrency violation. ive had it for a few days now and cant fix it. anyone have any ideas? heres where i add a row to the dataset. the recordcreated is a boolean to tell if the record needs to be created, or if it exists and needs to be edited instead if(recordCreated == true) { ds.Tables["Patient"].Rows[ds.Tables["Patient"].Rows.Count-1].BeginEdit(); ds.Tables["Patient"].Rows[ds.Tables["Patient"].Rows.Count-1]["first_name"]…
Last reply by FZelle, -
- 0 replies
- 3.7k views
hi, i'm taking a discrete class and im also taking computer science 1, so therefore i am not qualified to write the programs that we have for projects, this is the last one and i managed to somehow get the other one done, but does anyone have any suggestions please on how to do this, i am somewhat c++ illiterate since we just covered functions. i am going to be doing this in visual c++, maybe :confused: i attached the file with the project, i would prefer to have replys sent to dstone2323@hotmail.com but anyway i can get any help i will be greatly appreciative. i have to get this done by 12/7, thanks.... the other people in the class (who are very near graduating) said …
Last reply by dstone2323, -
- 2 replies
- 1.1k views
I have a form that loops through a file that could have 100,000 lines in it. Each line gets parsed and imported into a database, and functions perfectly. Unfortunately, it can take a significant amount of time to run the code. I need to give the user some sort of indication that the application is functioning. I added a simple counter that updates after every record is loaded into the database, i.e.: Label2.Text = "Loaded " & Cnt & " of " & RowCnt & " Records" Label2.Update() The label gets updated perfectly for approximately the first 1000 records. After that the form seems to lock up and appears to be "Non-Responsive". However, the app i…
Last reply by kcwallace, -
- 2 replies
- 1.6k views
All, In the code below, I display a Name in the left column next to the right column where the doc type in the right column is Typ1. But my real need is to display the name (DataItem.Name) only for the first row and not because it corresponds with doc type Typ1. I've begun to learn a little bit about DataGridItems but need to figure out how to display field values conditioned upon being in a specific row, as in this case, the first row only. Can anyone show me how that would look? I will also need to know how to display the name (DataItem.Name) in place of "Search Results" between my HTML header tags. how can this be accomplished? Thanks all!! = = = = = &…
Last reply by ScottForgot, -
- 0 replies
- 1.2k views
I work on a little project that load's mesh data from a custom txt file this code give me the access violation exception in Mesh.drawsubset(0) line. I am using directx 9.0c april 2005 and vs2005. any ideas? using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using Microsoft.DirectX; using Microsoft.DirectX.Direct3D; using System.IO; namespace MeshDemo { public partial class Meshes : Form { private float xRotate = 0; private float yRotate = 0; private float zRotate = 0; private float h = 0; …
Last reply by mmmobasher, -
- 0 replies
- 2.5k views
Hi, I'm running into a problem when trying to use class interfaces from this library called Audiere. The library was written in C++ as virtual functions that were COM compatible. To use the interface you call a function in the DLL that returns a pointer to the interface (Factory?). They are bindings for Purebasic and Delphi that use the interfaces directly. I made a binding for the D language using interfaces that inherited from the IUnknown interface and it worked. Since .NET supports COM interop I thought this should work easily. I created the interfaces and marshaled them as IUnknown(I had to inherit from IUnknown to get it to work in D). I declared the functions in th…
Last reply by lkd, -
- 0 replies
- 1k views
Hello all, I have to problems that i can not seem to overcome in my current project. 1. Runtime datasource, dislplaymember, valuemember of a list box 2. In using oledb with apropriate data adapters and datasets and putting certain information into variables 1. Ok here is the code i am using: CustDataAdapter.Fill(cust1) lstChoice.DataSource = Cust1 lstChoice.ValueMember = "id" lstChoice.DisplayMember = "Name" This is using a dataset named cust1 with two fields named id and name. It works fine if i use the property options and set it up before i run. But this refuses to work, What am i doing wrong? I am going to be doing this sever…
Last reply by JoeBalberde, -
- 1 reply
- 738 views
hello all! i need to sign and encrypt an e-mail message (using a certificate in the certificate store) and send it using C#2005. this is very confusing, as i found all required resources on msdn2 to sign and encrypt a cmsEnvelopedMessage, but i cannot find how this relates to an e-mail message (System.Net.Mail) in an older vb6 version, we used CAPICOM, but aren't able to get it to work for the .NET 2.0 framework ... is it worth looking into, or is CAPICOM obsolete at this point ? any hints/tips/links are welcome ... thank you! Huby.
Last reply by fguihen,
-
Who's Online 0 Members, 0 Anonymous, 62 Guests (See full list)
- There are no registered users currently online