Dámaso's Q&A profile
Visual C# Timer Interval Problem
Hello! The timer interval is an integer, but I want it to be a decimal - how can I do that I cant convert the other numbers to an integer because that won't work, the project im creating needs a decimal. Matt I don't think you should use decimal since timer interval has already in milisecond, if you want interval timer to be 1.2256 second for example, you can multiply it with 1000 first, round it down/up and then convert it into integer (since 0.6 miliseconds will have very very very little effect on the program ) ...Show All
Visual Studio Crystal Reports
I'm new to integrating Crystal reports. What I'd like to do is at runtime alter the where condition of a crystal report. I have a user check items in a listview and then run the report and then I only want to display the selected items in the listview on the report. ...Show All
Software Development for Windows Vista MessageBox wrapping text differently than XP
Is there a stated reason why MessageBox's will wrap text differently than in XP For example a MessageBox in XP may be wide but the same MessageBox (text and caption) will be narrow and wrap the text earlier. Is this configurable or a fundamental change to MessageBox behavior in Vista Thanks, Jim Dialog templates are probably cumbersome to use in C# since .NET has its own resource model. If you really insist on using Win32 dialog templates you can put them in a satellite DLL and load them from there. Or you can just embed the raw template bytes into your program (not easily maintainable) or you can generate the template on the fly. But you'll probably be better off using a dialog box model that ...Show All
Visual Basic Logins
Can someone point me in a right direction to learn how I can use a login form to login to SQLExpress Server using SQL Authentication I am thinking that I would like to use the login for my app instead of embedding one in my application. Is that wrong to thing like that I am thinking right by using this to gain access to my application and login to the server at the same time Davids Learning what is a good example, and where does she go I got the login to function like it should, thanks again! Is there a way to keep the form from melting away, looks kinda sick just fading out when the login completes. Ah yea by the way do I have to call that in every form, or once your logged ...Show All
SQL Server Execution Log Sample Reports - Job Failed
I am trying to install the samle execution log reports provided with SSRS. http://msdn2.microsoft.com/en-us/library/ms161561.aspx When I try to install them on our development server everything goes fine until I try to start the job (step #13 in link above) "Execution of job 'RSExecutionLog_Update' failed. See the history log for details. When I view the history I get: "Executed as user: WILWHAPP\SYSTEM. The package execution failed. The step failed" From the error provided I'm guessing this is a security issue. I just don't know what and where I should change something. Any suggestions ...Show All
Visual C# how to call windows application through windows services
Hai, I am currently doing windows services in this i have to create desktop alerts ,can i use windows application and call into windows services Plz any one help me. Thanks & Regards sai In my opnion, you should not be able to do any UI thing from a windows service. Hence, I think you would not be able to have/call windows application from windows service. The service is supposed to run in background without any UI. ...Show All
Visual Studio Express Editions error message
what does the error message " reclist is not a member of newrec.addsong" reclist is my database file, newrec is the name of the program, addsong is a sub to add new songs. i dont undertstand why i get this message what does this mean, could not loadtype" system byte" fromassembly miscorlib.... i now have two design tads; dataview designer and a dataview .vb{design} ...Show All
Visual C# minimize a System.Diagnostics.Process
I have a System.Diagnostics.Process which I started. I would like to minimize it. How can I do this in C# I found this post, but it is for VB, and it looks like it uses COM. Neither of which I like. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=611361&SiteID=1 If there is a pure C# .NET way to do this, that would be great. ~S The process is already running. I tried doing this (for the sake of being thorough): runningProc.StartInfo.WindowStyle = FormWindowState.Minimized; but it did not work. ~S ...Show All
Visual Studio Tools for Office Serialise Building Blocks and 'load' them while 'online'
Visual Studio in conjunction with Word 2007 gives great opportunities to automate building of documents from XML 'components', but it all seems only possible 'offline', i.e. when the document is closed. I would like to get XML fed into the document (or attached template) while it is open, for example, to update not just content, but also the structure of the document at a user's request, interactively, for when a brand new disclaimer is developed and the user decides to adopt it. Currently, XML properties are read only at runtime and building blocks can only be .Added from ranges (i.e. 'recorded like old autotexts). Can anyone please correct me if I'm wrong or let me know of a possible solution Thanks so much for any help! ...Show All
SQL Server Help! Create index with substring
Good day! We had decided to migrate from Oracle to SQL Server, so faced some problems. Using Oracle we could create indexes like that create index obj_id_cnum on obj_id (substr(cnum,1,2)) But Microsoft SQL Server doesn't allow this code. How can we do the same using SQL Server. Thanks you. Derek Comingore - RSC wrote: dynamic sql... declare @SQL nvarchar(100) set @SQL = 'create index [obj_id_cnum] on object_id(' + substring(cnum,1,2) + ')' exec sp_executesql @SQL set @SQL = 'create index [obj_id_cnum] on object_id(' + substring(cnum,1,2) + ')' gives an error ' Invalid column name 'cnum'. ...Show All
SQL Server Jump to URL
Hi, I have made a report consisting of links to other reports. I open the links via the "Jump to URL" functionality. Is there any way of opening the links in seperate browser windows My users would like to be able to have more than one report open at a time. Thanks for any help :-) -- Heidi -- You can use javascript function instead of a report name. try to use the window.open function. try to write: javascript:window.open('URL'); change URL to your url or report. ...Show All
SQL Server Return Code RC in Query Analyzer
Hi, I've created a stored procedure which inserts values into a table and upon successful execution the RC column gets returned along with the Identity value (I'm using SELECT SCOPE_IDENTITY()), but I don't want the RC column, I only want to get the Id number of the current row. I'm doing this using the Query Analyzer. Is there a way to suppress the RC column I have run the same query on different servers and the RC col doesn't show up. I only want the ID value to put into an ASP.NET page. While testing different query methods from ASP.NET (Output parameter, Return_Value, etc) did I set a flag within SQL Server Sincerely, Fred Try: return <needly value> For example: return SCOPE_I ...Show All
Game Technologies: DirectX, XNA, XACT, etc. So obvious, but can't find it in the FAQ
OK, just got back from vacation and finally got to start playing with the much anticipated XNA beta. Somebody please tell me the previous posts were wrong and I'm just missing this in the FAQ -- they wouldn't really release a game development kit that can't import 3D models, would they I mean, this is such an obvious thing... I'm just missing it in the FAQ, right Somebody, please.... Jurak wrote: This seems to be coming up alot. XNA is NOT a high level game development kit. XNA IS a cross platform (Xbox 360 and Windows) low level game development api. Torque is writing a higher level game development kit on top of XNA. Wait for that if you w ...Show All
Software Development for Windows Vista expand/collapse activities programmatically
How can I collapse/expand a composite activity in code I found no Expand method or similar on the activity class. Thanks to all for your help so far. ...Show All
Visual C++ Float structure
I understand that a float in its binary form have one part that is its value. And one part that is its exponent. But I need to find how exactly a float is structured. How many bits are used for the two parts, etc... Need this information to contruct my own float to string converter. TIA! , Espen http://steve.hollasch.net/cgindex/coding/ieeefloat.html and http://www.codeguru.com/forum/showthread.php t=323835 should get you started. ...Show All
