Kardi's Q&A profile
Visual Studio ZipProject Build Action with multi project template missing
i have a VsPackage project contains the following file structure : -- MyVsPackage ---- Templates ------ Projects -------- DAL ---------- MyTemplate.vstemplate ---------- DALProject.csproj -------- BAL ---------- MyTemplate.vstemplate ---------- BALProject.csproj -------- __TemplateIcon.ico -------- root.vstemplate each file item in the "Projects" folder has build action "ZipProject" and the "root.vstemplate" file is of type Project Group as follow: < VSTemplate Version = " 2.0.0 " Type = " ProjectGroup " xmlns = " http://schemas.microsoft.com/developer/vstemplate/2005 " > < TemplateData > < Name > Portal ...Show All
Windows Forms where can I find out about the combo autocomplete
not much detail on how to use. I want my custom datasource to be the same as what filled the combo box I'm not sure I understand you completely, but maybe this post will give you some idea If not, please post some more details on what you're trying to do. Andrej ...Show All
Windows Forms How to know if the "Active" application changes?
Hi All. Is there any way to be notified when the "Active" application changes By active I mean which application currently has mouse and keyboard focus. I need to be able to know when my application becomes active and when it becomes non-active. (i.e.: via minimization, or alt-tab, etc) I tried handling the LostFocus, Activate and Deactivate events on my main form, but this didn't solve my problem because I have a number of top level windows, and when anyone of those gets focus, the event handlers fire on the main form. What I really need to determine is if the application is in focus or not - regardless of what form of the application looses/gains focus. Windows sends the WM_ACTIVATEAP ...Show All
SQL Server Trying to get jpg image saved to sqlce db
I'm trying to get this logic to work in vb.net. I keep getting errors on assigning the value of the image to the parameter. Also, how do you do the reverse and retrieve it from the sqlce db into a picturebox Any help is greatly appreciated. Thank you. Dim value As ImageFormat Dim imageBytes As Byte () Dim cn As SqlCeConnection Dim strSQL As String Dim cmd As SqlCeCommand value = ImageFormat.Jpeg Dim ms As New MemoryStream() pbxPhoto.Image.Save(ms, ImageFormat.Jpeg) imageBytes = ms.ToArray() cn = GetConnectionStart(cstrSQLCeFileName) strSQL = "UPDATE BaltPhoneDir Set Photo = Values ( ) LName_1 LIKE '" & strLastName & "' AND FName_1 LIK ...Show All
Windows Forms Two active forms
Hi! I'm developing an application which needs 2 active forms at the same time - something like Photoshop with af form at top of the screen (the mainform) with a menu and a toolbar which can open different childforms. What I wan't is to have the mainform and one of the childforms to be active at the same time so that I can activate the menues and toolbar of the mainform with just a single mouseclick and shortcut keys from the keyboard while a childform is active. I don't wan't to use a MDI form and childforms. When I open a childform I add it as a OwnedForm to the mainform. Is there a way to have 2 forms active at the same time Thanks! Brian Hi bhanu Because I wan't to take advantage ...Show All
Software Development for Windows Vista Vista slow boot
It wasn't until today that i thought to unplug my drives that are connected to my IDE add on card. Before that it could take Vista upwards of two hours to load but with those drives removed it took 30 seconds. Why is this i need those other drives. thanks for the answer haven't had a chance to check yet...but let me explain some things about my system a little more carefully. I have a dualboot system with XP and Vista. This is a new system with 1 SATA master hard drive. then 4 (slave) IDE hard drives on an adapter card. My DVD drives are running off the on board IDE channel. I have and EVGA 590SLI motherboard (same as Foxxconn) Dual 7600GT Creative SB Audigy 2 2 DVD burners 1 WD SATA 4 various IDE 1GB memo ...Show All
.NET Development WMI to get file/directory info
Hi, I need to access to the content of a directory and the version of a file on a remote Win Server 2003 machine, is there any way to do this through WMI or System.DirectoryServices The directory in question isn't shared and i have the user and password of the remote machine. P.S.: using C# Well, by now i can list the the subfolders i want using wmi but i get an invalid query when querying for a file version, can you tell me why, it only happens when i use the \\ . oq = new ObjectQuery("Select * from CIM_Datafile Where Name = 'c:\\windows\\system32\\scrrun.dll'"); query = new ManagementObjectSearcher(ms, oq); queryCollection = query.Get(); foreach (ManagementObject mo in queryCollection) { &n ...Show All
.NET Development Imports cell from DataTable
I have a DataTable with many Columns i want to imports Data From one Column and add it to a variable How do i do it in VB usually its something like this: Dim theColumnItem as Object = theDataTable.Rows(index).ItemArray(index) or Dim theColumnItem as object = theDataTable.Rows( index )( ColumnName ) does this answer your question ...Show All
Software Development for Windows Vista How to pass a GUID to a WebServiceInput activity ?
Hello. I have a trouble which is similar to the thread you sent. I am trying to build a sequensial wokflow which contains a webserviceInput activity not as a starting activity in the workflow of the workflow, I use persistence in web.config and the persistence works fine. The problem is this: supposing I start the workflow from a window form. I get to the webserviceInput activity and the workflow is being stored into persistence as it should do. Then, I want to continue the workflow instance by calling the webserviceInput activity, but I do not know how to send the GUID to the webserviceInput so it will know which instance to open. I saw that when calling via HandleExternalEvent activity, I can send the GUID but when I am ca ...Show All
Visual C++ A bug in C++ compiler? (full constructor definition is required before it can be called)
Hi, The following code sample does not compile in VS .NET 2005: class Base { public: Base (int i) : b (i) {} private: int b; Base (); // private default ctor }; class Derived : virtual public Base { public: Derived (int i); private: Derived (); // private default ctor }; void main () { Derived d (5); } Derived::Derived (int i) : Base (i) {} The compiler complains about inability to access Base::Base() (default constructor). But why does it need to access this constructor A way to compile it is to put definition of Derived's constructor (the last line) either into class declaration (inlined), or before main(). Also the problem goes away if I get rid of virtual inheritance. This code sample compiles just fine on Sun. Any ideas ...Show All
Visual C++ makefile, have a makefile from a unix app, how do i use it in Visual C++?
simple console application with all files (*.h & *.cpp) in one folder. Visual C++ makes a slow chess playing *.exe out of them, 20% loss in playing speed. How do i use the makefile that came with it ---------------------------- makefile ----------------------------- # files EXE = PrunedFruit OBJS = main.obj attack.obj board.obj book.obj eval.obj fen.obj hash.obj list.obj material.obj \ move.obj move_check.obj move_do.obj move_evasion.obj move_gen.obj move_legal.obj \ option.obj pawn.obj piece.obj posix.obj protocol.obj pst.obj pv.obj random.obj recog.obj \ search.obj search_full.obj see.obj sort.obj square.obj trans.obj util.obj value.obj \ vector.obj # rules all: $(EXE) .depend clean: $(RM) *.ob ...Show All
Visual Studio Team System Build Synch Script vs. Schema Compare Synch Script
When I use the Schema Compare option to compare my project against a target database, the result is a Schema Update script that is 26 lines long (there is only a single object that needs to be dropped in the target). However, when I Build my project and have the database as above setup as the Target database as defined in the Build properties of the project, I get an update script that is over 7,300 lines long! Many of these lines involve altering stored procs and refreshing views that Schema Compare didn't think was necessary. Shouldn't these two operations be doing basically the same thing; comparing the project with a source database and generating a synch script BTW, in the project Build properties, the only option I have checked ...Show All
Visual Studio 2008 (Pre-release) Performance when using with WCF
When I use the entities within a WCF muti-tier service, the performance is terrible. I am guessing that it is trying to search for the WCF transaction I have not specified any WCF transactions, and am using basic http binding. The performance is so bad that the WCF service is timeouting even when i set the timeout to about 1 min. Has anyone out there used entities in a WCF service I think what we should see here is some way to take a "live" entity and disconnect it from the underlying model so that there are no traps for property change events and no attempt at remote identity management, etc - that would enable you to pass disconnected entities around across AppDomain barriers. I don't ...Show All
.NET Development problem saving of xml file (argument exception was unhandled)
hi i have proplem with me code i have an xml file this tha schema of it < xml version="1.0" standalone="yes" > <!--Sample for for exercising PFM_StateData namespace--> <states_StateDataForm_DemoForm> <Attributes> <Type>TextBox</Type> <Name>txtSummary</Name> <Width>358</Width> <Height>51</Height> &nbs ...Show All
.NET Development Question about BinaryReader?
when I call a function, say ReadSingle(), will BinaryReader read just 4 bytes from the file or it will read a large chunk of data from the file at a time and cache it and only return what I am asking I am trying to read/write a large file (50-->100MB) from/to a network drive. I am trying to find an optimal way to do it. Any suggestions would be appreciated. Thanks, hdp. Poking around with Reflector, I see BinaryReader use a 16 byte buffer. That's not a lot. I assume it is relying on Windows buffering the data... ...Show All
