mhodder's Q&A profile
Visual Studio How to dynamically change backcolor of control at design time?
I try to change the backcolor of a web control (ex:textbox) within the addin(programmatically)the changes exist in the property tool window of that control but it hasn't any reflect on the designer and the source code.moreover when I select source of page and then back to the design mode property toolwindow back to the previous state. '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' If TypeOf objComponentContainer Is IDesignerHost Then objIDesignerHost = DirectCast (objComponentContainer, IDesignerHost) End If MessageBox.Show( "The site name is " & objIDesignerHost.RootComponent.Site.Name) Dim pg As Page = ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Water Ripple Effect ?
Hi all, i develop ship game now, i want the ship moving make some water ripple, How to make water ripple Best Regards, Thats far too large a subject to answer in the forums. We can answer specific problems once you have worked them into your code. Check out the HLSL samples inthe SDK - they show how to call shaders from managed code. Then try the webcast I did for MSDN - the shaders are very very simple and just replicate basic lights but it shows how they work. http://msevents.microsoft.com/cui/WebCastEventDetails.aspx culture=en-US&EventID=1032296889 source for it linked from here http://www.thezbuffer.com/articles/210.aspx A HLSL book will be useful - I like this one http://www.amazon.com/Shaders-Progra ...Show All
Windows Live Developer Forums starters question.. why does this basic code not work properly
Hi, I am trying to load a UK address where i pass in as apart of the url. The map moves to the right location, but the zoom doesn't work. The map starts out at a very high zoom level. However if I move the map, then the zoom kicks in, and it is displayed at the proper zoom level. the problem is that te initial maps zoom is wrong. Thanks <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <script src=" http://dev.virtualearth.net/mapcontrol/v3/mapcontrol.js"></script > <script> function getQueryVariable(variable) { var query = window.location.search.substring(1); var vars ...Show All
Visual Studio Team System ntext to ntext
Hi, Sometimes, when creating an update script that changes a table with an ntext column, I see the following code in the sql script: /* The type for Field: SomeColumn in Table: [dbo].[SomeTable] is currently: [ntext] but is being changed to: [ntext]. */ IF EXISTS (select top 1 1 from [dbo].[SomeTable]) RAISERROR ('Rows detected, failing schema update due to possible data loss.', 18, 1) GO Why is this Thanks, Jeffry Has this issue been resolved I am currently using the final version (180 day trial) and cannot publish database changes due to this error. Is there a workaround ...Show All
Visual FoxPro Change tooltips when Hovering over a grid cell.
I am not sure if this is possible: I need to implement something like the new memo field content preview (When you hover over a memo field of a grid, it will show its content in a tooltip style). I need to show some additional info about a customer when the user is hovering over the account # in the grid. I have tried to manipulate the tooltip of the textbox, or the tooltip of the column at run time and it didn't work for me. Is this possible I'd rather not use a click or doubleclick to open a form, but rather hover over a cell in a grid. Thanks. Cetin; I'm looking for any kind of solution. If you are aware of a better solution using hover over the grid cell, I would gladly t ...Show All
Visual Basic Create Dataset and use dataset in coding
Which of the way is more faster: 1) Creating dataset like Dim DS as new System.Data.DataSet or 2) Creating dataset in XML and using it. How to create a dataset in XML and How to use it within our application Regards Mirza If i create a strongly typed dataset which contains the whole schema is that going to affect the performance of the application also i want to use it for the whole application like the pull method and the front end. Can i heavyly load strongly typed with tables. which is the best practice 1) using creating tables visually 2) using xml coding to create them. Or 3) Just dragging and dropping visually from the server explorer and changing according to your needs ...Show All
SQL Server Duplicate Values on Top Level of Dimension
Hey there community, I have a problem, and i am lost as to how i can fix it.. I would be over joyed if someone can give me a hand in identiffy it.. I will try to explain below:: I have a cube for sales, that displays sales by a Market heiracy of Market->Division->Family->Item. When i drill down, sales numbers look fine.. I added in a budget file, which only specifys budgets down the the Division Level.. I have added the Budget Figure as a Measure Group. In the dimension usage tab, i specify the Division as the Granuality for the Budget Measure Group on the Market Dimension.. Measure Groups Dimensions Standard Measure Bu ...Show All
Windows Forms How to communicate from Child Form to Parent Form?
I open a 'MySerialPortsForm' with a ListBox and that ListBox is filled with all available serial ports on my computer. If I select a serial port by mouseclick I would like to have the selected serial port name transported as a string to my main form 'MyMainForm'. I was thinking about some 'Callup' function residing in 'MyMainForm' which is called from 'MySerailPortsForm'. I studied 'delegates' but I'm not sure if that's a correct approach or if it is usable for this purpose. I prefer not to use a Window Message for data transport. All hints are welcome, Henk Well, after pondering the Internet I found some examples and indeed it is the 'delegates' that are to be used. (equal to so ...Show All
Windows Forms location of image inside a picture box?
hi, is there an easy way to determine the location of an image inside a PictureBox control i have a large image inside and the SizeMode is set to Zoom (to maintain aspect ratio) so there can be either a visible margin to the left and right or to the top and bottom of the PictureBox control. i think i can do this by knowing the aspect ratio of the image and the aspect ratio of the PictureBox but i am really lazy and don't want to do the math. i was thinking there would be some sort of magic image location property but i can't seem to find that. it seems that it must be known at some time since OnPaint() knows where to paint the image. thanks, scott thanks, i've done the math. it was not really that bad but ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Terrain Options
Hi Whats better for implement terrain -Use the content pipeline for load then .x file with the terrain or -implement de class for convert the pixels of .raw file in vertex with the height (y axi) dependent of de gray color I have problem whit the first option becose a can't extract the vertexs of vertexbuffer becose the vertexbuffer is WriteOnly What I can do thank's You can start from the DX SDK, DirectX Documentation for C++ ( DirectX Documentation for Managed Languages is less informative). Type in HLSL in search field and you'll have a bussiness till the December, 11th ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Default pixel shader?
I fear I already know the answer, but is there any way to use a 'default' pixel shader This used to be done by specifying PixelShader = null; in the .fx file, but this doesn't work any longer. I bet a lot of games will do just fine using BasicEffect for all their rendering. If you want to do fancy graphics stuff you will obviously need to create custom effects, but plenty of interesting games can be made just with simple lit+textured models! You could easily emulate any Playstation1 level of graphics, and PC games like Quake2, entirely using BasicEffect. ...Show All
Windows Forms UserControl as Container
Hi all, Just a quick question and I am sure there is a simple solution but I just haven't found it yet. I know how to make my UserControl a container by using ParentControlDesigner etc. This works fine and I can drag and drop Windows Forms Controls at design time. However, if I add a Panel to my UserControl Class, compile it and then try to drag and drop another control on the Panel, the Panel does not act as a container. So my question is: If I have a UserControl which consist of a single Panel, which is a pretty lame control I know, how can you get the Panel to act as a container at design time Any help in this would be greatly appreciated. Kind Regards AM PS. The UserControl that I have written does not consist of a ...Show All
.NET Development Problems using port 80: Services not running?
I have been developing a client/server application for some time now and recently I did a complete reinstall of Windows XP Professional. I have everything working, and everything has been working the past few weeks, so all was good until I had a friend test connect to my server remotely. My server runs on port 80. The problem is that now port 80 is closed on my computer. I have it forwarded to my computer via my router's port forwarding, and I have no firewalls running at all. Windows Security Center is disabled as well. So my question is, are there any services that port 80 depends on for me to be able to accept incoming connections Is there a way I can force it open on my computer I will provide any details necessary. This is kind of u ...Show All
Visual Studio Team System VS crashes when <Location not stored in Pdb> is produced
I added the fxcop command on the post-build event of my VS project but whenever FxCop can't resolve the source location of a message and displays <Location not stored in Pdb>, I get the 'Microsoft Visual Studio has encountered a problem and needs to close' window. Why is this Is there someway to prevent this from happening Sara, There are certain code elements that are not stored in the pdb, including but not limited to types (classes, struct, enum declarations), delegates, assembly attributes, etc. FxCop has no idea where these elements exist in a source file (or even the source file that contains them). The Visual Studio integration makes up for this by using the Visual Studio Code Model to ...Show All
SQL Server What is "Default Visual Totals Mode"
Hi Mosha, You refence in your posts connection string option "Default Visual Totals Mode". I can't find another place where this option is referenced exepts your posts o blogs. Please, could you describe this option more in details What it designed for What are its possible values Are there other usefull connection string options, that aren't described in BOL Thanks in advance I just messed up the name. The real property name is Default MDX Visual Mode ( http://msdn2.microsoft.com/en-us/library/aa256082(SQL.80).aspx ) ...Show All
