Topics
-
- 1 reply
- 920 views
Is there a way to bind a datalist to the results of more than one query? I have 3 different queries that I want to execute and I want to pack the results of all 3 into a single bound datalist. I know each query will return a single result. Is this possible?
Last reply by CompiledMonkey, -
-
- *Experts*
- Leaders
- 4 replies
- 3.1k views
In VB6, there is an option "On Error goto " ..followed by "Resume Next" which is very useful to let the application continue to run and return to the very next line of code though an exception is caught. Is this possible in vb.net or c# within the "Try..Catch" construct?
Last reply by Nerseus, -
-
- 2 replies
- 5.8k views
I'm messing around with DX9c + VB.NET 2005, and am fishing around for the best (as in most efficient) way to implement a custom GUI in a fullscreen DirectX game. The drawing isn't much of a problem, though currently ugly visually, I have an ObjectManager class that holds all the windows (and other game objects that need to be drawn) and each window has it's own control collection to handle labels, textboxes, etc. What I'm looking for is a decent way to add in mouse / keyboard events. I'm using DirectInput to handle them at the moment, however, I'm not sure how to go about 'redirecting' input to the topmost form that I've got drawn over the game GUI, and of course, …
Last reply by Mykre, -
-
- Administrators
- 2 replies
- 1.8k views
This may be a dumb question but what is the difference between these two methods. System.IO.Directory.GetFiles() System.IO.Directory.GetFileSystemEntries() They both seem to have the same return values and they both have the same overloads, so I was just wondering if there was somekind of differnce. I'm assuming that there are certain situations where the two methods would return different values, otherwise surely there would only be the need for one of them. NB. Guess this could have gone in the IO thread, but I wasn't sure whether it was that specific.
Last reply by Cags, -
-
-
- Leaders
- 5 replies
- 644 views
Hello Programmers, I'll like to build a big program. But i have some little problems. I'll use classes in my program. So for every 'thing' like customers is a seporate class. In the class i can make a new user and i can add that user to the database. Something like this: public class customers { int ID; string Bedrijf,Contactpersoon,Adres,Postcode,Plaats,Tel,Mobiel,Fax,Email,Website,KVK,BTW,Debiteurnr, Opmerkingen; public customers(int id,string bedrijf,string contactpersoon,string adres,string postcode,string plaats,string tel,string mobiel,string fax,string email,string website,string kvk,string btw,string debiteurnr,string opmerkingen) { // …
Last reply by Diesel, -
-
- 1 reply
- 663 views
I need to help a friend and make him a program in vb.net that will receive some ticket numbers from a website and check those numbers against a mysql database. The problem is that the site will most likely be built in php� How do I make the connection between that php site and my application ? Does anyone have any suggestions on where to start looking ? Thank you
Last reply by Diesel, -
- 1 reply
- 3.2k views
I am using vb.net 2003. Can someone advice me how to dynamically set a htmltable cell's background image? Thanks I could only get to set the bgcolor only.
Last reply by jayceepoo, -
-
- Administrators
- 2 replies
- 2.9k views
I'm getting the above error when running through my code. I know at desgin time what the problem is, but at run time I'm changing the MasterPage to use with a specific aspx page in the Page_PreInit event. If I could solve the design time compile error, I'm hoping it will fix the run-time error. I have code in my code-behind file that looks like the following: Public WithEvents objMaster As MasterPage 'Get a reference to the master page objMaster = DirectCast(Me.Master, MasterPage) 'Add the section and get a treeview back objMaster.AddCustomSection(2, "Folders") Protected Sub Page_PreInit1(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.PreInit …
Last reply by wsyeager, -
-
- 0 replies
- 966 views
Okay, I am attempting to learn more about memorystreams and byte arrays as well because I think my hashing and crytography problems are arising from this area. I am reading a text file into an array, extracting a portion of the array to a memorystream, then writing that back out to disk. Just to see what is going on. Okay, I have everything working fine except the extracting of a portion of the array to the memorystream. Since it is string characters, I am doing something simple, I only want the last 9 characters of the original text file. I thought that I could use length - 9 to get those, or maybe since it is 0 based length - 10. However, that is not the ca…
Last reply by cpopham, -
-
- Administrators
- *Experts*
- Leaders
- 11 replies
- 1.2k views
I have read in many places how having multiple exit points in a program is not a good idea and can cause trouble during testing aswell as disrupt the general readability of code. Having said this I often find myself writting code like this. // multiple exit points if(e.Control) { // ctrl s, save if(e.KeyValue == 83) { // save file return; } // ctrl o, open if(e.KeyValue == 83) { // open file return; } // ctrl e, perform action blah... if(e.KeyValue == 69) { // do stuff return; } } else { } Essentially what this does is check the keyvalue, then if it was the key you pressed it is handled and there is no reason to continue checking through each key value. I…
Last reply by mskeel, -
-
-
- Administrators
- 1 reply
- 1.8k views
I'm trying to enable my engine to start up in windowed or fullscreen mode mased on the initialize call... Fullscreen works great, when I draw something at 0,0 it shows up in the upper left corner as intended... If I start up in windowed mode, and draw to 0,0 the image is still drawn to 0,0 on my screen, even if my window is at, say 200,200... I literally have to move the window up to the upper left corner of my screen to see the drawn image. Basically everything is drawn as if the app IS in fullscreen, even when the window is in a different position. I'm not sure where I went wrong. Here's the code I've got for initialization. Public Sub Initialize(f as Form…
Last reply by PlausiblyDamp, -
-
- 1 reply
- 1.5k views
Can someone tell me the difference between syncronous and asyncronous connection types, and why one would choose one over the other
Last reply by Mister E, -
-
- Leaders
- 4 replies
- 1.6k views
I need to write a menu control and was hoping to base it on ContextMenu, owner-drawn to conform with my GUI style. My problem is that the mnemonic keys do not work when OwnerDraw is true. In itself that wouldn't be too bad if I could capture key press events but I can't find a way to do that either whilst the menu is displayed. Does anybody know a way around this?
Last reply by JamieB, -
-
-
- *Experts*
- 2 replies
- 2.1k views
How to create index in MS ACCESS programatically? Please respond...
Last reply by Nerseus, -
-
-
- Leaders
- 5 replies
- 1.5k views
hi, i would like to know how to run a complete form with its controls in a seperate thread as my main thread!? i have test the following, but it does not work: Imports System.Threading Public Class Form1 Dim thread As Thread Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load thread = New Thread(AddressOf startform) thread.IsBackground = True thread.Start() End Sub Private Sub startform() Dim newform As New Form2 newform.Show() End Sub End Class it only works like this: Imports System.Threading Public Class Form1 Dim thread As Thread Private Sub …
Last reply by snarfblam, -
-
-
- Administrators
- 7 replies
- 3.3k views
How can I do as c++ #define var var2 In c#? Thanks ___________________ Hip Hop Directo
Last reply by mskeel, -
-
-
- Administrators
- 8 replies
- 1.7k views
Hi all, What I'm trying to do is dynamically add menu items to a menubar. I've got the code working, but now I'm trying to add an event handler to the menuitem so that when the user clicks on it, it opens the correct form. The problem is, the program doesn't know that the form exists. So, while creating the menuitem, I've inserted the name of the form that it should open into the tag property. The problem that I'm having is converting the tag value into a form, so that the correct form is opened. I've tried the following code (setting the tag value to the name of one of my forms), but it's not working for me, as the SelectedForm is showing up as null during runt…
Last reply by Joe Mamma, -
-
- 1 reply
- 1k views
Hi, I have an application and I want to add some security to it. I don´t know if it´s possible to use a dll from my application and make dinamically some sort of hash code of this dll in order to detect if somebody has changed some lines of code or the dll itself. I would have this hash in the server to be compared with the hash the client sends. Thanks in advance.
Last reply by IngisKahn, -
-
- Administrators
- 2 replies
- 1k views
Ok so I keep my page under Inetpub\wwwroot and I don't want to use ASP.NET Development Server, with my Visual Studio 2005, I want to use IIS like in the old times ( I mean, when I press F5, I don't need to run the ASP.NET Development Server, I have IIS up 'n runnin' ) :rolleyes:
Last reply by PROKA, -
-
-
- Administrators
- 2 replies
- 953 views
Does anybody know if i can get the course books for the MCSD from any source? These books arent usually sold directly, but are solely provided if you take a Microsoft course. If you have one of these books it practically makes the adjoining course unnecessary. I just wondered if anybody knows another way i can get these books? Thanks Jay.
Last reply by Jay1b, -
-
Who's Online 0 Members, 0 Anonymous, 50 Guests (See full list)
- There are no registered users currently online