jboekhoff's Q&A profile
Visual Basic code for toolstrip copy button
I am a newbie having fun with Visual Basic Express 2005. I am creating a dedicated browser using the WebBrowser control. I have added a toolstrip and created basic buttons (back, forward, refresh, home, print) that work but am at a loss how to get the copy button to work. I realize it will probably require an “if … else” method to ensure that some text has been selected prior to putting it on the clipboard. I have found several resources on copying from a textbox but the text will be copied from a webpage in the webbrowser. Any guidance to help me along in creating the required code to get the copy button to work will be appreciated. ...Show All
Smart Device Development Smartphone Sdk 5.0, VS 2005 beta 2 , WinXp 64 Bit sp1
I'm trying to develop some appsps for Windows CE 5.0 with the above software. But i always gettin' a connection and deployment error: All attempts to connect to the deployment target at port 5654 have failed. Addresses attempted: 169.254.204.118; fe80::203:ffff:fe8c:9211%5;fe80::5efe:169.254.204.118%2;::1;fe80::1%1. Connect to device failed. I tried everything: - DMA upgrade - reinstalling - repair - Loopback device with static ip - assigned loopback ip to device and selected loopback device in device settings etc. checked everything. What solution could it give Thx Martin Finally i did ( tried ) it again ( oops ) :- ...Show All
Windows Forms Does the new terrarium work for anyone?
Just thought I'd ask Is anyone ELSE feeling a little stupid for installing the new version before ANYONE reported it worked ...Show All
Windows Forms How to find out Serial Number of My Hard Disk
Hi all, I want to know the Hard Disk Serial Number. My requirement is an application communicates with a remote server for some data transfer. Ii want to restrict the usage of my application to only one system. If the Application is installed in One system It should not be allowed to be installed in another system for the same User. I think Hard Disk Serial Number is Unique. So when the user installs my application i'll collect his Hard Disk Serial Number and store it in the server. The next time user attempts to install it again in another computer that should be avoided. Thanks, Try this Code Project article . ...Show All
.NET Development Select object property in DataTable
Hi, I have a DataTable in which I store custom objects. Is there a way to do a select on properties of these objects Like myDataTable.Select("myColumn.myObjectProperty > 10") Thanks, Tom but it's not one, but 15 properties I need. Not sure if that's a good way to go about it either. ...Show All
.NET Development DataGridView msACCESS
When will DataViewGrid be debugged It goes FATAL without you needing to write ANY code! If you have one minute try the following... Create a new data source pointing to an existing microsoft access 2003 database (*.mdb don't use connection strings or SQL or anything complex) but do ask for at least one table (prefferably of few columns) Drag one table from the data source onto virgin form1 and magically a grid and navagator will appear. Run the program and you will find 'Add new' & 'Save Data' work superbly until you either modify or delete a reocrd when it goes fatal in *,Designer.vb and thereafter all changes are lost. Public ...Show All
SQL Server query to get sql server version information?
Hi! I'm new to sql and would appreciate it if anyone could show me the query that i need to type to get the server version information - I do not have direct access to the sql database (doing some work on an old website that runs on windows box w/ coldfusion :p) appreciate it! hey, thanks for the response! Could you also please let me know what's the column name that's returned The coldfusion markup that I need to use is something like this <cfquery name="getDBVersion" username="*" password="*" datasource="*" dbtype="ODBC"> select @@Version </cfquery ...Show All
Visual Studio Team System New Group remains invisible by WIT system
I add new group to TFS (through Visual Studio Team Explorer). When I am trying to use this group in WI type definition, witimport fails with " '[Project]\New Group' is not a valid user or group name " message. Authoring Work Item Type document from extensibility kit talking about "up to 30 minute" latency between when new group add and when it is recognized by WIT system. In my case after an hour new group remains invisible. To discard stupid syntax issues I tried to use one of default groups and it work just fine. Thanks for any advice, Leon Hi Sundar, It is working! Apparently permissions in classification section were missing. Th ...Show All
Windows Forms Drawing reversible rectangle
I have two picture boxes on my form. One picture box is located on a scrolling panel and represents a "big map". The second picture box displays a "small map" that is subset of the "big map". What I am trying to do is display a rectangle in the "big map" that represents the area in the second picture box. The problem is that the rectangle I'm displaying with the DrawReversibleFrame() API goes away when I scroll the panel where the "big map" is displayed. I was catching the scroll event for the panel and simply trying to redraw the rectangle, but it didn't help. Private m_MapOutline As New Rectangle(0, 0, 0, 0) Private Sub ...Show All
SQL Server Compiling SQL statement in stored proc
(I'm sure this is possible, so maybe someone can just mention the topic that covers it and I'll research it from there.) In essence, I have two SQL statements that are 98% the same, but I want to substitute a few different clauses according to the variable passed in. I can get the following simple example to work fine, as long as the CASE statement adds a simple string. But syntax errors appear when trying to use more complex SQL statements, such as FROM or JOIN clauses, in the CASE statement. I think it doesn't like keywords next to 'WHEN'. If it's possible to compile the SQL statement as one long string while substitu ...Show All
SQL Server Add user to Local Group Error
Guys, I need help installing SQL Server 2005. I meet all of the pre-req's and setup seems to run normally until it starts installing the services and database engine. I receive the following error: SQL Server Setup was unable add user NT AUTHORITY\NETWORK SERVICE to local group SQLSERVER2005DTSUser$server. It repeats the error for for the other groups that are created with SQL install. Am i missing something that's obvious I couldn't find anything in the documentation or anywhere else. Here are a couple of things to try: 1. Check the installation log files, located at %Program Files%\Mic ...Show All
.NET Development return inside using?
Hi, I would just like to ask, if string GetText( int id) { using ( SqlConnection con ...) { SqlCommand cmd = new SqlCommand ("SELECT text FROM texts WHERE id=" + id, con); return cmd.ExecuteScalar(); } } closes the connection Or should I completely avoid calling return inside the using block ...Show All
Visual C++ Using COM Interfaces THIS pointer Question
Sorry about the incredibly stupid title, anyway, here's my question. I have been exploring Direct3D for a while now, and I noticed when debugging that the THIS pointer is pushed onto the stack instead of passed through the ECX register. g_pd3dDevice->EndScene(); mov eax,dword ptr [g_pd3dDevice (4095E4h)] // get THIS pointer mov ecx,dword ptr [eax] // get vTable push eax // push THIS pointer call dword ptr [ecx+0A8h] // IDirect3D9::EndScene(void) *please note tha ...Show All
Visual Studio Express Editions How do I open a url by clicking on a link label?
How do I open a url by clicking on a link label Yeah I remember using that when I was doing a Microsoft tutorial, where the project was a web browser. ...Show All
Visual Studio Express Editions Playing a music file (wma,mp3???) how?
How do you play a music file in vbexpress You can use the COM -object called "Windows Media Player". To add it to your toolbox, rightclick the toolbox, choose "chose items", then click COM-object classes", then scroll down and click the "Windows Media Player" object, and click OK. Then click (in the toolbox) on the "Windows Media Player" object, and click on your form, so it will add the object to the form. Then, to play a music file, use the following command: AxWindowsMediaPlayer1.URL=" add path here ". (notice to change AxWindowsMediaPlayer1 to the ...Show All
