rwbogosian's Q&A profile
Visual Studio 2008 (Pre-release) How to prevent TabControl from doing multi rows?
Unfortunately the TabControl displays a second line for TabItems which do not fit in the first row. Is there an easy way to prevent the TabControl from doing multirows, to enable a TabControl look like VisualStudio or IE7 Hi Drew thanks a lot ! in your Sample, a closing </ControlTemplate> is missing (line 60) </Grid> </ControlTemplate> </TabControl.Resources> ...Show All
.NET Development Issue with HTTP GetRequestStream
Below is the code i used to send files over HTTP to a python CGI script. The script is working perfectly fine. The code below work fine in visual 2003 compile with .net 1.1 but when i compile in visual 2005 .net 2.0 i always get a time out at "req.GetRequestStream()". Anyone know the reason why The code below was reference from the link below: http://www.heikniemi.net/hc/archives/files/httpupload.zip /// <summary> /// Uploads the given data. /// </summary> /// <param name="url">The url to which the data shall be sent.</param> /// <param name="cookies">Cookies to be sent with the request.</param> /// <param name="credentials">Login credentials to ...Show All
Smart Device Development Using custom fonts on windows mobile devices
hello, We are developing an winforms application for win mobile devices. We need to target win mobile smart phones 5.0 and 2003, also win mobile ppc 2003 and 5.0. What we should do if we want our own custom fonts for the application. can we use and install a particular true type font on all of the devices above second option is going for our own bitmap fontstrings but in that case how can we use them in managed application where controls like textboxes,listviews does not support these fonts we are developing managed application with c#., and as much as possible want to leverage on rich controls provided by .net., Only hurdle here is fonts, please suggest us suitable solution urgently. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Displaying scores on to the Screen
I have a 2D game in which you try to stay away from the enemy as much as possible. Every 100 milliseconds the enemy moves faster across the window. While this happens, how can you display the level and the score to the player Drawing a map: - http://www.xnaresources.com/blog.asp action=viewarticle&articleid=4 Drawing score - http://blogs.msdn.com/garykac/archive/2006/08/30/728521.aspx ...Show All
Game Technologies: DirectX, XNA, XACT, etc. ID3DX10Mesh and multiple vertex streams?
I've recently started looking through the D3D10 documentation. I was looking through the mesh interface to see what was new etc. I noticed that there are a handful of functions in the interface that seem to indicate support for multiple streams -- such as: UINT GetVertexBufferCount( ); HRESULT GetVertexBuffer( UINT iBuffer , ID3DX10MeshBuffer ** ppVertexBuffer ); HRESULT SetVertexData( UINT iBuffer , CONST void * pData ); etc. However, the D3DX10CreateMesh function takes only a single pointer to a D3D10_INPUT_ELEMENT_DESC. Am I missing something Or is multi-stream vertex data just not supported with the ID3DX10Mesh Interface Brian Lawson wrote: However, the D3DX10CreateMesh functio ...Show All
SQL Server DataSet .xsd use / Re-use concepts?
Hi all, I've asked this question on another forum on the 2nd October 2006 and has gone unanswered to date. I'd like to discuss SQL Express DataSet controls use / re-use concepts. As I have been so busy sorting out the ins-n-outs and the dos-n-dont's of database connections n usage I haven't had a chance to focus on this issue. Let me exagerate to make my point. Lets say I have 10 forms. Each has the standard DataSet, BindingSource, TableAdapter, and BindingNavigator. Each form has the exact same general (broad scope: select * from myTable, myTable2 etc) query. My solutions explorer has 1 Dataset .xsd for each forms query: myDataset01.xsd myDataset02.xsd myDataset03.xsd .... myDataset10.xsd Is this how I should handle the ...Show All
Windows Forms private static methods vs private non-static methods?
Could someone please tell the difference between private static methods and private non-static methods. I know that a static method is created only once per class rather than in every object based on that class, and we can access a public static class member without creating an instance of the class. However, I am not quite sure when we should use private static methods. Thanks. Thanks nobugsz, but I am still confused and still don't quite to understand the difference between a private static method and private non-static method. Could you give me an example where a private method has to be static ( If that private method is non static, the program doesn't work as expected.) Thanks. ...Show All
SharePoint Products and Technologies Install WSS 3.0 with Search but without SQL Server
I'd like to make a full WSS installation with the exception of SQL Server Express. If I choose "Basic" or "Advanced -> Full" intallation scenarios it installs SQL Server and I cannot uninstall it separately. If I select "Web Front-End", it then lacks search service (as per imbedded help). Is there any workaround Correct. WFE actually includes the Search Service (that I still can't activate, but that's for another topic). But I could find it only after installing WFE. However, the embedded help says: A Web server accepts HTTP requests from client computers and passes them to an application server, a database server, or some other computer for processing. When the addi ...Show All
SQL Server Change Color of Textbox Depending on Value
I have the following: =IIF( Sum(Fields!Percentile.Value, "RegionalSnaps") < 10.0, "Yellow", "Black") Doesnt appear to be changing color to the numbers, actually its just putting the work black in all the cells in the report, the nubmer are % numbers, like 10.53% of 3.45%, and if its great than 10.00 % I want the textbox to show up yellow, if its >10% i want it to show up normal. Any help would be greatly appreciated. I tried that and than this is what I get: h:\sqlreports\snaps\Report1.rdl The background color expression for the textbox ‘textbox2’ references a field outside an aggregate function. Value expressions in matrix cells should be aggregates, to allow for subtotaling. h:\sqlrep ...Show All
SQL Server Can a non-admin user generate a create database script?
I am trying to generate the create database script using SMO. The issue is the user account which connects to SQL server is not SA, SMO fails to generate the "Create Database" script with error User ZZZ\User1 does not have permission to run DBCC SHOWFILESTATS. Is it possible to generate a "Create database" script using SMO when you are connecting to the SQL server using NON-ADMIN account The user login is a part of db_Datareader role on the database. I tried following grant permission to the concerned account at server level Grant view any database, grant view any definition and grant view server state. Still it fails. Any idea I am NOT trying to create the database or for ...Show All
Visual C++ 24Bits Bit-field Alignment error under VC++
Hi, I wrote code to interact with some netrork device. One of the network structures contains a 24-bits field. Everything is packed to "1" (byte). struct test { char bob0; char bob1; short bob2; char bob3; unsigned long bob4 : 24; unsigned long bob5; }; int main() { test tt; tt.bob0 = 0; tt.bob1 = 1; tt.bob2 = 2; tt.bob3 = 3; tt.bob4 = 4; tt.bob5 = 5; unsigned long * ptr; ptr = (unsigned long *)&tt; printf("%08X\n", ptr[0]); printf("%08X\n", ptr[1]); printf("%08X\n", ptr[2]); printf("%08X\n", ptr[3]); printf("%08X\n", ptr[4]); return 0; } Under Visual Studio (2003 and 2005), the result is: 00020100 00000403 000005CC <-- CC Packing is at 1, there s ...Show All
SQL Server Search for data inside a Recordset Destination
Hi there, I need to develop a module and wondering what would be the best implementation... I get a list of files from a text file and store it in a Recordset Destination (object variable "CUST_INV_LIST"). I need to check that all the files in a directory are in the list. I can loop through the files in the directory using a ForEach container, but how do I check if it is in the CUST_INV_LIST recordset I thought about using another ForEach container to loop through the recordset, check if the physical file is equal to that row, if so set a flag, ... but it's neither elegant nor effective. Another option would be to use a Script Task to search for the physical file name in the recordset. I tried with the Data.OleDb.O ...Show All
.NET Development TransactionScope, ADO.NET, and Timeouts
Hi! I've been having trouble using the TransactionScope to wrap multiple database queries into a transaction. What happened was, that the queries took too long to finish and the transaction timed out. Of course, this is the expected behaviour. What I didn't expect, is that the data was committed to the database anyways. I built a small test-app to see what happens. At first, I thought it was because I opened the database connection before starting the transaction. That's why I built two methods, one opening the SqlConnection before creating a TransactionScope, and one the other way around. Both simply add some entries to the database and wait a little to cause the timeout. And in both cases, the result was identical. What I noticed was, th ...Show All
Microsoft ISV Community Center Forums Passing new parameters to rdlc reports
Hi guys, ive sucessfully made a simple report(.rdlc) in VB.Net using the "wizard" of Visual Team Suite. Now, is there anyone here who could help me pass a new parameter to the report For example, i have a report that shows ALL the transaction of a company. Now, what need I need to know is how will I pass a new parameter to the report if the user only wants to view certain data like data from a Jan. 1, 2006 to Jan. 5, 2006 Thanks!! :) ...Show All
Visual C++ Upgraded project from old vs.net to vs2005 gives following error any suggestions?
C:\Program Files\Microsoft Visual Studio 8\VC\include\iosfwd(343) error C2039: 'wmemcpy_s' : is not a member of '`global namespace''error C2039: 'wmemcpy_s' : is not a member of '`global namespace'' 'wmemcpy_s' is probably a macro , so if your style is '::wmemcpy_s' MS compiler gets confused (easily). If that is the case remove scope '::' and it will work P.S. It is possible that in your code it looks like '::memcpy' - new version does us a “favor” of subsisting such calls with so-called safe versions, whatever we want it or not. ...Show All
