TYTYTY's Q&A profile
Visual Studio 2008 (Pre-release) WPF "Bugs" or "Features"? + DirectX Interop Thoughts
Hi all, I'm hoping for a little advice from someone more knowledgeble than myself... I've bolded important bits for lazy readers, I'm not trying to be rude :) Basically, I'm building a logic simulator . I want it to feel modern, with a nice looking UI, but most importantly to provide a fun and intuitive editing experience through the main editing panel. I've been prototyping with WPF for obvious reasons. To help demonstrate, I decided to attach the current (very basic) prototype for anyone who wants to try it out. I'll also link to some screenshots I took which demonstrate the problems I'm having (for those busier readers!) The prototype currently only connects lines tog ...Show All
SQL Server changing "header rows to skip" property in flat file connection during runtime
Hi all I have a flat file.I am trying to set the value for the property " HeaderRowsToSkip " during runtime.I have set an expression for this in my "flat file connection manager". But this is not working.The connection manager is not able to take the value during runtime . My expression is as follows: DataRowsToSkip : @[user:: Var] where " Var " is my variable which gets the value from the rowcount component and trying to set it back to the "HeaderRowsToskip" property. I ve even tried setting the value to the " HeaderRowsToSkip " property in the expression builder. Its not working.... Can anyone help me out in solving this Thanks in advance Regards Suganya ...Show All
Visual Studio Express Editions Filtering SQL Data
Hie all. Is there a way I can filter the data that I fill into a table adapter. I can connect to my database (SQL) and select all the data but I want to filter what I pass on to the table adapter based on a parameter that I enter at runtime. Or alternatively is there an Slq Command I can use to select just the data I want from the SQL database based on a parameter that I enter at runtime then use this filtered data to populate a dataset. I then want to pass this filtered data to a report (this part is done). Some sample code to do this filtering would be great. Hi, Simple example: This will search the stock table for any records that has a description field that contains any of the tex ...Show All
Visual Studio Express Editions How to get MAC Address on remote Computer using VB.NET
How to get MAC Address on remote Computer using VB.NET. Actually I did find another way except this will only work on the local computer. Dim theNetworkInterfaces() as System.Net.NetworkInformation.NetworkInterface = System.Net.NetworkInformation.NetworkInterface.GetAllNetworkInterfaces() for each currentInterface as System.Net.NetworkInformation.NetworkInterface in theNetworkInterfaces MessageBox.Show(currentInterface.GetPhysicalAddress().ToString()) next ...Show All
Visual Studio OpenType fonts
Is it possible to use OpenType fonts in SQL Reports I have an OpenType font loaded on my PC (Myriad Pro Light) but it is not available in the designer. Unfortunately it is my client's corporate font and they REALLY want to use it. Some OpenType fonts are supported by the .NET Framework. See this discussion: http://groups.google.com/group/microsoft.public.dotnet.general/browse_frm/thread/e7c74235bed5b2ed/38dfcc313cf03c76 lnk=st&q=%22Usage+of+Open+Type+Fonts+with+.Net+%22&rnum=1#38dfcc313cf03c76 ...Show All
Software Development for Windows Vista Raising external event from Workflow itself
Hi, I have a scenario, where in, i invoke Workflow from an ASP .Net app and the workflow is state machine workflow. The workflow starts by listening to an event and the event executes sequence of steps and calls external method, that is defined in ExternalDataExchangeService. Once the method gets executed, it returns a value, which will be caught by workflow. Based on the return value, i need to raise specific event, which is again defined in ExternalDataExchangeService. To simply put, i need to have a choice, where in either user or workflow itself based on method's return value has to raise the events. Can we do this If so, please let me know the procedure. Thanks in advance for your time. Regards, Pavan ...Show All
Visual Basic Application startup fails due to ClickOnce checking for updates
We're seeing a problem intermittently while starting up our application. The application is started and the ClickOnce framework is doing a check to see if any updates are available and instead of handling the bad network connection, it fails to startup the application entirely. We have ClickOnce set to check for updates before application startup. This seems to happen most often on laptops with wireless connections especially in bad network conditions where the network goes up and down. My guess is that the ClickOnce checks initially for the no network condition, but this passes and so the failure is ungracefully handled later. Is there something that could be done from the client side to circumvent this or to fix this Is this goi ...Show All
Visual Studio Colorizing block comments?
I have a MPF language service that implements IScanner::ScanTokenAndProvideInfoAboutIt, and IScanner::SetSource. Using these, it's pretty intuitive to colorize everything but block comments since they exceed one line and the code passed to SetSource is always just one line. In addition, adding some code to buffer the lines doesn't work because it appears that there's no predictable order. Does anyone have hints for implementing block comment colorizing in the MPF Cheers, Nevermind, I found my problem. I was trying to manage the "in comment" state myself with member variables at class scope rather than using the state reference in ScanTokenAndProvideInfoAboutIt(TokenInfo tokenInfo, ref int state) ...Show All
Community Chat About linux operating system
Hi, I developed an asp.net web application. can i run that application on the webserver which is having linux operating system. is it possible to run asp.net web application on a linux machine. can anyone suggest. Thanks in advance, Regards, sridhar. You must see the Mono project , because is the .NET plataform to GNU/Linux operating system and anothers Unix-like systems. Look here : http://www.mono-project.com/ASP.NET Regards. ...Show All
.NET Development Formatting problem with layout.
Well I'm new to asp. software and I'm teaching myself. Never had this problem with HTML so I'm not sure what the difference is. Problem: my tables are shrinking and moving all my content when the Internet Exploerer is shrunk in size. So unless the Internet Explorer is full size my content, text and everything moves. The tables aren't holding their form and content in place. Tables are all set in percents (for widths). Anyone know how I can fix this Thank you. When you specify width in perent, then the layout is auto audjusted relatively to the width of the parent container. Here the parent is the BODY which is the entire browser area. So when you reduce the size of the browser window, the width of ...Show All
Visual Basic Outlining or tab(ing) of conditional compiling code
Hi there, when conditional compling is used in Visual Basic in VS 2005 the edior places the conditional compiling commands on the far left. This makes the reading of the code not easy especially if you use a lot of conditional compiling in loops. Is it possible in Visual Basic within VS 2005 either to collaps the conditional compiling code automatically or to set the tabing of the conditinal compiling code so that it behaves like e.g. a for ... next or if ... endif statement. E.g: How it is now: For i = 1 to 100 xx += i #if DebugLevel > 1 MyLogFile.WriteLine(i.ToString) #endif xx = xx + xx^2 xx -+ i^0.5 Next i How i want it: For i = 1 to 100 xx += i #if DebugLevel > 1 ...Show All
SQL Server Excel Numbers format
Hi all i'm having an issues when i trying to do a report: i make a report and there is a field which contains data that can be numeric and numeric with letter: "77756" or "345WS" when i export my report to excel i and i open it i get like a make in the upper left coner of the cells that have only numbers asking me to convert this to numeric format, but this think is that i need this values to be string so i can apply filtering. is there a way that i can format my cell to string so the excel take it like that and allowme to do the autoifilter. I would really appriciate your Help Thanks The value in the cell is inserted as a string, so filtering should work. The indicator ...Show All
Windows Forms Error starting application after publish and install
Hi People, I have been struggling with this for over three days. I was fortunate to find this forum. Please help... This is the error message in the text file.. PLATFORM VERSION INFO Windows : 5.1.2600.131072 (Win32NT) Common Language Runtime : 2.0.50727.42 System.Deployment.dll : 2.0.50727.42 (RTM.050727-4200) mscorwks.dll : 2.0.50727.42 (RTM.050727-4200) dfdll.dll : 2.0.50727.42 (RTM.050727-4200) dfshim.dll : 2.0.50727.42 (RTM.050727-4200) SOURCES Deployment url : file:///C:/Documents%20and%20Settings/dj76627/My%20Documents/Visual%20Studio%20Projects/PaintSchedulingSolution/PaintScheduling/Paint_Publish/PaintScheduling.application Application url : file:///C:/Documents%20and%20Settings/dj76627/My%20Documents/ ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How to set a texture on a model from a composite texture sheet?
Hi. Still working on my 3D playing cards class. I know how to set the textures of the front and back of the card independently now, but I don't know how I can use a single texture sheet (comprising of 52 fronts of cards and a few back face images) in this process. The BasicEffect takes a Texture2D format for the texture, and of course setting it to a single texture image is fine. But how to set the texture property to a rectangular portion of a larger texture image No problem. The code actually came out of my billboards demo (which you commented on, ironically), which can be found here: http://www.threesixbox.com/project/ id=85875c2304 The demo doesn't use the code directly, but the code came from another ...Show All
Visual C# Windows xp styles in windows forms
How can I use windows xp styles in a windows form application in studio .net [ STAThread ] static void Main () { Application .EnableVisualStyles(); Application .SetCompatibleTextRenderingDefault( false ); Application .Run( new Form1 ()); } ...Show All
