The_Drewster's Q&A profile
Visual Studio Express Editions .exe file
I can run a project by clicking on the project's .exe file located in the debug/bin directory created by VB Express. However, if I move that file to a different directory I get an error when I try to run it. How can I run a project's .exe file when it is loacated in a different directory Thanks, Antonio Thank you Brendan and all the others. I was able to make it run by just copying two .dll's that I referenced in my project. (Of course, it also works by copying over all the files of the bin directory) Thinking about it, is it possible to avoid this by giving the full permanent address to the dll files (C:/....) somehow Among other things it is a dup ...Show All
Smart Device Development Sample sdk code "Mapirule" works only on PPC. Facing problem on SP 3.0 and 5.0. Need help
Hi, I am working on the sample application "MapiRule" supported by Windows Mobile SP0.3 and 0.5, PPC0.3 and 0.5. It will be available in \Program Files\Windows CE Tools\wce420\SMARTPHONE 2003\Samples\Win32\Mapirule This is working perfectly on PPC 2003 device but not on Smart Phone 2003 and 2005. After deploying it on PPC3 it helps me filter sms messages with subject/msg as "zzz" . It displays the sms in message box and later deletes it. So it helps me filtere the sms message for which i register. This filtered sms is thus not seen in PPCs native Inbox. In case of SP3.0 and 5.0 its doing the registery entries as mentioned in msdn help but its not calling the processmessage() which actually recives the sms ...Show All
Visual Basic MDI Child
I need help saving/updating/deleting multiple records in the database via dataset. How i want to do that details are below: please help ASAP. I have a datagrid view and i have five new records in it or i have edited five records or deleted five records and i passed those five records to the dataset in a n-tier application, now i want to save the records into the database using stored procedures. How can i save records row by row. I mean every row is passed to the parameteres, one row at a time using a loop and how to check that five rows are inserted into database and now no record is left back. It was quite simple in vb 6.0 i am having problem in VB.Net. Thanks again for helping me. Regards Mirza Ashraf ...Show All
SQL Server Defrag for SQL Servers inside a Virtual Machine?
sorry for asking here, since there's no forum for Virtual Server My question is We have 2 SQL Server instances on 2 Virtual Machine/Servers (say VM1 and VM2), which resides on a real physical machine (say A) Is there point in defragging VM1 or VM2's hard drive at all or should I just defrag on the physical machine A that's what I thought anyway, first time I defragged without shutting VMs down, I got a blue screen on 1 VM second time I defragged still without shutting VMs down, everything went smoothly I guess it's safer to shut down the VMs anyway Thanks for the answer ...Show All
Visual Studio 2008 (Pre-release) UpdateObject() / AddObject issues
I just got done reading Danny's excellent article here and I just tried to incorporate that logic into my own ObjectDataSource. When I call db.AddObject(), the entity's ID gets reset to 0. This doesn't seem right at all. :) Is there something I could be overlooking Thanks for any help! (Have I mentioned yet that this is AWESOME STUFF I haven't been this excited about programming in years!) Mike Ok. Found the problem. The problem is that even though the values for the ProductID is set, the actual Key property is null. If I put the following line in before the AddObject is called: entity.Key = context.CreateKey( typeof ( T ), new KeyValuePair < string , object >[] { new KeyValuePair < string , ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Raytracing with DirectX
[original question from split thread http://forums.microsoft.com/MSDN/showpost.aspx postid=1274336&siteid=1 ] As a sidenote, if you know, could you explain to me the relationship between Shader Model 3.0/4.0 and DirectX9/10. I've read the documentation, but am a little confused. If a motherboard supports DirectX 10, does it automatically have support for SM4.0, or can it be DX10 and still only have support for SM3.0 Actually, there is a case where some new motherboards support DirectX 10. The Intel, DG965WH says in its manual: http://www.intel.com/design/motherbd/wh/wh_documentation.htm that it does support DirectX 10 through the onboard video chipset X3000. There are conflicting reports on the int ...Show All
Visual Basic Hotkey
Hello all, I have made an application and I want my user(s) to access it using a hotkey. How exactly do I go about doing this Do I do this during program installation and have some sorta script install the hotkey into window. or can I include some code into my application Thanks! Thank you very much for your response. This post actually really is helpful but I am still uncertain about how to go about doing this without a listener applicatino running. I can assign a hotkey to an application on my desktop so I figure there should be a way to automatically assign a hotkey to an application. I am not sure if this is even possible to do with .NET (you should though) but maybe C++ ...Show All
SQL Server How to shrink my database
hello i know how to do shrinking DBCC SHRINKDATABASE( XXX, 10 ). But my question is how we know minumum shrinking Database value through stroed procedure. please help me i need to shrink Database. thanx kiran thanx for you response rod. but i have some small question can u we put defaulut "1" every time like DBCC SHRINKDATABASE (northwind, 1 ) regards kiran ...Show All
Visual Studio Express Editions tab control
Hi I am using a tab control, a status strip and a tool strip. the tool strip is docked at the tp and the status strip at the bottom but when i try and dock the tab control to fill the form it is hiddne behind th other two controls. How can i solve this problem Drag the Tab Control to the size you want it to be relative to the rest of the form and controls and set it's Anchor property to anchor it to the top, left, right and bottom. By doing this as you change the form size the tab control's size will automatically grow/shrink in just the same way. ...Show All
Smart Device Development Arabization support (RTL languages localization)
i m wokring on mobile application targeting mostly on middle east customers, we want to add support for arabic language, but i see there is too little support in that regards. i might be wrong, please clearify my misunderstandings. Do we need a a localized device , though my culture show ar-SA , but still no text box support rtl, Numbers are shown using english script not the arabic one, is there any way to configure it , i tried to setup different regions via Regional settings, but no success, any help wil be appreciated regards Unless your device is localized in Arabic (all menus are in Arabic), you probably would need to do custom conversion from numeric binaries to strings. You would also need Arabic fonts available to display ...Show All
SQL Server Help with simple insert, how to use primary key?
Ive added a primary key called ID to my table, now my insert stored procedure dont no longer work. i want an unique identifier for each row. heres my stored procedure: CREATE PROCEDURE composeMessage -- Add the parameters for the stored procedure here @username varchar ( 24 ), @sender varchar ( 24 ), @date dateTime , @subject varchar ( 255 ), @message varchar ( 2500 ) AS BEGIN insert into Messages ( "Username" , "Sender" , "Date" , "Subject" , "Message" ) values ( @username , @sender , @date , @subject , @message ) END GO &nbs ...Show All
Windows Forms Automatically Wrap Text in Label
I have the following scenario: I have a TableLayoutPanel in my form. In one of the cells I want to place a Label control to display some text. The label might have just a few words. It might have a paragraph. I would like the label text to automatically wrap inside the cell in the TableLayoutPanel. If the row in the TLP is not large enough, it should automatically grow so that it can display all of the text. 1) I have tried setting Dock:Fill and AutoSize:False on the label. This will cause the text in the label to wrap, but it will not grow past the size of the cell in the TLP. If I set the row in the TLP to be AutoSize, the whole row becomes hidden. 2) If I set it to Dock:Top, AutoSize:False, and set the TLP row to AutoSize, this works, ...Show All
Visual Basic visual basic 2005 to 2003 and also vice versa
Hi, I wanted to know if it is possible to convert a Visual Studio (visual basic) project from 2005 edition to 2003 edition project. I would like to do this because, at home, I have the 2005 edition but at school they have the 2003 edition. I would like to work on my projects at home and at school so I wanted to know if there is a way to convert them or use them with each other I looked online but all I could find on Google was converting 2003 editions to 2005. Thanks. no worries. Again like I stated, the .NET Framework versions are different so not entirely possible to convert it backwards due to new classes created for the newer version of the .NET framework(s) and there wouldnt be anything similar ...Show All
Visual C++ Cl.exe / link.exe / lib.exe: Need help with command line opts
Hi, I'm working on an MSBuild setup for compiling for both desktop and WCE devices. Got everything installed, but here's the observation and question: All of the tools are named the same (i.e. compiler is cl.exe, linker is link.exe, etc.) What (in as much detail as possible, msdn help doesn't cover very well) does the /MACHINE option do Can I use the desktop compiler (located in Visual Studio 8\VC\bin) to compile for CE devices by throwing the /MACHINE:ARM switch Am I required to use the /MACHINE:ARM switch when compiling/linking from the link.exe located in the CE directory Am I required to use the cl.exe found in "Visual Studio 8\VC\ce\bin\x86_armv4i" Is there a difference When using the linkers (same ...Show All
SQL Server Export SQL Server 2k/2k5 DB to SQL Mobile 2k5?
Hi, I'm currently doing a application for a smartphone which requires me to replicate the desktop version of a db which was running on SQL 2k. From my reading, it seems that i will need SQL server 2k5 Management studio in order to convert my desktop db to the SQL Mobile version Is there any other way For now, i only have the 2k5's management studio express which came with my VS 2k5. I only notice that the express version doesn't allow me to create a SQL mobile db. Thanks!! John SQL Server Express can also create a SQLCe (Compact Edition) database. It's a bit more convoluted, but you can also download the SQL Server Mananagement Studio (Express) that can create it as well. I describe how to create datab ...Show All
