Jessica Alba's Q&A profile
Visual Studio Express Editions How to get the Last Day of a particular month.
Hi I need to find the last day of a particular month (for example the last day of Feb 2007 is 28). How can I get this. I will be thankful if you help me regarding this. Hi, Here is an example: int month = 12; int year = 2006; int numberOfDays = DateTime . DaysInMonth (year, month); DateTime lastDay = new DateTime (year, month, numberOfDays); Greetz, Geert Geert Verhoeven Consultant @ Ausy Belgium My Personal Blog ...Show All
SQL Server Initializing a Merge Subscription Without a Snapshot bugs
Hello guys, We have customers that are using web synchronization. Could you, please tell us when service pack for the bugs, discussed in thread http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=689428&SiteID=1 will be reliazed What replication participants should apply the service pack in a configuration where Subscriber (MS SQL 2005 Express) gets synchronized with Publisher/Diustributor (MS SQL 2005 Standard) Thanks. Alexander. Alexander, there is no service pack that address the problems mentioned in the thread. As mentioned in the thread, we are trying to encourage customers not to use No Sync menthods when they can. However if you need to use it and are encountering blocking ...Show All
.NET Development sending data through sockets..
there is a server and a client.. i connected them using sockets.. i want the Remote "client" app. to draw when i move the mouse on the host"server" app.. i got the mouse position from the onMouseMove () but i dont know how to keep sending the coordinates to the client so it can paint.. thnx. osamaT wrote: "value either too big or too small for unsinged byte" I take it mc[] is an array of byte A byte can contain values from 0 to 255. Your screen is probably 640 * 480 (or bigger ). So the X and Y for the mousecursor position cannot be captured in an array of byte. Make it an array of int and try again! ...Show All
Visual Studio 2008 (Pre-release) Code in XLinq Overview document does not compile
The code in the XLinq Overview document in section "2.8 Working with other types of XML Nodes" on page 19 (23rd physical Word page) does not compile. It complains that there is no overload for the XDocumentType class that takes no arguments: XDocument xdoc = new XDocument ( new XDeclaration ( "1.0" , "UTF-8" , "yes" ), new XDocumentType (), new XProcessingInstruction ( "myApp" , "My App Data" ), new XComment ( "My comment" ), new XElement ( "rootElement" , new XAttribute ( "myAttribute" , "att" ), 1234, new XText ( "Text with a <left> bracket", T ...Show All
Visual Studio 2008 (Pre-release) ScrollViewer and KeyDown
Hi guys, Here's my scenario. I have a ScrollViewer hosting an ItemsControl that uses a vertically oriented StackPanel full of TextBlock's. (In other words, I'm trying to mimic a listbox.) My question is, how do I get my StackPanel to recieve KeyDown notifications so I can use the keyboard to navigate/select my list of items. Currently, what happens is that the ScrollViewer recieves the notification and scrolls instead. I should point out that I'm laying out the items by using a DataTemplate. <Window.Resources> <DataTemplate DataType="{x:Type entityCollection:SomeEntity}" x:Key="listBoxItemTemplate"> <Grid Margin="2,2,2,2"> & ...Show All
SQL Server SQL Server 2005 return null in primary key
In a new instalation of SQL Server 2005. I've made a restore from SQL Server 2000 database. Solve some problem with the user, and it looks ok. I'm using a asp web aplication, with vb dll, and change the sql provider from "SQL Server" to "SQL Native Client". It works, but in some recordsets the value a recive for the table primary key is null If execute the querie in the database, the result has values in the primary key. the same appends when i connect to an SQL Server 2000 using "SQL Native Client". Please help, what can i do. Is this problem consistently reproducible Or is it an intermittent problem If you can provide some additional information ...Show All
Windows Forms Odd Control Painting Behavior
I'm having some odd painting problems with a control I created when the app is run in release mode OUTSIDE of the VS2005 IDE. The control is a custom progress indicator that simply has abox bouncing back and forth to show activity. The updating of the control is occuring in a timer event. The control visually updates fine in eith debug or release when run in the IDE and in debug mode outside of the IDE, but not in release mode outside the IDE. I have tried calling .Refresh() on the control after .Invalidate() in the controls paint event as well as .Flush() on the graphics class in the controls paint event. I placed MessageBoxs in the paint event and I can tell the the controls paint event is happening. Has anyone else seen this type of beh ...Show All
Windows Forms Datagridview - OnRowInsert
Hi all. I have a problem. I need to lookup a record in another DataTable when i do a rowinsert in a grid. But if i create a event for RowInsert this events gets fired to many times when the grid is being populated. (I get my data from a progress db og all my data is in "dataset.tables[0]." For instance. If i have a datatable with 5 rows in it i would like this event to be fired for each 5 rows. this does not happend. It fires this event for empty rows without any binding and when openting the form. Why and how can i make the code so that the event only fires if valid data is to be shown //Create a few extra fields in my datagrid. (must be done in grid. The binding table must be untouched) //new columns int newIndex; ne ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Game Component Design Guidelines?
Anyone have any suggestions, tips, experiences, etc regarding designing and developing Game Components With the move of the GraphicsComponent to a service (which makes sense), one of my questions is remains: what makes a good Game Component In pre beta 1, other Game Components that were hinted at were a Camera and Fps Counter. In beta 2, would these still be Game Components, or be left at system-level Is the choice as simple as whether or not your would-be-component has an Update method that takes a single GameTime parameter Same goes for IDrawable, if a Draw method with a single GameTime parameter is sufficient, should this be a Drawable Game Component Is it a never-ending debate such as the guidelines for designing Interfaces ...Show All
SQL Server Import/Export data with SQL Server 2005 Express
Hello folks! I have installed SQL Server 2005 Express and SQL Server Management Studio Express. Everything looks ok and works fine, but I can't find the Data Import/Export Wizard. Can anyone tell me how to Import/Export data Thank you!!! You can you other means to move data in and out of SQL Express that don't rely on SSIS. BCP is one such tool, you can find more information about BCP at http://msdn2.microsoft.com/en-us/library/ms162802.aspx. If you are working with data in Access, you can use the functionality of Access to directly export the data into SQL Server. Most other programs can generate data in a format that BCP can accept. Mike ...Show All
SQL Server Open SSIS project error: Unable to cast COM object of type
When I open up my existing SSIS project, I always get this error. Does anyone know what was wrong TITLE: Microsoft Visual Studio ------------------------------ Unable to cast COM object of type 'Microsoft.SqlServer.Dts.Runtime.Wrapper.PackageNeutralClass' to interface type 'Microsoft.SqlServer.Dts.Runtime.IObjectWithSite'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{FC4801A3-2BA9-11CF-A229-00AA003D7352}' failed due to the following error: The application called an interface that was marshalled for a different thread. (Exception from HRESULT: 0x8001010E (RPC_E_WRONG_THREAD)). It seems SQL 2005 does not do a good job to tell us what the error is... Not sure ...Show All
Visual C# What should I do? ---help...
when I'm doing a MDI application, I have to catch the event : when the child window is closed by click the control box. that means I have to do something before dispose the child. as : mdiParent is form1, the child window is cld. should I add event process and How thank you!! Add a FormClosing event: this .FormClosing += new EventHandler(Form1_FormClosing); private void Form1_FormClosing( object sender, FormClosingEventArgs e) { e.Cancel = true ; } ...Show All
SQL Server Access/Server
How do you change the connection string of a DataSet We have been using MSAccess for our database, but have recently upgraded to SQLServer Express. I was able to successfully upsize the Access database and now all information resides on the server. In my VisualBasic program, the dataset itself has around 200 queries total spread out on multiple table adapters. The problem now is that none of these queries work because the dataset is bound to the Access table. I have changed connection string through code and am able to display the information, but am unable to interact with it until i get the dataset connection changed. I would rather just change the connection of the dataset somehow rather than build a new dataset, reconnect all form ...Show All
SQL Server Getting Destination Columns
How do i get all the destination columns of a table in a sqlserver destination component ...Show All
.NET Development Error: Unable to open shim database
I get this kind of events logged in the eventlog: Source: .Net Runtime Type: Error Unable to open shim database version registry key - v2.0.50727.00000. Is this 'normal' behaviour or is there a misconfiguration. I have this messages on Windows 2003 Server, on SqlServer2005 boxes as well on TFS app tier and Terminal Server running VS2005. Strange thing is: everythings seems to work OK... Rene Hi Jesse Is this error logged in the KB or msdn , can you give me the link for this issue in microsoft site. ...Show All
