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

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

mrshrinkray

Member List

Furqan Farooqui
werp
Euclidez
Esteban Garcia
Blkbird
William Lowers
Xitian
Josh Smith
Stéphane Beauchemin
needfulthing
tackett
KitGreen
Misbah Ahmad
aybe
Earl Hood
Alain de la Kethulle
Tricos
Rui Figueiredo
Donaghy
anirudhj
Only Title

mrshrinkray's Q&A profile

  • Visual Studio 2008 (Pre-release) TabItems & Binding at runtime

    I am attempting to create tabs based on how many records are returned by an ObservableCollection. When I set a break point I can see the ObjectInstances of AssetTabitems with the correct data within myTabData. The problem is I don't know the correct way to access those instances, here is what I am attempting in the red highlighted area. public void PopulateAssetTabs(string TabName) { ObjectDataProvider myTabData = new ObjectDataProvider (); myTabData.ObjectType = Type.GetType("Asset_Manager.AppData.TabListDB" ); myTabData.ConstructorParameters.Add(TabName); Binding bind2obj = new Binding (); bind2obj.Source = myTabData; foreach (AssetTabItems myItems in myTabData.Data) { // Cre ...Show All

  • Visual Basic File not being released by operating system

    Hi I created an app in vb.net 1.1 which all worked well, I've upgraded the app to version 2.0 of .Net framework and vb.Net 2k5, all works well except for a file move (which works in 1.1.) the code is shown below. the application converts word docs to pdf, if there is one or more documents these are merged into a single PDF file, this newly created PDF needs moving to a permenant location after merging and encryption has taken place. 'loop while blnSuccessfull is not equal true and Counter is not equal to 5 While Not blnSuccessfull And counter <> 5 'send thread to sleep for one second, this increments by one System.Threading.Thread.Sleep(counter * 1000) Try 'move file <mergedFileName> to new location describ ...Show All

  • Visual Basic Same Settings for all USERS

    Hi. My question concerns settings class. I have a application in which i need to get/change/store settings for all users during runtime. If one user changes a setting then that setting should be changed for all users.   Is there anyway to make settings apply to all users The users working with the app, all have their own useraccounts in win. Kind Regards Alex  I concur. This is an annoying little problem for our current project. We have application wide settings that we do not want any of our users going into the app.exe.config file to change. We want to give them an interface to control all access to these settings. But it seems as though MS has taken this control away from us as well. I do not und ...Show All

  • Visual Studio Sdc.Tasks SetEnvironmentVariable - Why wont it set environment variables for me?

    I have a small project which I call to set environment variables (for various 3rd party tools in our build process, etc.). I use the Sdc.Tasks.SetEnvironmentVariable which executes fine, and I know it's stepping in there because it throws an error if I call it with a bad property-name etc. Problem is, it doesn't seem to do anything, i.e. when MSBuild returns back to the command line, and I type 'set foo' there is no env-var created. In fact, the only env-var output from this project is 'USERNAME' which obviously already exists. What am I missing... Many thanks, Duncan Smith. <Project DefaultTargets="ValidateConfiguration" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <UsingTask TaskName=" ...Show All

  • Windows Live Developer Forums System.Data.DataTable 2 GeoRSS

    Hello out there... I’m developing a VE Server Control for ASP.NET 1.1 and have a question related pretty much to ASP.NET and XML, but somehow should fit also in this forum here. I have lots of contacts (with LatLong information) stored in my database and would like to add them via a GeoRSS layer to my map. Nothing special! My question is: How to best transform a DataTable (the result of my db query) to a GeoRSS conformant XML file Right now I’m trying to use the DataSet.WriteXml() function. Is it possible to combine this with the DataSet.ReadXmlSchema() function Or is it really necessary to build the XML-tree element by element from each row of the DataTable ! Appreciate any help or suggestion!! Cheers hafi Hi Hafi23, I have ...Show All

  • Visual C# jagged arraylist!

    i have an arraylist called clsandsock which contains 2 bojects.. a socket and a string.. and another arraylist called math_class which contains the "clsandsock" arraylist... the problem is that i dont know how to access the inner arraylist!! if (szData.Substring(1, szData.Length - 3) == "math_class") { socketData.ClassName = szData.Substring(1, szData.Length - 3) ; ArrayList clsandsock = new ArrayList(); clsandsock.AddRange(new object[] { socketData.m_currentSocket, socketData.ClassName }); math_class.Add(clsandsock); MessageBox.Show("user " + socketData.clientID + "\n had been successfuly added to class\n math_class"); ...Show All

  • Visual Studio Team System Tasks in the 'Tasks List' in the project web portal

    Hi I have several tasks published in my system If I excecute the query 'All tasks' from VS they appear. However if I go to the web portal and click in the task list, the list is empty. is it normal or I'm doing something wrong Thanks in advance Javier Does anyone in the forums happen to know when and if there is a plan to provide this capability The visual plain alternative is very well done except the price per user is rediculous. ...Show All

  • Visual C++ C++ Express... ERROR C2664

    These are the errors i am getting when i build... error C2664: 'CreateWindowExW' : cannot convert parameter 2 from 'const char [5]' to 'LPCWSTR' error C2664: 'UnregisterClassW' : cannot convert parameter 1 from 'const char [5]' to 'LPCWSTR' error C2440: '=' : cannot convert from 'const char [5]' to 'LPCWSTR' Heres the code: #include "WinMain.h" int PASCAL WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpszCmdLine, int nCmdShow) { WNDCLASSEX wcex; MSG msg; wcex.cbSize = sizeof (WNDCLASSEX); wcex.style = CS_CLASSDC; wcex.lpfnWndProc = WndProc; wcex.cbClsExtra = 0; wcex.cbWndExtra = 0; wcex.hInstance = g_hInst; wcex.hIcon = NULL; wcex.hCursor = NULL; wc ...Show All

  • Visual Studio Express Editions How do I cause a desktop icon to be placed during installation of my application?

    When my application is installed on the user's computer, I want an icon to always automatically be placed on his desktop. ClickOnce did not offer this. How can I do it (Visual Basic 2005 Express) This link describes how to create shortcut that leads to certain location (or leads nowhere) and include it in setup project so it appear on desctop. If application installed in other location shortcut will not change. Pitty but this link is totally useless. Noone needs shortcut that can not be automaticaly changed during installation. ...Show All

  • Windows Forms Closing all forms but one

    This can be a very simple question, but I can see the answer I have an Application (No Mdi) with one Main window that opens several non modal windows. When I hide the main windows I want to close every other window but Main. I already tried with foreach ( Form frm in Application.OpenForms ){ if (frm.Name != "frmMain"){ frm.Close(); } } But this loop can’t complete well because the form OpenCollection is modified. Any Sug thanks A quick and easy way would be to create your own Forms collection in your Main form and add each other form as you open it. Then just iterate through that collection when you want to close them. Then just clear the collec ...Show All

  • SQL Server salt vs. Initialization Vector

    I have seen these terms used but don't understand exactly what they are and how they differ. Could I use one without the other or are they a "linked" pair TIA, Barkingdog They are used in related but completely different contexts. Salt - is used to strengthen the strength of passwords so users don't have to (because they won't). Example: a user fills out a form username: user password: doggy now, add a salt salt: Hhj3(IhGmk store the password as the hash(password + salt) This way, even if someone can view the contents of the password field, they won't be able to guess it. If you want any sort of password recovery, you need to store the salt as well since the 'password' isn't the a ...Show All

  • Smart Device Development How to use RegisterRunningDevice

    Hi all !!!!!!!!!!!! I'm on an important project of network device developping. I made a UPNP AV Control Point that works very well. Now I'm building a MediaServer device and I'm facing a problem about register the device. I did my own implementation. Since it doesn't work, I tried the example provided by the microsotf SDK and I get the same error after calling IUPnPRegistrar::RegisterRunningDevice. the return result of the function is 8004a025. I searched the meaning of this value and I didn't obtain anything. If somebody can know the meaning of this or the causes of non-running of this function, I'm waiting your contibutions because without running the function I canont progress. Thank you very much. ...Show All

  • .NET Development IO.Stream direct to byte array

    I have set up a client / server windows application in VB.NET 2005. The code uses HTTP requests and an HTTP listener to communicate over the network. I send a byte array via the request. GetRequestStream Class. When the listener tries to extract the byte stream I end up with an error because it can't seek; the size of the content varies greatly so I can't guess byte array size. I need to know some way to read the stream into a byte array. Probably a really easy answer, but I can't figure it out. Here is the gist of the code I am using now: Dim inboundBuffer As Byte () inboundBuffer = New Byte ( CInt (ReceiveStream)) {} ReceiveStream.Read(inboundBuffer, 0, [max length]) One way to do this ...Show All

  • Visual Studio Start Page not functioning

    I logged in as an admin and installed VS Pro 2005 on my machine. Everything looks good and seems to be working properly in the admin account. But when I log in as a standard user, the Start Page's Visual Studio Developer News area shows this message forever: "There is no content available yet. Content will be downloaded once a connection to the internet is established." Why is this I need to use my machine as a non-admin. Does anyone know how to correct this You could download and run Fiddler: http://www.fiddlertool.com/fiddler/ Then start capturing traffic as you start Visual Studio. You should then see the HTTP GET command which is that go.microsoft.com url and it should respons with HTT ...Show All

  • Visual Studio Team System ctp-5 deploy with multiple configurations not using selected configuration.

    ctp-5 seems to ignore the selected configuration when a deploy is performed. works fine from the commandline. thanks for updating the UI to support creating a configuartion rather than having to edit the project file by hand. Bruce, Thank you. It is a bug in CTP5, we have fixed it already. You can now (i.e. on current builds) build from different configurations, from both command line (msbuild) and IDE, and use TeamBuild as well. ...Show All

©2008 Software Development Network