kyu5354's Q&A profile
Visual Basic how do I ensure the entire box is highlighted
I hope someone can help me. It's probably something simple but I'm completely new in this. In my access 2000 I have several boxes (cells) of which one is the most recent and hence needs to be highlighted. I've managed to het it highlighted but with new entries into this database the boxes (cells) get smaller or bigger -depending on the text inside them. This most recent cell got bigger but the highlighting stayed the same size as it was previously. What can I do to ensure the highlighting of the cell changes with its size changing. Please help. ...Show All
SQL Server Casting...
I've got an ftp task that will be downloading a couple of files each night. today they're called blah20060830blah the date value in the middle changes each day. I'm trying to adjust this value with an expression. The expression doesn't want to cast my getdate function into a string that this property will accept. I know i'm missing something stupid. Thank you Oh OK. Sorry, I thought you were in a Derived Column Component (which you are not). Your approach is the corect one. its jsut going to take some debugging that's all. The Expression Editor itself has some really useful visual aids as to the syntax of all the functions etc... Loom in the box in the top-right of the expressoin editor. -Jamie ...Show All
Game Technologies: DirectX, XNA, XACT, etc. When will the next beta of GSE be released?
When will the next beta of GSE be released Why would that be helpful How does knowing when the next release is coming out help with testing the current version That is what we're supposed to be doing - testing. ...Show All
Visual Studio Express Editions rounding
I am using this code, Randomize() lblDsuit1.Text = CStr ((10 - 1 + 1) * Rnd() + 1) The numbers it generates are all decimal numbers, how can I make it round each number off A better way -- This will result in a whole number within the range. The second argument after Next is the upper value of the range plus 1. Next(1, 11) will generate a whole number between 1 and 10. Dim randnum As Random = New Random() num = randnum.Next(1, 11) snum = Convert.ToString(num) By the way, to round a decimal number into the nearest integer, always rounding up if it ends with .5, use the Math.Floor method: inum = Math.Floor(dnum + 0.5) ...Show All
Visual Studio 2008 (Pre-release) adding dlinq to existing project
I cannot compile when I try adding DLinq to a new project in my solution.I want DLinq stuff to live in a DAL project and not my main project as I might want to swap out the DLinq support. I can write code like: string connectionString = ConfigurationManager .ConnectionStrings[ "membersConnectionString" ].ConnectionString; DataContext db = new DataContext (connectionString); // Get a typed table to run queries Table < MyUser > Customers = db.GetTable< MyUser >(); // members.MEMBERS db = new members.MEMBERS(connectionString); MyUser member = Customers.Single(c => c.username == "John" ); if this is in my root project however if I move the code into a subproject the code f ...Show All
Visual C++ C++/CLI problems/issues
I have some questions on C++/CLI issue. Let me explain my situation: I have an existing native COM dll that contains my logic. It has been tested and works fine with native C++ client using CoCreateInstance. I would like to add a new logic and notice that BCL has a class that I can use. So I add a new source file and header which I compile with /clr since I need to use one of BCL classes (actually, at this point, it is just an empty shell). When I tried to CoCreateInstance in my native client, it couldn’t create. But if I go back to my COM dll project and take out the /clr in my new source file, it works fine. After some debugging, I found out the problem and have been able to fix the issue. However, I would like to get more detai ...Show All
Windows Live Developer Forums Stop mouse wheel zooming
I am trying to stop the default behavior of mouse wheel zooming while the cursor is on the map. I don't want the users to do this in my application. I know that there is no option for this yet. In Firefox I succeeded by doing the following: $('mapHolder').observe('DOMMouseScroll', function(e){Event.stop(e);}, true); - mapHolder is the div that holds the map - I am using the Prototype Event model and also using event capturing by setting the last parameter to true The problem is IE where there is no event capturing and stopping the event on the mapHolder does not work. $('mapHolder').observe('mousewheel', function(e){Event.stop(e);}, true); The event bubbles up and executes before my code. I also tried to find out which is the element that ...Show All
.NET Development PDB Format
Hi, How to work with PDB files with help of the classes from System.Diagnostics.SymbolStore namespace Where it is possible to find description of the PDB format Thanks. I have not found anything useful about PDB in the Google. Only references to DIA SDK. But I don't want to use Runtime Callable Wrappers for my C# programs. System.Diagnostics.SymbolStore - good idea, but how this classes to use For example, in constructor of the SymReader class I should pass unmanaged pointer to ISymUnmanagedReader. How ...Show All
Visual Basic Could someone point me in the right direction?
Not even sure where to start. Need to subtract quantity from inventory table when quantity is added to invoice table. Start with transaction stored procedure Any guidance would be appreciated. Cammyr, Please take a look at the System.Transactions namesapce in MSDN as the following link and choose the proper class needed in your project: http://msdn2.microsoft.com/en-us/library/system.transactions.aspx ...Show All
Visual Studio Questions about Sandcastle
I have some questions and observations regarding the July CTP of Sandcastle when using it to generate documentation. The generated CHM file doesn't seem to have an index. There's no Index tab displayed in the viewer. The generated CHM file doesn't seem to have search capability. There's no Search tab displayed in the viewer. When the CHM file is double-clicked to open it for viewing, the right-hand pane of the viewer shows a mostly-blank page with a small warning icon in the upper left-hand corner. This mostly-blank page goes away when any of the entries in the table-of-contents in the left pane are clicked. In the CHM file, the documentation entries for class constructors always seem to have ".ctor" prepended to them. The table ...Show All
Visual C# Pass parameter between two .cs in the same Windows app
Hi, I created a Windows app with one form (Form1), and a new class (A.cs). I want to pass a parameter (by value or reference - it doesn't matter) from Form1.cs to the of the other class to do some computations then return the result to Form1.cs. However, A.cs won't let me receive the value from Form1.cs. That is, when I type the code in A.cs: namespace StatCalc { class ArithmeticMean { public AMean(iValue) I get an error on the line with "public AMean" "Class, struct, or interface method must have a return type" "identifier expected" "; expected" So does anyone know a solution to this Thank-you It appears that ...Show All
Visual Studio Team System Upgrade problem : "TFS sql server exists and their schema doesn't match..."
Hi upon trying to upgrade to RC I encountered a problem : "TFS sql server exists and their schema doesn't match the version expected by setup" how do I workaround it all the upgrade steps went fine until this one.... 10x, guy Thanks Allen, It worked. I have successfully installed VSTS RTM, but I am not sure how do I now add my existing projects I can create new projects just fine after uploading my customized process template. Please let me know. Thanks, ...Show All
Visual C# Which type in C# is equivalent to C++ HResult?
Hi, everyone. I have this kind of problem. On faculty i got to make an example of OPC HDA server with async reading. Also, only thing i got is specification of OPC standards. Now, i have trouble. I have OPC Core components exe file, which i instaled. When i create my file which implement, let say, IOPCCommon interface, i imported required dll file, which provide necessary interface. For one of methods i got next thing. public void GetErrorString(int dwError, out string ppString) { throw new Exception("The method or operation is not implemented."); } In specification is said that this method returns HResult HRESULT GetErrorString( [in] HRESULT dwError, [out, string] LPWSTR *ppString ); How should i implement ...Show All
Software Development for Windows Vista Transitioning from BizTalkServer 2004
Hello, I have a workflow orchestration in BizTalk 2004 which I would like to transition to WWF. Does anyone know of any resources which relate to such a move It seems that many of the concepts are similar, just work differently. Thanks for any assistance, Matt Bell Hi, I am no expert on BizTalk but the two are very different. For one BizTalk is a complete server product with a whole infrastructure around it. WF on the other hand is a library with just the workflow bits that you need to host yourself and provide the infrastructure for. From my understanding the next version of BizTalk will use WF inside of it. So it sounds to me, that depending on how much of BizTalk you are using, the move co ...Show All
SQL Server Not quite right...
We keep a database of events that are classified by severity. I've got a good, efficient query that gives me the grand total for these events. And I have a bad slow query that breaks down the information into daily totals. My fast query will count the totals for 3213586 events in 4 seconds. The slow daily query takes about 60 seconds for each day. Please help optimize my slow query! ------ Database schema is: Column Name Data Type Length Allow Nuls 1 msrepl_tran_version uniqueidentifier 16 0 0 [time] GMTtime (int) 4 0 0 msec int 4 1 0 offset GMToffset (smallint) 2 0 0 type nameType (varchar) 15 ...Show All
