Answer Questions
johnny_no1_boy Including a vb6 exe file in VB2005 application
Is it possible to include exe files in a solution, and execute them with commands Some problems are easier with vb6, so i just make an exe file in that, but is it possible to compile them with a VB2005 program so that i dont need to have ekstra exe files in the program folder that needs to be called. You can deploy an file with you application (VB6 is possible). The problem that you also have to consider is that VB6 applications require there prerequisites to be installed on the machine such as VBRunx00.dll for whatever version of VB Class your running and a whole host of other files. Without these you VB6 application wouldnt run so you need to look at deploying all the requirements of your VB6 appl ...Show All
jlchx WebServices and Functions accepting Generic Lists
Hey Everyone, hopefully someone can help me with a little problem I have. I've coded a webservice to update a database on a server and I call it via a small application I've created anyways the webservice contains a function that takes in a datatable containing the actually database data (which seems to pass alright) and a couple of generic lists used to create the table if it doesn't exist. Problem I have is I've declared my functions in the webservice like the following <WebMethod()>_ Public Function ServerDataDB(ByVal Job as String, ByVal ColumnNames As Generic.List(Of String), ByVal TableData As DataTable) As boolean Now when I add a reference to it in my application it tells me that ColumnNames needs to be passed as type string ...Show All
BlackMan890 File creation DateTime changes?
I have an application for updating the client files. This app reads the files from the server and compares the file creation DataTime with the files in the client machine if there is a change then it downloads the new file. The problem is when you copy the file to the client machine, it's creation datetime changes to a random date. Which parameter can I rely on if the creation datetime and the last write date of file always changes Thanks for your help What do you mean by considering it as a time stamp I will try those function and let you know. Thanks alot Ala Thanks Amr, But I used that for both the last write datetime and the creation datetime b ...Show All
Tryin2Bgood Copy of Screen
Good day to you. I don't know much about the ClipBoard and GetData and so forth but there seems to me that 2005 Express is not quite the same as .NET 2003. The code that I shall give in a moment gave me a full screen copy on the Form_Load event and gave a copy of the Form on a button_click event. Now, when using the code in 2005 Express the Load event only gives a copy of part of the screen. Why is this happening Is there a way in which I can rectify matters. I would be very pleased for any info. I have tried with Imports and Inherits and Paint. It is the sizing I believe. Private Sub frmScreen_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load SendKeys.SendWait( "{PRTSC}" ) D ...Show All
jori0001 Does killing a parent process have to kill the children?
I'm trying to start a process and have it run independently. I may just be dense, but it appears that it can't be done. When the process that issued the process.start() ends, the child process stops too. I tried this: prc.start() thread.sleep(T) ' 1000 < T < 20000 close() As soon as the sleep time elapses, the process started by the prc.start command stops. So how do I start an independent process that will persist after its parent shuts down Don't create a new Process object, just use one of the shared methods inside of it to run the process: For example... ...Show All
satyam amin MDI help
I have one form (lets call form1) that does all the calulations, and form2 that needs to display the summary of the calculations. Now It worked just fine before, but now they are child forms in the MDI form and all form2 returns now are zero's. Is there anyway to get calculation from one child form to another Not sure I get what your saying but you can use form2's constructor to pass values to the form when its created e.g. Dim form2 As New Form2(myvalue) form2.Show() How are you passing the values from form one to form 2 A code sample would help. ...Show All
jasmine pham Regression Equation / Statistics in VS 2005
Is there an easy way to create a regression equation based on certain data located in variables Or do I have to get out the 'ole stats book and write the code manually I couldn't find anything in the help file about this, so I may be out of luck! Thank you! -Corey Hi, It depends i guess on the nature and complexity of the data. If you are looking for a program that simplifies formulae then that is not an easy task. Two programs come to mind. Mathematica is one of them from.>> http://www.wolfram.com Trial it.>> http://www.wolfram.com/products/mathematica/trial.cgi Can you give a simple example of what your trying to achieve please Regards, ...Show All
Scott Chang What would you like too draw on the form?
Hey you! I want to draw something on to a form but i don't want to use onpaint() method. I don't know how do i do Please help me if you can! Thanks very much! dvl_vn Hi Ghaby, I think you really must look to override either the OnPaint method or attach a delegate to the Paint event. There are other ways, but you should only use them in exceptional cases; in short, if you can use OnPaint, do so. Depending on the complexity of what you are attempting to paint, it may be that GDI+ is simply not suited to the task. It is slow, but there are a number of techniques that you can use to speed up rendering that may be worth exploring. I am assuming that you are already aware that the PaintEventArgs.ClipRectangle property exposes th ...Show All
MelissaA bin and obj folder confusion
Converting an application from VB03/SQL MSDE to VB05/SQL Express - This may have been true under VS2003, but I have just noticed it in 2005... If you create a new windows application, and do nothing to it but save it, it creates a bin\debug and bin\release and a obj\debug and obj\release folder (in addition to other folders). In the Solution Explorer, Project, Properties, Compile, both debug and relase are defaulted to complite to the bin\debug and bin\relase respectively. The obj folder is not used at all. I would have expected the release to compile to obj\release. Anyway, the point of all of this is, is there a URL that explains the bin and obj (and their sub folders) and how they are intended to be used Thanks! Bob ...Show All
Goh Wah Bringing in FORTRAN dlls using DLLimport
I'm having a problem getting some unmanaged code to link into a program I'm writing. I have some FORTRAN legacy code that I don't have the option of rewriting, and I need to link several pieces of it together, as well as create a GUI for it. I've created a wrapper class for it using a DLLimport statement and I keep running into the following error: System.BadImageFormatException was unhandled Message="An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)" Source="FORTlib" where FORTlib is my wrapper class. The code is attached, the mentioned dll is the dll named in the code, called "readFile.dll". Surprising I know. This is a very simple piece of code, I' ...Show All
Crukis vb5 to vb2005 express
How can i convert my vb5 sources to vb2005 without vb6 I'm converting from vb5 to vb2005 express, not to vb6, but I don't think you should have any problems at all, since vb6 is backward compatable to vb5. Converting to vb2005 is quite different, some commonly used features are missing in vb2005. Hi, I need to migrate VB 5.0 code to VB 6.0. When I opened vb5 project file in vb6, it was opened. That was not a problem. But are there any things that should be considered while converting vb5 code to vb6. Any help would be appreciable. Thanks, August97 Okay, I didn't know whether it'd open a VB5 project: that's t ...Show All
ameyayashu panel.control.add
if i do: panel.control.add(control1) panel.control.add(control2) panel.control.add(control3) ... several times then do: dim ctrl as control for x as integer = panel.control.count-1 to 0 step -1 ctrl = panel.control.item(x) next should things come out in the order they went in eg: panel 1 panel 2 panel 3 panel 1 panel 2 etc... i dont seem to be getting that... Thanks! Dan Sure, write a simple method such as Sub MonitorPanels(ByVal p As Panel) Dim s As String = "" Dim i As Integer = 0 For i = 0 To p.Controls.Count - 1 Dim c As Control = p.Controls(i) s = s & i.ToString & " - " ...Show All
XNA Rockstar Dynamic Memory Allocation in Visual Basic
I am new to Visual Basic, but have had some training in C++. I was working on a program in Visual Basic 2005 where I need to allocate memory to an array dynamically. The array is to be of type ButtonRow, (which is a class I've created for this program). I want the size of this array to equal the total number of rows in a given table. I can figure out how many rows are in the given table, and store that value in a variable (MaxRows). I need to dynamically allocate the ButtonRow array with the size of MaxRows. How do I do that in visual basic Is there a Visual Basic equivalent of the calloc and malloc commands Also, just to give you guys a complete picture, the ButtonRow array is to be a universal array available to all subs within the gi ...Show All
meconnell syntax error
Hello to all, When I try to run an application that I am working on I get a sytax error with the line of code being referenced. Error code: syntax error: missing operand after '=' operator. Line of code referenced: Me.ChannelBindingSource.Filter = "FolderID = " & FolderComboBox.SelectedValue I have looked at this until I am ready to pull my hair out. Could someone please point me in a direction that I haven't been able to since I must have my blinders on. Thanks Hi, Just a guess but try with the following: Me.CahnnelBindingSource.Filter = string.Format("FolderID = '{0}'", FolderComboBox.SelectedValue) Greetz, Geert Geert Verhoeven Consultant @ Ausy Belgium My P ...Show All
alex china Printing Problems
When i take printouts directly from the forms with the MSFlex Grid in it.... Printer never prints the MS-Flex grid box neatly... The Grid box in the hard copy is totally printed with a dark gray color... and no text will be seen... Even if i change the background coor of the grid box ... it is printed with a dark gray color.... Can any one please help me what to do to get it prinet properly....... That was also not working.... can we use reports for printing won't that be a good idea Another option would be to modify your app to use the DataGridView instead of MSFlexGrid - it's the ActiveX control that is causing your printing problem. what do u think about going on to reports Yes you can use crystal reports ...Show All
