Shyam Sundar's Q&A profile
.NET Development Async Web Service Timeout
I am consuming a web service from a c# windows client. This particular web service might take a while to run. The call should take 3-4 minutes. It always returns at around 2 minutes with a time out error. Could anyone tell me, how I can change this to f.ex. 10 min Hi all, i'm using webservice for some function, for that it need authentication. we are doing authentication in code behind and generating unique security key for that user. i searched many site but i didnt get appropriate result. can anybody help me, with security key i want manage user's state, wheather he/she still uses the service or not. if he/she not using, user's state should expire in some minutes. ...Show All
Visual C# creating new project and then need to do some my actions
Hi All, I have build a small plugin in VS, and i am creating small utility I want to do action like : when user create new project, i want to ask user to do some action and if he select it that action then i want to start action. f.x if i select new project->console application then after creating project i want to ask him do you want to add xxx file in your project if yes then just follow some steps else back to project. can i do this after each new project Please help me waiting for reply Thanks, Niku You'll probably want to have a look at Visual Studio Extensibility . Questions on Visual Studio extensibility can be directed at the Visual Studio Extensibilty Forum . ...Show All
SQL Server sp_helptext in select statement
Hi, I need to get one trigger script and save it into a table or files....anyway this works well exec sp_helptext 'triggername' But, how can I save this rows into a table because I cannot execute this Insert into mytables select sp_helptext 'triggername' Can I work around this cheers, Is there another way to get trigger definition. I mean by select * from sys.sometable, I want to save this in another table, there are some views, but they return all definition in one row and not varchar(255) as sp_helptext Thanks, ...Show All
Smart Device Development Is DirectDraw supported by Windows CE?
I have a fast graphics API to support WinMobile 2003+ and I also want to support fast graphics on generic Windows CE devices (non-WinMobile). Should I be using DirectDraw for this If so, should it be provided by the hardware vendor as part of their CE operating system or can i just redistribute DirectDraw on my own. If so, where can I get this redistributable package I'm new to using DirectX. Thanks, George Robert Lettan wrote: v3 supports DirectX6.1 v4.x supports DirectX8 v5 supports DirectX9 Interesting, where did you get this information from Robert Lettan wrote: if you are still unsure about the support, each version of CE also has GDI+ as standard. so you can alway ...Show All
Visual Studio Express Editions Co-ordinate Problems
I've been building a toolbar styled program, but i'm a little lost as to how i can make the window disapear (it slides to the right). what i'd like to do is, when the mouse hits a certain co-ordinate on the scree the window withdraws...but i can only make it mesure the pixels within the program...not the desktop.....so i decided to ask for help from my peers. Good luck guys, and thanks for anything...even a concept helps! -Stalin Everyone here is not a guy............. You need an API routine called "GetCuror" Public Declare Function GetCursorPos Lib "user32.dll" ( ByRef lpPoint As PointApi) As Integer This is the datastructure for it: Public Structure PointApi Public ...Show All
SQL Server Syntax format in guide
Sorry if this thread is already affronted... but i'm not able to find in previous messages... The syntax of topics displayed in new book online appear on a single long line, so I have difficult to read.... Anyone have the same problem Thanks... I haven't been able to reproduce the problem, but from the image, it appears you have an out-dated version of Books Online anyway. There is an April 2006 version available in all languages. In the April version, the Mobile topics are incorporated into the larger Books Online set. From the Index tab or Search tab, you can filter on Mobile if you just want to view topics related to Mobile. Here's the download site. http://www.microsoft.com/technet/prodtechnol/sql/005/downloads/books ...Show All
Visual Studio Nested Designer Surfaces
Is it possible to nest one design surface within another I want to design a language that enables hierarchical modeling where one design surface has high-level shapes that represent other models which have their own language and design surfaces. Ideally, I'd like the user to be able to double-click on a high-level shape and open the nested design surface, etc. How would I approach this using the DSL tools Intresting topic here, Gentlemen. I'm also experimenting with that nested diagram in my DSL model. I've been working on it since last year. The first issue is because one component could have alot of children (or sub-graph), then it would be very difficult to see the parent graph (one component is too big, the canvas is not enou ...Show All
Visual C# Accessing Objects in Form1 from form2
Hi I'm starting out with C# and am building a simple application to play around with C# code. I have a main form (form1) in which I have declared and instantiated some Objects. Form1 then declares and shows a second form (form2). I want form2 to call methods and get and set properties in my declared objects from form1. ie to change their internal state so when I go back to form1 I can access the objects new internal values (with appropiate properties etc). //example dice class public class dice { private int currentSide; public CurrentSide { get{return currentSide} set{currentSide = value} } } //Form1 class public class Form1 : Form { public Dice D1; public For ...Show All
Game Technologies: DirectX, XNA, XACT, etc. No way to set the SpriteBatch transform ?
I can't find a way to set the transform of the underlying ID3DXSprite of the XNA SpriteBatch. Am I missing something Thanks L. The SpriteBatch class doesn't support any transform state members. You will need to perform any transforms yourself before calling Draw methods. The overloaded Draw methods also contain options for scaling, translation and rotation transforms. ...Show All
Visual Studio use case template dropped?
i recently switched from the march ctp to the july ctp of the visual studio sdk and in this latest version, the use case template for dsl's seems to be dropped. is there any special reason for that, or will it be back in some future version kind regards, marco Matt: Did you use to work for a software company in memphis If so, I would like to contact you. Greg Welsh ...Show All
Visual C# Error in C# 2.0 Specification
The C# 2.0 Specification says (in 23.1.6): "Although the ordering of members within a type is not significant to C# code...". However, the C# 1.2 Specification says (in 10.4.5): "Thus, when a class is initialized, all static fields in that class are first initialized to their default values, and then the static field initializers are executed in textual order . Likewise, when an instance of a class is created, all instance fields in that instance are first initialized to their default values, and then the instance field initializers are executed in textual order ." (emphasis added). Therefore, the fact that "the ordering of members within a type declared in multiple parts is undefined" (C# 2.0 Specification, i ...Show All
Windows Forms Changing size property
How do I enable the changing of size of a control like combobox Thanks. regards Alu What do you mean by changing the size of controls Do you mean during runtime by the user(like allowing the user to resize a combo using the mouse ) or during runtime by code (by assigning to the Size property of that control) The first depends on the control. If the control is a Panel or something, you might make use of the splitter control alongside proper use of Docking. If you want to create a program that functions like VS (allowing you to resize and position controls ), that's a little bit harder! Hope this helped ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Using XNA with Shockwave platform
We are looking into making an online mutliplayer game available over the browser. Is there anyway for XNA to plug into a Shockwave player Say for example, we have a game server that will be in XNA, and then it sends it over the wire to a Shockwave player. XNA is purely a display technology ... so you won't be building a game server in XNA. You can however build it in C# As far as plugging XNA into a shockwave player, not possible. I suppose if you wanted to assume that users would have all prerequisites installed (XNA, DX9c) you could look into using ClickOnce deployment ... but it would still more than likely require the user have to install something to use your service. ...Show All
Visual Studio Team System Adding New Folder with Rename
I recently added a new folder to a team project using the 'New Folder' toolbar button in SCE. It added the new folder named 'New Folder' and I then used the context menu's 'Rename' item to rename it 'ApplicationImport'. I then added two files to the folder in preparing for checking in my pending changes. All appeared ok until I started using the Pending Changes window to checkin. I added some comments and clicked 'Check In' and immediately got an error that there were pending changes that wheren't listed and I need to refresh my Pending Changes view before 'Check In'. I did so and now the Pending Changes window shows the 'New Folder' instead of my 'ApplicationImport' folder. In the SCE view I still see my 'ApplicationImport' folder w ...Show All
Audio and Video Development HDiSim currentDisplayMode
It appears that HDiSim has the currentDisplayMode set to Player.DISPLAY_NONE by default. If I put this logic branch in my onLoad function, the HDiSim will fall into it: if (Player.currentDisplayMode == Player.DISPLAY_NONE) { } I'm building Comp5 for the forum. One of the requirements is display detection; so for instance you can start playing the audio on start if the device is an audio only player, or is not hooked up to a display. The compilation is complete (showed it to the Toshiba guys yesterday) except for display detection (3 line of code). So actually, the fact that HDiSim is set to DISPLAY_NONE works in this case for testing purposes :) I just didn't expect that so I posted the question. I have no idea if we'll be able to ...Show All
