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

Software Development Network >> -K-a-Z-a-F-'s Q&A profile

-K-a-Z-a-F-

Member List

jminond
Matrixchyah
peterxz
Milzit
wolf777
Rick Kriscka
chakravarthy_b
Mykhaylo Blishch
ChrisMcCabe
neely
cosmmm
AlucardHellSing
aoky
ONEWORKNGRL
afroblanco
Petchey
C#Geek
Danny Thorpe MSFT
slippyC
TruePsion
Only Title

-K-a-Z-a-F-'s Q&A profile

  • Windows Forms Render a Questionaire as Win Form from XML file? (C#)

    Hi, Apologies if this if the wrong place to ask this... I am investigating the possibility of creating a windows forms-based questionnaire which is rendered entirely from an XML file. The scenario is that a sales operative could download an meeting agenda as an XML file. This could then be opened during a customer visit and used to render every section and element on the form, allowing them to input their answers to each question and any notes before saving the data back into the XML agenda file. Each completed XML agenda file would then be uploaded to the account management system when the sales operative returns to their office and saved to the accounts system. We have investigated web services and other ways of doing this, but this is t ...Show All

  • Software Development for Windows Vista Setting the Application Name in the UAC dialog?

    Hello, I have successfully made my application UAC-aware by using a application manifest and compile is to a .res-file using the rs tool. And it works fine, however there is somthing that disturb my eye: When I run my application, and the UAC dialog apear, a random/temp name figures instead of the application name (eg. XavD452.tmp). My Application name is "Xavier", so it looks like it got the first letters right :) But if you start up, lets say "mmc", the application name is correctly displayed in the UAC-dialog (in this case "Microsoft Management Console"). How can I correct this, so the application name apear in the UAC-dialog, like it does with e.g. mmc Im running on Vista RTM (Business), Vi ...Show All

  • Visual C# Getting Initial DLL reference

    After using Assembly.LoadFile() to load a DLL, is there any way at all to get an initial reference into it, of any kind (e.g. the ability to call a static method, the ability to make and get an object reference, etc) without using reflection I only know how to "get going" on a DLL I've loaded, if the first thing I do is a bit of reflection. On the other hand, perhaps all I'm really looking for, is the C# equivalent of the old "GetProc" used with C++ (which is a reflective kinda thingy, but I'll settle for this if nothing else). No you need to use reflection one way or another. At least you have to get a Type from the assembly that you can instantiate using Activator.CreateIntance. You can then cast it to a well known interface ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. C# modulus operator % sucks?

    So in C# when I do -1%something I get -1, which means I can't really use it as an array index without a bunch of stupid error checking.  Is there some way to force the modulo operator to actually give me numbers from my field (e.g 0-5 for modulo 6) Edit: Well, I made this post at 2:00 am and it shows, here is what I have issue with: i = (i+1) % 6 will result in numbers from 0 to 5, which I could use for an array index i = (i-1) % 6 will result in numbers from 0 to -5, which can't be used in an array index Obviously, the absolute value of those results would not conform to any logical value, either (for instance, array[-1] and array[1] would be the same value, even though they should be 2 values apart if I decremented twice ...Show All

  • Windows Forms Adding Components to Windows Forms

    anyone have any links on how i would add a component control to my windows form I created a component and now i want it to be inside my panel on my windows form but I cant find much info on the net to help me out though.... When you create a component or a user control, it usually appears under My Controls. You can drag it from there to your form. This way the object will be initialized. ...Show All

  • .NET Development MSSQL table names

    hey, i'm getting a table from my MSSQL server, but for some reason it has to have the user name preceding it. SqlCommand getOrgs = new SqlCommand("SELECT DISTINCT Organization FROM phenostream_usr.Affiliations"); why is this why can't i just say "From Affiliations" I believe this occurs because the user ID you are logged in with is not the owner of the object, and there are other objects with different owners but the same name. See the following for more info: http://msdn2.microsoft.com/en-us/library/aa905163(SQL.80).aspx ...Show All

  • Smart Device Development About SDIO Card Driver

    Hai, I am studying about the SDIO Card driver. From my understanding the client driver is loaded after inseting the SD Card by the Bus driver. When the Host controller Driver is loaded Actually i want to diagnosis the SD Card port before inserting the SD Card .Is there any means to find this.I am using the PXA270 processor You'd better get yourself a copy of Platform Builder if you are really set on doing this. Talking to the hardware is no small task and it is platform dependant so you will have to rewrite it for several platforms, essentially writing your own PDD layer. If you are just trying to see if an SDIO port is available there a ways of checking the registry. You can also (as Micheal suggested) just in ...Show All

  • SharePoint Products and Technologies How to create a sign up page on wss 3 ?

    Hi, I would like to let the possiblitie for people to acces to my site. By first creating an account via a sign up page and then the user have to sign in to finally access to the sharepoint website. But I have no idea about how to do such thing (what tool i need , infopath, visual studio ... ). I dont know as well how this system can interact with active directory. Thanks for your help Hi arioule, first of all is it necessary for you to use active directory for you to store your use profiles How about switching to Forms Authentication You can easily do this, here are a couple of guides: http://www.andrewconnell.com/blog/articles/HowToConfigPublishingSiteWithDualAuthProvidersAndAno ...Show All

  • Smart Device Development Slow Connection Manager / GPRS connection

    Hi, I'm using the following code in a loop every second to check that the GPRS connection is active, and if not then connect it. It worked fine under VS2003 but since changing to VS2005 it runs incredibly slowly and makes the program inoperable. Can anyone shed some light on it or offer any improvements Thanks if ( ( ( Global.connMgr.Status != ConnectionStatus.Connected ) && ( Global.connMgr.Status != ConnectionStatus.WaitingForNetwork ) && ( Global.connMgr.Status != ConnectionStatus.WaitingForPath ) && ( Global.connMgr.Status != ConnectionStatus.WaitingForPhone ) && ( Global.connMgr.Status != ConnectionStatus.WaitingForResource ) && ( Global.connMgr.Status != ConnectionStatus ...Show All

  • SQL Server Are these queries possible without cursors or a while loop?

    I appreciate any help or advise! Thanks assuming the contents of the table are: 1 52 PUERTO RICO 2 52 PUERTO RICO 3 10 MA 4 52 PUERTO RICO 5 5 NY 6 10 MA 7 5 NY 8 52 PUERTO RICO 9 10 MA 10 11 RI 11 12 PA 12 13 CT 13 14 GA (1) detect if there are duplicates and select those records create table twoCol ( id int identity(1,1), colOne int, colTwo varchar(30), modified_last datetime ) I would like to detect all duplicate rows based on colOne and Col2 e.g(all three of these rows have same colOne and Col2) 3 10 MA 6 10 MA 9 10 MA e.g(all four of these rows have same colOne and Col2) 1 52 PUERTO RICO 2 52 PU ...Show All

  • Visual Studio 2008 (Pre-release) Bug? - .Net sensitive to the ordering of parameters in the HTTP Content-Type header

    Hi everyone I'm doing some web service interop testing with Apache Axis, and we've discovered that the ordering of the properties in the Content-Type http-header seems to be an issue to .Net. .Net doesn't add the (optional) action parameter to content-type, but so does Axis, which causes some trouble. A http Content-type:    application/soap+xml;charset=utf-8;action="myAction" is ok to .Net, but not a:    application/soap+xml;action="myAction";charset=utf-8 Since I can see nothing in the specifications about the parameters needing to come in a certain order, I would think that this is a bug in .Net. Could that be right Some nice 'ol links to the definition of Content-Type and action: [1] http://www.w3.org/ ...Show All

  • Visual C++ Is there a way to create a dll in C++ without a def file and have it work for a Visual Basic Host?

    Is there a way to create a dll in C++ without a def file and have it work for a Visual Basic Host The code for the function and the VB declaration are as follows: extern "C" __declspec(dllexport) int __stdcall changefile(char *filename) { FILE *fp; fp = fopen("geo", "w"); fprintf(fp, filename); fclose(fp); return 4; } Private Declare Function changefile Lib "C:\Program Files\Microsoft Visual Studio\MyProjects\d\Debug\d.dll" (ByRef filename$) As Integer Any thoughts ...Show All

  • Visual Studio Tools for Office How to uninstall Outlook Addin

    Hi, I have created one outlook addin project in which I have created one button named "Update database" which get added to outlook toolbar after installing. Now I have also created installer file for this project. When I install this installer to my system, I get the respected button into my outlook But when i uninstall this addin, Still I have the same button into outlook. I want this button should disappear after uninstalling. Thank you You need to explicitly remove the button from the toolbar. The way many Add-ins handle this is to remove the button when they unload (and create it again - if it's not present (which can happen if the app crashes) - when they load). ...Show All

  • Visual Basic Printing screen through code

    Is there code to print screen through VB Excellent, Thanks. But is there a way to specify the file path to which you want the bmp to be saved to Or be linked to a save file dialog ...Show All

  • SQL Server Getting Return type from Stored Procedure

    Hi all, I am trying to figure out a way to analyze a stored procedure to deduce its output type. A stored procedure can return values throught one of the following: 1) Using the Return keyword 2) Returning a recordset 3) Throught its Output parameters 4) A combination of 1, 2 or 3 Using the Information_Schema, you can access the SQL code of the stored procedure from, say, VB.Net. From there, I want to know what output type the stored procedure has. A) for 1), I guess I can parse the code for the 'Return' keyword, but that wouldn't be efficient, for the 'Return' word could be inserted into string values... B) for 2), it would be difficult to analyze the stored procedure's code to know FOR SURE whether a recordset ...Show All

©2008 Software Development Network