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

Software Development Network >> Chief G's Q&A profile

Chief G

Member List

JB1863
yogiberr
Raffaele Rialdi
amiune
Wintallo
arcliner
Visualbrin
Bastiaan Molsbeck
QQN
RobYull
Sailu
Zhiwei
MOHAMMED1
Ice_
Killme428413
jkushiner
Scott Herbert
Noral
Bjorka
jdonahue1971
Only Title

Chief G's Q&A profile

  • Visual Studio 2008 (Pre-release) XPS document sequence and Application.GetContent/Resource/RemoteStream

    How to load XPS document sequence from application resources I use this: Stream stream = ApplicationStreamHelper .GetStream(source); if (stream != null ) { Package package = Package .Open(stream); XpsDocument xps = new XpsDocument (package ); document = xps.GetFixedDocumentSequence(); } public static class ApplicationStreamHelper { public static Stream GetStream( Uri uri) { if (uri == null ) throw new ArgumentNullException ( "uri" ); StreamResourceInfo streamInfo = null ; if (uri.Authority.StartsWith( "siteoforigin:" )) { streamInfo = Application .GetRemoteStream(uri); } else { streamInfo = Application .GetCont ...Show All

  • .NET Development Changing credentials on the current thread

    I'm writing in vb,net 2005, and my program needs to allow a user to specify a domain, username and password, and then switch credentials for the current thread and any threads it spawns. If the current thread credentials cant be changed thats not really an issue as most of the work is done by threads created with parameterizedthreadstart. So how can I either launch a thread or change the current thread to use a different windows login thanks Thank you for this. I have implemented the code these articles suggest, but I'm finding that the processes are not getting elevated privelages. However this might be because I'm not working in a domain environment. My setup has all pcs with the sam ...Show All

  • Visual C# Exception opinions?

    I'm just busy writing a dialog box which needs a property to be set before ShowDialog is called. In the OnLoad, I'm checking whether it's been set and throwing an exception if it hasn't. Question is: which exception is most appropriate I'm leaning towards InvalidOperationException. Of course, I could change the dialog's constructor to take the value as an argument, but I've got a notion that dialogs should provide a parameterless constructor --- is that right, or did I dream it The dialog cannot usefully instantiate a default instance of the class whose properties it is modifying, and it would not make sense for the dialog to be displayed without a properly instantiated class. It is up to the calling process to create an instance ...Show All

  • SQL Server SQL Documenter - Beta available?

    Hi, In this thread: http://forums.microsoft.com/msdn/ShowPost.aspx PostID=86687  Kirk Haselden talks about a tool named "SQL Documenter" scheduled for release around the time SQL Server 2005 is released. Does anyone know is there is a beta available of the tool and if a precise release date has been set for the tool Regards, Sune Have you sent Kirk an email and asked him directly I haven't seen anything on it. I've been using Jesse Hersch's Documentation tool ( SqlSpec ). For $20 I can't beat it. It doesn't dig down into SSIS or anything like that though; just for tables, procs, triggers, etc. /**************************************************** Check out our Sql Server 2005 and 200 ...Show All

  • SQL Server rows into columns

    I am converting rows into columns : Schedule_S1 contains more than 1 rows with different FROM_DATE and TO_DATE The query should merge 2 rows into 1 row with 2 different FROM_DATE AND TO_DATE The following query works fine when there are more than 1 records. When there is only 1 record, it should still return the record (with FROM_DATE_2 and TO_DATE_2 as nulls). Thanks for any help. SELECT ml1.P_ID, ml1.S_ID, ml1.CURRENT_DAY, ml1.FROM_DATE AS "FROM_DATE_1", ml1.TO_DATE AS "TO_DATE_1", ml2.FROM_DATE AS "FROM_DATE_2", ml2.TO_DATE AS "TO_DATE_2" FROM Schedule_S1 ml1 JOIN Schedule_S1 ml2 ON ml2.FROM_DATE > ml1.FROM_DATE WHERE ml1.P_ID = 59014 AND ml1.S_ID = 25691 AND ml1.CURRENT_DAY = ...Show All

  • Visual Studio Team System Is there any attribute in the Method to show it is generated by compiler

    hi all Is there any attribute in the Method to show it is generated by compiler what is the mean of IsGeneric of the Method's attribute Are you talking about InitializeComponent This is not actually generated by the compiler but actually the designer. Unfortunately, there is no indication in the IL that this is a generated method. You will need to specifically check this method. ...Show All

  • Internet Explorer Development Site having MAJOR rendering issues in IE6

    I've been working on a website for my school's FIRST Robotics team, and work has been coming quite nicely, but I have encountered a major roadblock, it is rendering absolutely horribly in IE6. It looks okay in IE7, but looks the way I want it to in Firefox. The link to it is http://www.theunforgivenones.net/robotics/dev_site/ Any help at all would be greatly appreciated, I have already searched google and have tried different 'fixes' out there. Thanks, I do appreciate the reply. The thing is, in early stages of development of the layout, it rendered fine in IE6. I wish I had followed its progress in IE6 all along, but I had upgraded my desktop to IE7. I don't think the problem is in the HTML, but probably ...Show All

  • Windows Forms How to share an object instance through all forms just like vs6.0's global variables?

    Now I am doing a c#.net 2005 database project.At the begining, I want to design a login form and after user successfully logon, I will store its account and something else such as Sales Month selected. But I found that c# is purely object oriented language and there is no gloabl varialbe. I wonder how to do this. I have been used to web design and this is my first real winform project(Before only some simple projects). So there are many questions during my design. Another problems: After I new a child window in its Mdi parent, I want to transfer some information to the child, how can I do Now I am trying to define some members and methods to manipulate them in the child form, and so I can invoke the mothods to transf ...Show All

  • .NET Development Sticky SqlCommand session

    Hi all, After executing a SqlCommand, and closing its' connection, and even manually disposing everything off... sp_who still says that the session is there, untill I close the whole application. It's a Big deal: because of the locking i'm creating in that SqlCommand, that never release... untill i close the application. how can get rid of the SqlCommand session and does this relates to connection pooling ... SqlConnection sqlCon = new SqlConnection(...); sqlCon.Open(); SqlCommand sqlCmd = new SqlCommand("create database foo", sqlCon); sqlCmd.ExecuteNonQuery(); sqlCmd.Close(); sqlCmd.Dispose; sqlCmd = null; sqlCon.Close(); sqlCon.Dispose(); sqlCon = null; ... I have my foo databas ...Show All

  • Visual Studio Unable to debug unmanaged C code

    Hi, I have a solution in VS2005 that comprises of a main vb.net project and an unmanaged C DLL, the linkage being via dllimport. I have my vb.net project set to allow debugging of unmanaged code and my C project set as mixed, but no matter what try I cannot get the source displayed when I step into the C DLL. Any ideas Yes, that's correct, I tried building with the pdb and setting the path for that explicitly but still no joy. It just says "exports loaded" (also, in desperation I made every single function in my code an export just so I could start to see where in the DLL it was - yep, really desperate!!) ...Show All

  • Visual C# namespace question

    I'm new to .net and have a very basic question about namespaces. I'm using Visual Studio.Net 2003 and created a web application project using the namespace "compass" I created my startpage index.aspx in the root directory. So, when I debug and test in the browser the url in the address bar shows: http://localhost/compass/index.aspx Now, I created a sub directory "About Us" to hold the appropriate files for that section of the website. I created a webform "index.aspx" for that directory. I have an xml file that defines my site navigation. So, the url to the 'about us' section would be: /about_us/index.aspx However, when I try to view the page in my browser: http://localhost/about_us/ ...Show All

  • Visual Basic Write data in VB.NET to Access using SQL

    Okay, I have an Administrator page that is able to create new users. I have a simple adduserform that has a TabControl added in it with a tab for General Info and User Info. Those have quite a few texboxes for input and outside of the TabControl are 3 buttons that are Save, Clear, and Exit. What I want to do is have the Save write the data to my small database that I have for users. If you want to see an example of my screen you can see it here.... http://redbearcustoms.no-ip.info/VB/adduserform.html Yes, I was wondering if there was any way that I could post a picture of my screens without having to link to another site. ...Show All

  • Audio and Video Development How to disable PRINT SCREEN on DRM'ed Videos

    You can still use "print screen" key to capture video frames on videos protected with DRM if you turn off the "Use overlays" in Windows Media Player's "Video Acceleration Settings" Im using Windows Media RM 10.1 to protect our streamed video content via web embeded objects. How to disable PRINT SCREEN on DRM'ed Videos Is there any workaround to prevent viewers doing this or is it posible to force the Windows Media player to "use overlays" Thanks, XyMeX Try posting your question here: http://www.microsoft.com/windows/windowsmedia/community/newsgroups/WindowsMedia/default.mspx dg=microsoft.public.windowsmedia.drm&lang=en&cr=US ...Show All

  • .NET Development Canot send html format mail to hotmail

    Iam trying to send html format mail to hotmail but i canot recieve any mail in my hotmail account. i am able to send mail to all other email services except hotmail. can you post the code you are using if you are using junk email filtering in hotmail, check to see if your emails are being redirected to this folder. ...Show All

  • .NET Development Output Parameters with Application Block's SqlHelper

    Hi, I want to use the Microsoft Application Blocks SqlHelper class with some of my stored procedures that have output parameters, but I can't figure out how SqlParameter [] parameters = new SqlParameter [1]; parameters[0] = new SqlParameter ( "@SomeID" , object.Id).Direction = ParameterDirection .Output; SqlHelper .ExecuteNonQuery( this .sqlConnectionString, "spMisc" , parameters); However, how do I get the value of the output parameter Thanks,   Weiran. One thing I have noticed is that some of the ExecuteNonQuery overloads do not work with output parameters. The ones like that are noted in the comments in the source code for the method. For example, the follo ...Show All

©2008 Software Development Network