Kishorepbp's Q&A profile
Visual Basic how to restart the aborted thread
hi, just now i have posted with subject problem while aborting a thread.now i'm facing a new problem the if i again come to start the which which is aborted then it is giving an error the the thread is either running or aborted. i have a loop that will call the threadobject.start and threadobject.abort for 2 or three times second time it is giving error if i check the thread state it is in threadstopped state sample code:: i=0 while i<2 t.start t.abort end while can any one suggest the solution. -regards GRK Have you looked into whether Suspending and Resuming the thread is a better alternative ie t.Suspend and t.Resume Richard PS - Aborting a t ...Show All
SQL Server Using VB file picker
What would be the syntax to use the VB file picker in the code section I want to do something like =code.Filename in a parameter. Where this would cause the file picker to open and allow the user to use the standard interface to track down the file. Use a data delivery extension. There is a sample that comes with Reporting Services. Check out http://msdn2.microsoft.com/en-us/library/ms160918.aspx ...Show All
SQL Server bcp/BULK INSERT and blank lines
Does anyone know of a way to make BULK INSERT or bcp ignore blank lines in the file I am having trouble with a bunch of data files coming back with 1 or 2 blank lines at the end, and it causes the entire bcp to fail. I suppose I could write a utility to trim the files but that seems a bit overkill. Any thoughts One option is to use the -L parameter of BCP to specify the last row. This will let you ignore the lines at the end that is not formatted correctly. However, you have to count the lines in the file and subtract the offending number of lines to specify the value. If this doesn't work for you then you will have to correct the data file before using it with BCP or BULK INSERT. ...Show All
Visual Studio Express Editions concerning media player
renee where do I post pause button code sorry.cant do that..... I,m trying to learn vb here ..not word....sorry u cant teach an old dog new tricks.....it looks right in wordpad but when pasted it not......lol renee.....I have never used office in my life ,it dont interest me....its like me trying to teach you to plaster a wall give me a break....please....aint I got enough on my plate ...Show All
Visual Studio 2008 (Pre-release) June CTP: generated wsdl does not have <xs:imports> for all types being used.
Hi all, I have a service which is exposing many data types, and some of the data types have the same target namespace. The wsdl is importing the first xsd for that namespace and skipping the rest: ... < xs:import schemaLocation = " http://www.rajesh.com/WCFServiceLibrary/Service.svc xsd=xsd8 " namespace = " http://schemas.datacontract.org/2004/07/Framework " /> < xs:import schemaLocation = " http://www.rajesh.com/WCFServiceLibrary/Service.svc xsd=xsd9 " namespace = " http://schemas.rajesh.com/Framework " / > < xs:import schemaLocation = " http://www.rajesh.com/WCFServiceLibrary/Service.svc xsd=xsd11 " namespace = " http://schema ...Show All
Visual Studio Express Editions Working with embedded resources
Hi, here's the recipe I found for using embedded resources: 1. Open your project resX (ex Form1.resX) and select from the tab the type of resource (ex Ausio, Images, etc) 2. Add by choosing your file (ex here "mysound.wav") 3. in the code, to use the res: String^ ressrc = "Project1.Form1" ; System::Reflection::Assembly^ execAssem = System::Reflection::Assembly::GetExecutingAssembly(); myres = gcnew Resources::ResourceManager(ressrc, execAssem); String^ sound = "mysound" ; Stream^ s = myres->GetStream(sound); SoundPlayer^ pl = gcnew SoundPlayer(s); pl->Play(); hello thanks for your sharing. but i don't see any questions he ...Show All
Visual Studio Enumerating BuildItem Metadata
Hi, Does anyone know how I can programmatically enumerate all the metadata for a BuildItem I am using the MSBuild API to load a project and need to find out what metadata has been set for any given BuildItem. Kind Regards Andy, Unfortunately, this is not possible by using the MSBuild Object Model today. You can query metdata if you know the names of the metadata that you are looking for, but you cannot get a list of all metadata names that have been set for a given BuildItem. Faisal Mohamood MSBuild Team ...Show All
Visual Studio Team System Installation Vistual Team Studio Software Developer
Hi, We have Premium subscrition VTS (developer) and are ready to install and use the Visual Team Studio (workgroup edition). For the client site I cannot find which DVD to use for the client installation, I have only VS2005 proffesional. On the MSDN download I can only select the Team Studio DVD which contains everything, should this one used Does any VTS installation integrates with a current (VS2005 proffesional) installation or should an existing VS2005 installation uninstalled Tx, Rene Visual Studio Team Suite can be installed over the top of Visual Studio 2005 without problems. What do you want to use, the client-side tools (ie Architect, Tester, Developer tools), the s ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Saving backups, refactoring, & other newb questions
Hi, I have a specific, minor question, and a general, major question. :) First the simple question. Is there any way within GSE to save a backup or earlier version of the file you're modifying, other than simply to "Save As..." I dimly recall that Word has some sort of version-saving feature; does GSE or VS have this I actually find it easier to use Windows Explorer to copy the file to a new folder, but that seems kludgy. Now the bigger question. I'm fairly new to coding, and while I can get things to work, I don't love the style in which my code evolves. I try my best to create classes and objects to do relevant work, and I try to keep methods short and specific. Still, inevitably I seem to end up with one class with ...Show All
Microsoft ISV Community Center Forums Put access fields in specific word document places
Hi all, i am new here, and i have no idea how to do this. I am trying to do like a form, fill in the fields necessary and then with a press of a button to take all the information and place them in a word document template. I am a bit familiar with access. but i donno anything about the rest. If there is a way to do this, i will need an example to understand it. Thanks in advance The above code works fine, but I'd like to export a table of data rather than just a single record. I found this code, but unfortuately it appears to be for a format older than Office 2003 and as such doesn't appear to work: Private Sub cmdPrint_Click() 'Print customer slip for current customer. Dim appWord As Word ...Show All
Game Technologies: DirectX, XNA, XACT, etc. ColorKey in Texture2D?
Is this any way to do a tranparent color key I can't remember off the top, but you can use TGA and DDS files that support alpha blending (transparency). The XNA book thread over in XNA Framework thread, shows how to make a transparent DDS image format and code it. ...Show All
Visual Studio Team System Import Database Schema Keys not imported as expected
Greetings, When I use Import Database Schema on an SQLServer 2000 database project (from an SQL Server 2000 database server) none of the keys, constraints or indexes are imported against the tables. They all appear to be there but are created as objects at the same level as the tables (i.e. under the Tables folder in the tree view) instead of in the appropriately named folders under each table. Everything looks good in Query Analyzer and even if I target SQL Server 2005 the import is the same. All these objects have a red exclamation mark but no errors appear in the error list. Also all my stored procedures and user functions have a red exclamation mark but no errors appear in the error list either. Furthermore I can't drag ...Show All
Visual Studio Namespace-level comments in Sandcastle?
Hi Anand, We have been using NamespaceDoc.cs to supply namespace-level comments to NDoc. Does Sandcastle allow for namespace-level comments If not, is there a plan to incorporate them at some point Thanks, Richard Richard, We do not support such a feature currently. All I was saying was to include comment at the namspace or roolt levl in your code and it will show up. I will be happy to look at this nDoc implementation to see if we can support something similar for our RTW. Anand.. ...Show All
Visual Basic Datagrid
How can I produce a total for values in a datagrid and them display them in a label What are the values in the column What values are you getting when you debug/step into the code when entering the for each loop Can you display the output via a MessageBox to see if it reads the value in the for each loop, including total ...Show All
.NET Development Sending HttpWeb request from WebService
Hello, can anybody show me the way to send this kind of http request from a webservice POST http://gateway.messenger.hotmail.com/gateway/gateway.dll Action=open&Server=NS&IP=messenger.hotmail.com HTTP/1.1 Accept: */* Accept-Language: en-us Accept-Encoding: gzip, deflate User-Agent: MSMSGS Host: gateway.messenger.hotmail.com Proxy-Connection: Keep-Alive Connection: Keep-Alive Pragma: no-cache Content-Type: application/x-msn-messenger Content-Length: 18 VER 1 MSNP8 CVR0 i don't know how to have send the last line (VER 1 MSNP8 CVR0) wich is the content of the http request. Thanks for any help What problem are you having exactly Are you seeing some sort of exception Can you share any of your code The networking ...Show All
