Topics
-
-
- Leaders
- 3 replies
- 1.2k views
I have a visual basic.net application I need the user to be able to click at one point on a form and drag, once they let off the click it will draw a square. However I am not sure how to accomplish this. Any programming examples would greatly be appreciated.
Last reply by Iceplug, -
-
- 0 replies
- 1.4k views
How do i get the window handle of the window that just had focus. When my program activates or gets focus while running, I want to know what the window handle is of the previous window. For instance, I start my program and start Internet Explorer. I focus my program, focus IE, then focus my program. How can I get the window handle of IE in this instance? Or any other instance, how do I get that handle of the previously focused window?
Last reply by kasdoffe, -
-
- *Experts*
- 5 replies
- 1.2k views
This problem is simple and yet the answer eludes me. I have a custom procedure that I call on the formload. basically if the checkbox is checked, then disable all the buttons, else enable them all. This seems to work when the form loads, it is unchecked. but when I check it again, the buttons are still enabled. I have a similar thing on the main form, except it will constantly check and do what the entire if then statement says. What am I doing wrong? code below Private Sub DefaultCheck() If ckdefault.Checked = True Then emlclr.Enabled = False navclr.Enabled = False sysclr.Enabled = False ctrlclr.Enabled =…
Last reply by matt09524, -
-
- 0 replies
- 1k views
Hi Guys, i'm actually working on a D3D9 Project... who's wondering? :rolleyes: I admit that this is my first project in DirectX, so i have a lot of questions for y'all. But first of all, i'll give you some information about the project. So, it's a kind of 3D-Mapviewer for the Game "Anno 1503" alias knows as "1503 A.D."! Here's a screenshot of the current version: Screen1_b.jpg [ 170kb ] The program uses a class to load the "*.scp" - File and to create a 2D-Bitmap in memory, which is serving to create a Heightmap for the 3D-Mesh. And now my problems are: - I want to implement a first-person camera movement, because the actual one is very untidy and un…
Last reply by Draven, -
-
- *Experts*
- Leaders
- 8 replies
- 1.6k views
need basic help splitting string... hello, I need help parsing a string in c#... I can't find an example online, just one of those days I guess. What i'm trying to do is to parse the following string at the '&'. I want to get the values so I can then put them into a database table. RESULT=126&PNREF=V63F0A7A001D&RESPMSG=Under review by Fraud Service&AUTHCODE=010101&AVSADDR=Y&AVSZIP=Y&IAVS=N&PREFPSMSG=Review CeilingAmount&POSTFPSMSG=Review Can anyone get me started or point me in the right direction? :o I've looked into the split method... seems like it may work but i'm not sure if it will do what i'm looking for. Than…
Last reply by reagan123, -
-
im looking for a vb program that can scan a computer looking for a file or a process - whatever is easier. :(
Last reply by mskeel, -
- 5 replies
- 1.3k views
i use console.out to display a string. Console.WriteLine("Downloading " & y & ".pdf...") Is there a way to display this output line in the MS Dos promt rather then displaying in the debug part in the VB.net screen. I am intrested in showing in the MS Dos promt bcs i canot view the console.writeline output when i deploy the application. Can any one help me in this.
Last reply by shankar_it, -
- 1 reply
- 3.1k views
Okay - I thought my code would work but for some odd reason it doesn't seem to make any differences, either it isn't working or not saving the changes at the end (I am not 100% sure) - so I was hoping someone could take a look and tell me if I did something wrong... My Excel File is called [Tasks.xls] and has a worksheet [Tasks] that has 4 columns as illustrated below: [Tasks.Xls] [CLIENTS] [ASSINGMENTS] [sTATUS] [startTime] Client1 Assignment1 ACTIVE 09/01/2005 Client2 Assignment2 ACTIVE 09/02/2005 Client1 Assignment2 ACTIVE 09/05/2005 Client2 Assignment1 ACTIVE 09/12/2005 ... etc ... My goal is to SORT this Excel file so it looks like this: Client1 Assignm…
Last reply by herilane, -
-
- Leaders
- 6 replies
- 1.5k views
I need to show streaming images (changing bitmaps, which are created in the app during every cycle of operation) on the screen. I thought of implementing this in DirectDraw to speed up the display, time being very critical in my app (total cycle time is in the order of 100 to 200 ms). But later realized that creating bitmap surfaces (using Surface constructor) whenever I need to show a new bitmap is very time consuming. Then I changed the way bitmaps are drawn by getting the DC of the surface and using GDI+ to DrawImage onto this DC. But even this takes too much time to blit, as my bitmaps are usually large (upto 2k x 2k). Can anyone suggest a better way of…
Last reply by Sri, -
-
- 1 reply
- 901 views
Just a standard connection from C# here, this works with a small amount of data but not a large set. Do I have the syntax wrong?? Thanks, Tim SqlConnection mySqlConnection = new SqlConnection(); string strConn = ""; strConn = "Data Source=" + this.textBoxInstance.Text + ";" ; strConn += "DataBase= " + this.textBoxDBName.Text + ";" ; //strConn += " Integrated Security=SSPI ;" ; strConn += "User ID = sa;" ; strConn += " connection timeout = 10000000;" ; //connection timeout mySqlConnection.ConnectionString = strConn; SqlCommand cmd = mySqlConnection.CreateCommand();
Last reply by code Mechanic, -
-
- Administrators
- 2 replies
- 1.1k views
I want, send excel file to web service, can I do it? how can I do it? Thankssss ________________ Hip Hop Directo Foros de musica
Last reply by wakeup, -
-
- 0 replies
- 4.1k views
In my application a form is used to enter repetitive data in a data base. In order to gain process time, the form still open and the data are validated by a button. The button save the data and clear (write "") the different fields. This mean work fine except the date time picker where the field can't be cleared. The result is the position of the cursor isn't set to the begining of the field. The user use each time the mouse or the arrows for repositionning the cursor. I use the datetime picker for enter default date value and verification of the data entered. Is somebody have a proposal for replacing the cursor to the beginning of the field? :rolleyes: thank y…
Last reply by icebe, -
-
- Administrators
- 3 replies
- 1.9k views
Binary File Reading Code Optimization Hi guys, I am having a problem with my binary file reading, and wonder if anybody knows a better way to achieve what I am getting at. I am trying to read in a binary database file record by record. Each record is split into fields, and each record contains different data types (which are known at runtime). I have to cast each data field to an appropriate .NET type, and perform a calculation on each one. So far, so good, except the performance is not what I had hoped. In the database there are around 50 million records, and each is 32 bytes. I need to complete the full read in less than 45 seconds- and so far I cannot get it t…
Last reply by PlausiblyDamp, -
-
- 0 replies
- 809 views
How would I use nested, databound repeaters in conjunction with an Access database? I've seen examples with MSSQL, but that isn't really an option for me atm. I tried to use two SELECTS in a single query for my OleDbDataAdapter so I could then set up a relation between the two result tables, but Access apparently doesn't support that. Anyone have any ideas? Edit Nevermind, I found a site that used a slightly different approach from the site I'd previously visited. This second approach was just what I was looking for. If you're interested, its at Master-Detail Display using Nested Repeater Web Forms Control
Last reply by fizzled, -
- 3 replies
- 844 views
are there any step-by-step instructions on how to develop a simple smart client solution?
Last reply by Diesel, -
- 1 reply
- 918 views
I have created some public classes that I want to access. So far i havent been able to access these classes. Is it necessary to compile these classes together as a dll to access these classes and if it is how do I do this ?. I am using webmatrix with vb.net. Many thanks Martin
Last reply by Nate Bross, -
-
- *Experts*
- 2 replies
- 1.1k views
hello i have a loop that creates controls with info from db, this controls are pictureboxes, after being created and configured they are added to a panel control, how can i set event handlers for click and double click events to this controls as they are created?? here is my code: Private Sub fotos_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim dt As DataTable = selectDatos(Me.cnxStr, "select id_foto,ext from fotos where id_paciente=" + idpacientecur) Dim dr As DataRow Dim foto As PictureBox 'loop to create pictureboxes For Each dr In dt.Rows foto = New PictureBox foto.Si…
Last reply by ramone, -
-
-
- Leaders
- 3 replies
- 915 views
Is it possible to fill a combobox or some other listing type control with a selection of colors a user can choose from? I am making an options form for my app and would like the user to be able to choose colors for certain things... or do I have to manually do it?
Last reply by matt09524, -
-
- 1 reply
- 1.2k views
Thanks to the information I collected on the forum, I've made a sample application to test different features of the DirectX and I figured that maybe some people who are even bigger newbies to DX than myself might have use for it and overcome some initial trivial problems, so feel free to download it, compile it, tell me if something went wrong so maybe we could learn together. It's sort of a 3DS viewport look-alike application that uses old 3DS4 ASCII files :D and DX-generic meshes, so play with it and reply, if you wish, here or to janko.jerinic@gmail.com Btw. could someone resolve this: in my application, when you check the "Draw Generic Mesh" checkbox, you enable t…
Last reply by jjerry, -
- 4 replies
- 2.1k views
Hi, i creating some security interface where user need to login or register before they can go into the main program, my problem here is whenever user type something in the form's text box which i created, how to make it store in the XML files, can somebody give a guide on this. THX! :)
Last reply by BigMek,
-
Who's Online 0 Members, 0 Anonymous, 54 Guests (See full list)
- There are no registered users currently online