e6henke's Q&A profile
Visual Basic Sin, Cos functions appear not declare
I wanted to use the sin function so i searched the code and inputed it under button1_click. The code was sin(number) So i input the code sin(5), but it says function not declared I dont know hwo to use the sin function so here is what i want, can smeone work out the code for me There will be an integer in textbox1 and when i click button1 the number shuld be sined and show in textbox2 Also how can i use the squ ...Show All
Visual Basic Win32 API WriteFile "Error Invalid Handle"
Hello, i wrote a programm which can help to send packets to my USB device but when i try to use the method WriteFile (in sub sendpacket(startsessionpacket)) i get the win 32 error (Error Invalid Handle) howewer work hDevice=createFile (...) great! so what's wrong with my code please Help Me Option Strict On Imports System.Runtime.InteropServices Public Module DeviceIo Dim theDevInfo As IntPtr Dim hDevice ...Show All
Visual Studio Express Editions .color to hex values?
Hello, I have this color dialog which picks out colors and this is where I got so far right now, ---------------------------------------------------- Dim bgSelectedColor As Color ColorDialog1.ShowDialog() bgSelectedColor = ColorDialog1.Color bgColor.BackColor = bgSelectedColor ...Show All
SQL Server copying table in a database
Hi good day to everybody, Can we copy a table from a database and saved it into a diskette Because i did not find or maybe i miss or doesn't know how to do it from EXPORT/IMPORT tools. The computer to where I attach the table is not connected on d'same network, and if I backup & then reinstall the whole database into that PC, all records in their will be overwritten by the new one which is not I wanted to be. H ...Show All
.NET Development Choice
How can you let the computer choice a number between 1 and 100, and save them in a variable. In C#: Random random = new Random(); int randomNumber = random.Next(1, 100); in VB.NET: Dim random As New Random() Dim randomNumber = random.Next(1, 100) You simply create an instance of the Random class and call the Next method on the instance with the bounds you want the number returned to be within, and you can cal ...Show All
Windows Forms Error Creating Window Handle
I created windows form application when I add large number of controls I generate "Error Creating Window Handle" Exception please advice It is not entirely clear to me, but instead of using labels, you could simply print the text yourself on a location. That would already save an incredible amount of window handles. Can you also answer the other questions I posted And: what is the added value of using controls at all ...Show All
.NET Development How to load a ListBox from an ArrayList?
Hi, I tried the sample from MSDN http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpref/html/frlrfsystemwindowsformslistcontrolclassdisplaymembertopic.asp But it did not compile. The ListBox is loaded thus: Dim USStates As New ArrayList USStates.Add( New USState("Washington", "WA")) USStates.Add( New USState("West Virginia", "WV")) USStates.Add( New USState("Wisconsin", "WI")) USStates.Add( New US ...Show All
Windows Forms Adding buttons and click able icons to a list view control
I would like to know if there is any way to add buttons to a listview control I am only using it in its details view mode and I would like to be able to add them to some of the sub items in this view. Click able icons would also be workable. I have seen a fair few applications use this technique, although I can't think of one which uses .Net (may be that’s should tell me something ) . I realise I could just position buttons on top of the ...Show All
Visual C# DateTime SQL Statement Problem
Hi, I am using these SQL statements to extract data from MS SQL 2005 Express but I am not getting any records maybe because the appointment_start field is datetime field. I tried Date(appointment_start) but i got Syntax error. "select * from appointments where appointment_start between '" + DateTime.Now.ToShortDateString() + "' and '" + DateTime.Now.ToShortDateString() + "' order by appointment_start, a ...Show All
SQL Server SQL Licensing
Currently we have a SQL database that we are using to run ACT. I know nothing about that program other than we have approx. 15 users that are currently using it. We have a data management software that I am currently implementing that we will need a different set of 10 user accessing. Our SQL came w/ ACT and we're not sure if we can legally set up another database for our design group to use w/ the data management software. Does anyone know ...Show All
SQL Server Create Schema in Sql Server 2000
Hi everybody, I like to asked anyone who is very good at T-Sql to help me with Sql Server 2000. Thanks in advance. In Sql Server 2000 I have the statement use DBTEST CREATE SCHEMA AUTHORIZATION Ross CREATE VIEW v1(c1) AS SELECT c1 from t1 CREATE TABLE t1(c1 int) GO It work correctly, but Ross don't belong to DBTEST; also use DBTEST CREATE SCHEMA AUTHORIZATION atrandom CREATE VIEW v1(c1) AS SELECT c1 from t ...Show All
Visual Basic Moving a picture
could someone help me with this all i want to do is you click the picture, move it, let go of click and it stays there Public Class Form1 Dim MDown As Boolean Dim Formloc As Point Dim pbLoc As Point Dim CaptionHeight As Integer = System.Windows.Forms.SystemInformation.CaptionHeight Private Sub cbExit_Click(ByVal sender As Object, ByVal ...Show All
SQL Server XML Configuration Package Configuration Wizard
I am attempting to use an environment variable that defines the fully qualified path of the dtsConfig file that my package uses. I have already created the environment variable and verified that it exists. When I am configuring my package to use XML Configuration, and specify the name of the environment variable which appears in the dropdown, and click Next, I see the Completing the Wizard dialog box. I was expecting to be able ...Show All
Game Technologies: DirectX, XNA, XACT, etc. April 2006 DirectX stupid question
The project is named DXScreenClear. After struggling for several days to identify and fix errors caused by undocumented changes in DirectX I almost have this VERY simple tutorial working. But not yet. On the line: Dev = New Device(0, DeviceType.Hardware, Me, CreateFlags.SoftwareVertexProcessing, pParams) I get the error: Value of type 'DXScreenClear.Form1' cannot be converted to 'System.IntPtr'. how on earth do I fix this If 'Me' ...Show All
.NET Development Application-name
Hi! Is there a Property, which contains the File-name of the running Application For example "App.exe" Greets reg3x System.Diagnostics.Process.GetCurrentProcess() Hopefully this is what you want. Rich. ...Show All
