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

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

Pimpom

Member List

vasudupe
John_from_Donetsk
Mateusz Rajca
Gseese2
Ariel Valentin
Manash
Shaun Whyte
David Anton
friendlyvlad
Alan Stevens
EddieSSD
Tom_Liu
andris11
Sarath.
jjvkm
thukralz
MuscleHead
Mike36
vijil
DevelopperX
Only Title

Pimpom's Q&A profile

  • Visual Studio Question about VSIP

    Hi All, Can we track the active project in the active solution with VSIP Probably with IVsSolution Or IVsProject But I dont want to do it with Com interface. Any idea will be appreciated. TIA. Regards, Hi, Forget about AddFile, my colleague and I eventually solved it. But still we are not very sure about it yet. If any of you would like to know how we did it, here you go: /*hierPtr is the IntPtr to the current project hierarchy. Since I only want to add one file, fileName, so I implemented these coming parameters */ IVsProject testProjIF = Marshal .GetObjectForIUnknown(hierPtr) as IVsProject ; Int retVal; VSADDRESULT [] addResArr = new VSADDRESULT [1]; string [] fnarr = new string [1] { fileName }; ...Show All

  • .NET Development TableAdapter insert/update/delete order

    I have a typed-dataset with a dozen or so tables which are hooked together with typical on-to-many and many-to-many relationships. I'm using table adapters to do the CRUD actions. For updates I was using: //Update parent tableadapter_parent.Update(dataset.parenttable); //Update child tableadapter_child.Update(dataset.childtable); But I am getting foreign key reference errors when deleting records because the adapter is trying to delete a row from a parent table but it can't because there is a FK refrence to it in a child table.  But if I reverse the order of the table adapter update calls so child tables are updated before parent tables then the deletes work but the inserts fail because it can't insert a FK reference into ...Show All

  • Visual Basic value comparison expression

    I have an If Else Then statement like the following, 'foo is an Integer, acceptable values are 1 to 99 If 0 < foo < 100 Then     'do something     ... Else     'display error     ... End If The compiler accepts this expression. When foo is negative, the expression is still true, and reaches 'do something. However, if I change the comparison expression into If foo > 0 AND foo < 100 Then ... It starts to do what I want (accepting numbers from 1 to 99). My question is, is expression <value> <operator> <variable> <operator> <value> not acceptable in Visual Basic 2005 The expressions are evaluated one afte ...Show All

  • Visual Studio December Sandcastle CTP - ResolveReferenceLinksComponent error

    I keep getting the error: Info: ResolveReferenceLinksComponent: Preparing to query MSDN topic URL web service. Warn: ResolveReferenceLinksComponent: Lookup of the asset ID 'content identifier not found.' using the MSDN topic URL web service failed. The error message is: content identifier not found. Warn: ResolveReferenceLinksComponent: Lookup of the asset ID 'content identifier not found.' using the MSDN topic URL web service failed. The error message is: content identifier not found. ... ... Any way of skipping the web service since it is not on the air. thanx, Jim In sandcastle.config, you can set the type attribute for the <targets> element in the component's configuration to "none ...Show All

  • Windows Forms multi select in grid

    Hi friends i've dataviewgrid with data from sql server db. our select can multi select on the grid. my question is ,users may sometime forget to hold Ctrl key and they loose all previous selections. and they have to redo all those selections again. am just wondering is it possible to have checkbox for selection (like in listbox) in grid Thanks for ur ideas I'm no expert on that sort of thing, but the only (nice) way I can think of to do this would be to override the default functionality of the DataGrid by extending it with your own class, or by placing the DataGrid into a custom control and taking over handling mouse clicks with your own wrapper code. Not very specifically helpful I know, but maybe some ideas that will help ...Show All

  • SQL Server The scripts in the store procedure run slowly, but quickly when executing in the Query Analyzer

    Hi, When i call the procedure sp_jysczld_new from the Query Analyzer, it runs slowly. But when i extract the sql scripts from the procedure sp_jysczld_new, it runs quickly. Why I don't understand. store procedure sp_jysczld_new: -------------------------------------------------- SET QUOTED_IDENTIFIER OFF GO SET ANSI_NULLS OFF GO CREATE  PROCEDURE sp_jysczld_new @gs_userid CHAR(16), @location char(10), @pri char (10) AS SELECT Z.ORDER_NUM,ZI.ORDER_ITEM,Z.CUSTOM_ID,ZI.PRODUCT_ID,ZI.PRODUCT_NAME, ZI.LENGTH,ZI.CDGC,ZI.HEIGHT,ZI.L_HEIGHT,ZI.U_HEIGHT,ZI.CATEGORY,ZI.COLOR_ID,ZI.SGQTYS,ZI.plannum, ZI.totalwgt,        ZI.banglong,ZI.bangzs,ZI.qgzs ,ZI.BANG_GRADE,ZI.PRI, ZI.LOCATION,Z.END_DATE, ZI.NOTE ...Show All

  • Visual Basic Usage of My.Settings Error

    I am trying to use the settings page to save user changeable options and when I try to read in anything from the settings I get the following error. Reference to a non-shared member requires an object reference. Example: Me.textbox.text = My.Settings.Servername Thanks... Strange problem, sounds like something got hosed in the Settings Designer generated file. Take a look at it: click the Show All Files icon in the Solution Explorer, open "My Project", open Settings.settings and double-click Settings.Designer.vb The relevant code in that file is: Friend ReadOnly Property Settings() As Global.WindowsApplication1.My.MySettings Get Return Global.WindowsApplication1.My.MySettings.Default End Get ...Show All

  • .NET Development Configuration Manager

    Hello All. Alright, let me start with just a little background.  I'm working on a Windows Forms client application, and in order to make it a single-instance application, I've got a named Mutex, which I naturally want to encrypt to prevent a DoS attack from any assorted twerps. Now, for whatever reason, the folks at MS don't seem to see the need for a tool like aspnet_regiis.exe for client apps, so already this has gone from trivial to tedious.  So, I worked up a little code to encrypt the config section in question, and I kept getting null reference exceptions.  Well, I backed up a bit and the problem seems to be referencing the "appname.exe.config" file.  Here's my code: using System; using System.Collec ...Show All

  • Visual Studio Express Editions Norton like Taskbar ico

    Hi. I was wondering if it is possible to make an icon like Norton has on the taskbar (Not the tray icon), the yellow one on it's left. It is directly a button on the task bar. Is there an API function (win32) for it Or maybe even a .NET function Thanks. Hey guys, I solved all problems. Here's the code if someone wants to make it too: Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" ( ByVal lpclassname As String , ByVal lpWindowName As String ) As Long Private Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" ( ByVal hWnd1 As Integer , ByVal hWnd2 As Integer , ByVal lpsz1 As String , ByVal lp ...Show All

  • SQL Server Unknown error using HTTP pump on a different server than the Analysis Services server

    Hello, I get an unknown error in the event log when trying to access AS2005 from Excel 2003 SP1 through IIS on a different server than Analysis Services: The description for Event ID ( 10 ) in Source ( MSOLAP ISAPI Extension: \\ \C:\Inetpub\wwwroot\Heloc\msmdpump.dll ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: . The event category is (269). I set up the server exactly as specified in Technet ( http://www.microsoft.com/technet/prodtechnol/sql/2005/httpasws.mspx ) except ...Show All

  • Visual C# Class inheriting itself

    Hi All,        I have a very serious doubt of whether a class can inherit itself. Though their is no purpose, i just want to know whether a class inherits itself. I have provided a sample code for you to check that it actually does which very much proves the concept of inheritance to be wrong.   public class Sample  {           public class Sample1:Sample   {           public  Sample1()    {     Console.WriteLine("Sample1 Constructor wihtout Argument");    }        public void a()     ...Show All

  • .NET Development SSL session problem

    How can I establish an SSL session ! When I connect to a SSL site using my browser, the SSL session is established. But when i try to do the same using C# I don't seem to be succesfull. Another problem that I don't understand is the fact that when I use my browser to connect to the IP address for instance https://192.168.100.12/advanced_statusF.cgi the session is open and i can login. the problem arises when i copy the page to disk and try to access C:\Documents and Settings\Goran.Kostel\Desktop\Fantom Login.mht , which is just a save as copy of the page, I can't log in. My intention is to login using C# but it appeares I'm not able to do that. Thanks! Can you add this line at the beginning of your code and see if it he ...Show All

  • Visual Studio Express Editions How to make my browser accept links.

    How can I make my (self-made) browser accept links. I want that every time I click a link or a url from any sources (i.e. email, documents, saved webpage) the file will open to my browser. I use the file association and checked that every time I open html pages from my local machine, the browser will launch but the problem is that the browser didn't open the page. The application just open without doing anything. Hope somebody can help me on this. :-) Ichi ...Show All

  • Visual Studio the filename selected is not recognized as legal.

    Hi, I am not able to open project throught visual sourcesafe internet mode. what I did is click file->open->project/solution, then click SourceSafe(internet). it complains "the filename selected is not recognized as legal. Please select another file or rename the selected file.". the file name is very simply and I can open that in other machines. And one thing I am pretty sure is that I was able to open that file before using same way. I actually tried the method in this post , but it doesn't work. So can any one help me to figure out the reason   Thanks this error message looks like this This does not seem like a problem with Visual SourceSafe; The problem seems to be ...Show All

  • .NET Development VS/compiler problem using generics/(inner) classes

    Hi, Here's a piece of code that makes VS hang: using System; namespace GenericsTest {     public abstract class BaseClass<ConcreteClass> {         public abstract ConcreteClass CreateChild();         public class Inner : BaseClass<Inner>{             Inner CreateChild() {                 return new Inner();             }         }     } } With similar code which doesn't make VS hang I can't use BaseClass.Inner as a metho ...Show All

©2008 Software Development Network