Software Development Network Logo
  • Visual C#
  • VS Team System
  • Visual C++
  • Windows Forms
  • Game Technologies
  • Smart Devicet
  • Microsoft ISV
  • SharePoint Products
  • IE Development
  • Visual Studio
  • Visual FoxPro
  • Windows Vista
  • .NET Development
  • Audio and Video
  • Visual Basic

Software Development Network >> Berky's Q&A profile

Berky

Member List

jsedlak
Sheikd
Ingenious
RobZeilinga
jss3426
JayPi
Mr_White
clayhien
Evgeny Popov
Ringo21
nbrege
toddhd
glenhoo
DnKostya
mrshrinkray
JCakeC
Rozee
Alle
cmwith
Guy F
Only Title

Berky's Q&A profile

  • Visual Studio Express Editions Fixing Form size

    VC++ 2005 Express I'd like to fix the size of a form so that it cannot be resized. I set the property "Locked" to "true" but that did not seem to make a difference, even though I understand that it should have. Is there another property to set Thanks. Thomas Are you writing a Windows Forms application or a native application If it's a managed program, the answer is at http://msdn2.microsoft.com/en-us/library/system.windows.forms.formborderstyle.aspx . If it's native, you need to set the window style appropriately when you register the WNDCLASS/WNDCLASSEX. ...Show All

  • SQL Server Data SWITCH partition fails with primary key constraint Error

    Hi champs, I am trying to use SWITCH partitions from one fact table out to another identical table. On some tables this does not work as I get an ERROR conserning primary key constraints; is there a way around this without deleting the primary key constraint ERROR: "SWITCH PARTITION 1 TO my_switch_out_table PARTITION 1 " failed with the following error: "ALTER TABLE SWITCH statement failed. SWITCH is not allowed because source table 'my_fact_table' contains primary key for constraint " /Many thanks I have one table that has a two colums as a PK and this table has a PK constraint to one other table and other constraints to 5 other tables. I've constructed the ...Show All

  • Windows Live Developer Forums Move a pushpin

    HI, Thanks everyone for the help. My next problem is simulating moving a push pin So far I can make a clickable pin, it highlights when it the user clicks it all ok so far. Then I want the user to click a new position on the map. The problem is that if I use map.AttachEvent( 'onclick' , HandleClick) then this disables the ability to click the pushpins! Does anyone know why this happens and how to get around it Many thanks Martin I have clickable pins and a map onclick event without issue see: http://www.lookupandsmile.com.au/what_map.aspx Here for the custom popups if you click anywhere on the map the popup is hidden. Maybe there is an error in your code It certianly is possible. John ...Show All

  • .NET Development Saving data to two related tables

    I have two tables related as such: one course has many students. In order to save student data, I need to link the student to a course (a student has to be registered under a course after all). I have created a lookup table in VS 2005, which successfully displays the list of courses available and the course code on a label next to the course name combobox. The problem is, it's not saving any data at all, nothing happens. I used TableAdapters to handle the saving and retrieving of data, I hope this info is sufficient. Please help! Good work man but i think my problem is a little bit different: i have the following problem; 1- i have two related tables (the relation has been made in ...Show All

  • .NET Development GC.WaitForPendingFinalizers

    The Following text is taken from msdn documentation about GC.WaitForPendingFinalizers "The thread on which finalizers are run is unspecified, so there is no guarantee that this method will terminate. However, this thread can be interrupted by another thread while the WaitForPendingFinalizers method is in progress. For example, you can start another thread that waits for a period of time then interrupts this thread if this thread is still suspended." Can somebody post an example how to suspend the thread mentioned above. Best regards Itzhak Hi Itzhak I think what the doc means is, if your managed thread is blocked on the call to WaitForPendingFinalizers(), the thread that called Wa ...Show All

  • Visual Studio Team System Is it possible to associate code coverage data and test results?

    I followed the guide at http://blogs.msdn.com/ms_joc/articles/406608.aspx to perform code coverage on a program. I then wrote a generic test that calls that program. After the run, I have a .trx file and a .coverage file, but the two are not associated with each other. Is it possible to associate an existing test result file and code coverage result file programatically I don't want the test to do the instrumentation at run time, as I have already created an instrumented build. Hi Michael, Unfortunately we don't support the scenario that you're looking for. If you want code coverage, you need to select binaries to instrument; also, we do not support any API's to associate your result and co ...Show All

  • SQL Server RDA Pull method not creating tables/inserting data

    I can't see what is going on, this is the situation: I call the Pull method, specify the table to be affected, the query to be used, the connection string to the remote SQL server , the tracking options (On) and the Error table. The pull method executes with no errors however, no table is ever created. I don't know why, here's what I have done so far: I read the SQL BOOKS ONLINE help on preparing RDA, I set up the IIS virtual directory for anonymous access and on the connection string I send in the user name and password for the SQL server , I went into the SQL Server and grated access to the user name to the database that I am going to access and I made the user a db_owner. So, according to SQL BOOKS ONLINE I have everything right however ...Show All

  • Visual C++ When "It just works!" doesn't. :(

    Hi, To test out "C++ Interop", I created a static library in VC++ 6.0: Here is the contents of the header file (staticLibrary.h): #ifndef STATICLIBTEST_H #define STATICLIBTEST_H #include <string> using std::string; int add352(int value); string sayHello(string name); #endif Here is the implementation (staticLibrary.cpp): #include "staticLibrary.h" int add352(int value) { return value + 352; } string sayHello(string name) { string s1("Hello, you are the greatest, "); return (s1 + name + "!\n"); } This code compiles fine in VC++ 6.0 and it produces an object called "staticLibrary.lib ...Show All

  • Visual Studio 2008 (Pre-release) enums - to use [DataContract] or not to use?

    Hi, I'm currently wondering what the implications of adding or leaving out the DataContract attribute on enumerations. I've tried googling and reading but haven't found any definitive answer, but so far it seems that - enums are serialized implicitly without DataContract - IF I add DataContract, I also have to add EnumMember to all members - If I just want to skip a member, then I can either apply [NonSerialized] to that particular member, or add [DataContract] to the enum and [EnumMember] to all members except the ones to ignore. - If I want to have another namespace than http://schemas.datacontract.org/2004/07/Server (WTF! !) then I have to use [DataContract(Namespace=...)] - If I want to rename some member over the wire, then I have to ...Show All

  • SQL Server Relability? [part 2, 0xC0202093 error]

    In my previous thread, we established that my system does not have SP1 applied. Apparently packaging of SQL Server SP1 is not so easy and while SQL Engine was updated SSIS is still in RTM. Anyway, after months(!) of running we hit following: An error occurred while initializing the flat file parser. The PrimeOutput method on component "Flat File Source" (27679) returned error code 0xC0202093. The component returned a failure code when the pipeline engine called PrimeOutput(). The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing. Thread "SourceThread0" has exited with error code 0xC0047038. Thread "WorkThread0" received a shutdown signal ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. texture2d problem...?

    Hi All, i'm new to XNA programming (and directx programming altogether). having a lot of fun with XNA and most things are pretty straight forward for a simpleton like me. here's a problem i'm having that i'm hoping someone can shed some light on. I'm using a lot of photos in my application (a slideshow!). I'm testing with 1 Texture2D and every few seconds loading another image into it using Texture2D.fromFile, etc... Here's what i'm experiencing - if I don't call dispose() on the texture before each new fromfile, it's a memory leak... this makes sense. the problem is that the texture seems to get confused on it's size. I'm using a mix of different sized non-square images. it's like the texture only reads the first texture size called and t ...Show All

  • SQL Server Is this SSAS bug fixed in SP2 ?

    Can someone with the SP2 beta installed try the following and tell us if the formatting bug has been fixed (using the provided Adventure Works DB) with member [Measures].[DP] as [Measures].[Reseller Order Quantity] / 1000000000 select [Measures].[DP] on 0, [Reseller].[Business Type]. members on 1 from [Adventure Works] On SSAS 2005 SP1, I get scientific notation for the 2nd and 3rd rows returned by the query (as in 2.2076 E-05 ) This is a major issue for us as we tend to run SSAS queries from SQL Server using OPENQUERY. For instance, the following query fails because of this bug: select convert ( money , isnull ( substring ( "[Measures].[DP]" , 1 , 50 ), 0 )) from openquery ...Show All

  • Visual Studio Express Editions DataGridView Modifications

    I want to be able to input a numeric value into the .Text = "Value" field. On the Datagridview table. I need to be able to input a value in each field individually Here is my current code: ------------------------------------------------------- Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click ' Initialize the button column. Dim buttonColumn As New DataGridViewButtonColumn With buttonColumn .HeaderText = AssignmentNameTextBox.Text .Name = "Assignment" .Text = "Value" ' Use the Text property for the button text for all cells rather ' than using each cell's value as the text for its own but ...Show All

  • Visual Studio AddNamedCommand2: Menu items disappear on first use

    Following the model suggested in sample code, I've been able to add to the main menus in the Visual Studio development environment with my Add-In. Curiously, however, my menu items disappear after my first attempt to use any of them. The menus don't, nor do submenus. Only the menu items do. Here's how I am creating them: IdeCommand = IdeCommands.AddNamedCommand2( _ _addInInstance, UniqueName, MenuCaption, Description, True, 0, Nothing, _ CType(vsCommandStatus.vsCommandStatusSupported, Integer) + _ CType(vsCommandStatus.vsCommandStatusEnabled, Integer), _ vsCommandStyle.vsCommandStylePictAndText, _ vsCommandControlType.vsCommandControlTypeButton _ ) IdeCommand.AddControl( _ ParentMenu.CommandBar, _ ParentMenu.CommandBar.C ...Show All

  • Windows Forms Setting Default Sort on a DataGridView

    I have a windows form which has three primary databound controls to a DataSet containing three tables. The DataSet has relationships defined between each of the three tables, as these have parent / child relationships. The first control is a combobox (cbParent), bound to the parent table. The second control (dataGridView1), a datagridview is bound to the second table, which is a child of the parent. The third control (dataGridView2), a datagridview is bound to the third table, which is a child of the second table. The three controls are bound to separate bindingSource controls, which respect the various relationships. What I want to be able to do is set a default sort column of dataGridView1, which is reset every time cbPare ...Show All

©2008 Software Development Network