Answer Questions
KRISTER How do you add EndCap AnchorCircle to each line in a Path
Hello, I'm using GDI+ to create a graph. I can have about 20,000 points and want to make a curve out of this points. I iterated each point and used DrawLine to draw each line and it was really slow. I found that with: graphPath.AddLines(test) 'test is an array of points grfx.DrawPath(pluma, graphPath) I can make ir really fast... but the thing is that the pen I'm using only displays the EndCap for the whole path (only at the end) and not for each of the lines that create that path. I want to show where each point is located with pluma.EndCap = RoundAnchor...it worked well with DrawLine... but with the path I get the EndCap only at the end of the path... I used AddEllipse for each point but it's very very slow. ...Show All
Zadoras Storing an Array
I want to store an array into a field of an Access Database, so that I can access the Array at a later date. I have create the database table using an OLE Object as the datatype for the field. I use the following code to store the array into the field named "array" Dim cnn As New Connection Dim rst As New Recordset Dim myArray() As Integer = {0, 1, 2, 3, 4, 5} rst.AddNew("array", myArray) rst.Update() This causes a {Type Mismatch} error on the rst.addnew line of the code. Any suggestions How do you have the field defined in the database A couple of issues: 1. you should use ADO.NET 2. The OLE Object type requires that you read and write the bytes of the object: http:/ ...Show All
Folyjon How to initialize a structure in VB and how to create an instance.
Hi. I have 2 programs which are: a DLL in C and a VB application that uses DLL functions. Flow: The VB application calls the functions in the C DLL and also VB aplication passes some arguments to the functions of the C DLL. My Query: I have a structure whose pointer has to be passed as an argument to the DLL function.How can we initialize a structure in VB. Is there any way to pass the instance of the structure(for example in C we pass the pointer to the function to access all the members of the structure) Eagerly waiting for the reply. Thanks in Advance I'm assuming you just want to pass the same instance of the structure you're working on... I reccomend 2 things, either passing it as an Argument using ByRef ...Show All
chaoborid Process status of getFiles()
Hi! How can I know the process stage of getFiles() from System.IO.Directory() Or .. how can I count the files in a directory faster I have some directories with over than 180000 files... Thanks. Try to pinvoke FindFirstFile, FindNextFile and FileClose. Don't know how much faster that is but at least you can provide feedback after each file found, so you app can stay responsive. www.pinvoke.net is of help to get the declarations correct. Check this as a starter: http://www.pinvoke.net/search.aspx search=FindFirstFile&namespace=[All ] -- SvenC ...Show All
Scott McKeown Keep Your Data Secure with the New Advanced Encryption Standard
Hi I would like to utilize AES encryption, but it seems that it isn't support in the .net framework - any suggestions og how to implement it Thanks - i program in VB.net, but i'll se if i can get it to work anyway... APMadson, Here I found an article in knowledge base written by James McCaffrey. Please click the following link below: http://msdn.microsoft.com/msdnmag/issues/03/11/AES/ I hope that this KB will help you. ...Show All
jv_getmore Attach and Open another .exe
How do you attach another .exe program to your Form1 and open it from a MenuStripItem OK, But now it gives me an error and that doesnt help me do i put it in resources Or do i put it somewhere else and do I have to write out the full address to the program i need a little more than its a MenuStripItem Click item. Actually if you are going to start passing arguements and want even more control of the process you should utilize the StartInfo class of the Process. Dim myApp As New Process Dim Si As ProcessStartInfo = myApp . StartInfo Si . Arguments = ( "-K http://www.google.com" ) Si . CreateNoWindow = False Si . FileName = "iexplore.exe" myApp . Start () The ...Show All
Tijnars Messagebox
Hi, I know messagebox, msgbox functions are able to post messages, but they need user to send a result to messagebox. Now what i want is I need a messagebox to post information when a function or procedure is running on the background, and when this function or procedure finishs, this information box will disappear. For example, when my application is doing some save tasks, a information box is posted with text "saving now....", after saving is finished, information box is disappeared. Anybody knows how to it Thank you very much! Sorry, I think your code is complicated. What I have done, dim f as new frmmessage 'here frmmessage is predesigned form I need f.label.text="saving now..." f. ...Show All
reza_a_m VB6 --> .Net Question Urgent!
Ok, Still doing some things with data created by QB7 and then VB6 I have a line in some vb6 code that i have never seen before and have no idea about value1 = fnd(value2 ) + find(value3) I assume it means "find" Can anyone help me with a .net version of this "fnd" thing Cheers Mc I thought so too, except i could't find any reference to it anywhere. If you use the vs2005 object explorer you'll see that there are a zillion finds. Your doesn't appear to be related to a class. Use the vb6 object explorer to see if you tell where it came from and what it does. It might be a function that is defined in the vb6 project ...Show All
DavidHolliss SQL 2005 and MS Visual Studio 2003
After I looked the 'RELATED QUESIONS' my questions were answered. My question was "Can MS Visual Studio 2003 and SQL Server 2005 Express Edition be used together " No they can't be used. Since I just started to learn Visual Studio 2003 and updating from VB 6, I find myself having to stick with this verison of VS. Now my question is there a cd I can get MSDE 2000 I call MS and talk to may people and they seem to think there is no way to get this product. I down loaded MSDE 2000; but, all the other programs that look like should come with this mgr, etc. could not be found on the down loads. Any help would be appreciated. THANKS Ray AFAIK MSDE does not have a manager like SQL Server may do, its ...Show All
Ken Knowles How to pass a dataset to a web service
hello there guys! i wanna ask a question which bothered me a lot! and this is it. is it possible to pass an untyped dataset from a client application to a web service and how thanks in advance! i just badly need to know passing untyped datasets from clients to web service since it returns argumentnullexception error or nullexception error. thanks! On a webservice named Test create this sub: <WebMethod> Sub PutData(MyDataIN as DataSet) 'do something with the dataset End Sub On a client application that has a reference to the web service do this: Test.PutData(YourDataSet) Simple :) ...Show All
Mark Macumber VS - prompt before exit?
When I'm about to exit VS2005 (or VS2003) it doesn't prompt me if I'm sure. Is there any way to set this option I looked in VS options and searched registry keys, but didn't find anything. I'm probably missing something obvious. Can u help me, please Thx in advance Hmm, still doesn't add up. The windows have their own close button, the one with the black X. Do you use the tabbed documents interface (Tools + options, General, "Window layout") Well, VS actually prompts me on exit when I'm in the middle of debugging session or I have some files unsaved, but otherwise this doesn't happen. It often happens that I click exit button by mistake, which is especially annyoing when I work on l ...Show All
mario.muja Textbox Dataformat
Hi, I am trying to setup the data format optionsto use for values in Textbox. How can i do it I remember using some option which when you click on the e llipsis button ( ... ) in the Format tab of the Textbox Properties dialog box. This property appreaded in the Misc Section. Any suggestions I could locate only a similar option in Report Designer Thanks Your probably thinking of the maskedtextbox control which enables you to specify a mask. You can select the control and click on the little arrow to set the mask or set the mask property of the control which will bring up the same dialog. The normal textbox does not have this mask property. ...Show All
Grant_A Embedding Video in a Visual Basic Web Browser
Pardon me for posting twice in quick succession, but I've always found that if I post two questions in a thread only one gets any attention. I'd like to embed video into the current application I'm designing in Visual Basic 2005. The only way I could think to do this was to have a WebBrowser control and insert the necessary text for embedding a video player into the DocumentText, but that didn't seem to work. What's the best way to do this The video formats will be restricted to .avi and .asf. For reference, here's the way I tried to do it; this code is called whenever the 'VideoURL' is changed. Browser.DocumentText = "" Browser.DocumentText = String .Concat(Browser.DocumentText, "<HTML><HEA ...Show All
BitShift How to display correct subcategories after selecting a category from a combo
I am developing an application that must have a category combo list and a subcategory combo list. My category combo list will consist of the following: Computers Printers Software If I select Computers as my category then I want my subcategory to display the following: Desktop PC Notebook Server How do I develop this using Visual Basic 2005 Professional together with SQL to achieve this Regards Dipendra You can also use like this ComboBox1.DisplayMember = "Category_Name" ComboBox1.ValueMember = "Category_ID" and you can get the value as ComboBox1.SelectedValue. in this way you will directly get the selected category and subcategories id. ...Show All
JamsBond007 Changing color
Hi, I need to increment the colour in the following statement: - Dim plotnumber as byte = 1 Dim myCurve1 As LineItem = myPane.AddCurve("Plot " & plotnumber, list, Color.Red, SymbolType.None) Plotnumber = plotnumber + 1 You can ignore most of the statement as it relates to an add-on, but it uses the system colour function, to change the colour of a cure. Unlike a number (like the name of the curve where I have simply & plotnumber and incremented so each curve has a different name. but I have no idea how I would do this for the colour, does anybody have any ideas Regards, Andy Hi, What does mod 10 do Andy You mean the curve's high values are red, low value ...Show All
