Ayush's Q&A profile
Windows Forms Appdomain Create and unload Assembly into
Ok this might sound really simple, though I have had nothing but trouble. All I want to do is be able to create an instance of a class in an assembly and then be able to unload it. So when it unloads then the dll will not be ...Show All
Windows Forms Securing the app.config file
Hi, can anyone tell me how to secure a app.config file in a windows forms application We have settings inside our file that we don't want users to be able to modify/read. Thanks, D. use NTFS Security deny all users and create a&nb ...Show All
Windows Forms MDI + external exe
Hi can anybody give me the code so that i can load external exe's as MDI childs into my application. Also cn anybody give me code so that i can load exe's from .dlls as MDI childs into my application Thx Assuming your exe or dll is .NET.... ' MyAssembly exe or dll contains the form to be instantiated System.Reflection.Assembly asm = System.Reflection.Assembly.LoadFrom( "MyAssembly.exe" ) ' This create an instance o ...Show All
Visual C++ Using windows.h in C++/CLI project
Hi jedediah! What do I have to do to include windows.h in a CLI project and be able to make Win32 API calls If I simply include windows.h, I get a lot of errors like these: 1>C:\Program Files\Microsoft Platform SDK for Windows XP SP2\Include\WinNT.h(636) : error C3641: 'Int64ShllMod32' : invalid calling convention '__stdcall ' for function compiled with /clr:pure or /clr:safe 1>C:\Program Files\Microsoft Pla ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Selection Buffer in managed directx?
I know there was a brief thread on this already but I didn't find that the coments answered the question I have. Is there something in managed directx equivalent to the openGL selection buffer If so how do I find out about it If not then is there a standard aproach to selection in directx I can handle the maths, but I just wanted to save some time if possible and try to do it the best way. I'd nev ...Show All
Windows Forms Error: PInvoke item (field,method) must be Static.
I am getting an error and don't know how to begin to fix it: <color="darkred">Error: PInvoke item (field,method) must be Static.</color> Here is the function that I am calling: <DllImport("winmm.dll")> _ Function PlayASound(ByVal ...Show All
.NET Development ODBC <> FileMaker VWD ODBC Bug?
I work for a company who have a large amount of data stored in a FileMaker database. I'd like to access that data from VWDexpress and do wonderful things with it. My problem is when i try to add an SqlDataSource in VWD (That's Visual Web Developer express edition) Here's what i did... I set up a very simple database in FileMaker with just a few fields which i populated with test data. I set the database to be ab ...Show All
Windows Forms Question about BinaryReader
I have a couple questions about using BinaryReader on a NetworkStream. 1. With BinaryReader, am I correct in assuming that all read methods that read in a specific data type (such as ReadBytes(), ReadByte(), ReadInt32(), etc.) will block until there are ...Show All
Visual C# Editor Indentation
I'm using the express edition. I would like to change the indentation to 2 spaces in lieu of the curent number of spaces. Can someone direct me on how I can accomplish this. Thanks It is the same place in C# express that you do this except that the view is simplified and you need to do the following to show the "Tabs" page. Go to Tools | options dialog. Check "Show all settings" ch ...Show All
.NET Development how can we put a resultset of a sqldatareader into a datatable object
how can we put a resultset of a sqldatareader into a datatable object Thanks. Here is a variation of how you can do it in .Net 1.1 using System; using System.Data; namespace DataConversion { public class DataConverter { public DataConverter() {} public DataTable ReaderToTable(IDataReader dataReader,string tableName) { if( tableName.Length == 0) tableName = "unknownTable"; DataTable schemaTable = null; ...Show All
Visual C# EventHandling question
Hi, I'd like to know if it's possible to place all my eventhandling methods in a separate class specifically for eventhandling methods. What I want to achieve is to have 2 separate class files with one class file being the GUI part and the other class file handling the events. Below is my sample code... Class2 contains the GUI and Class3 contains the EventHandling method. I keep on getting "Error 1 'Project1.Class3.FileExit_Clicked(ob ...Show All
SQL Server Database query performance
I have a database table. The table has number of fields. Out of those fields one is Company and another is DateTime. The table has thousands of records. I want to get the most recent record for each company. In order to do that I am using the following query SELECT * from CompanyDetail AS X WHERE [DateTime]=(SELECT max([DateTime]) FROM CompanyDetail WHERE Company=X.Company) ORDER BY Company Note: There is only one record exists for the given c ...Show All
Visual C# Problem with timer and progress bar
I'm still pretty new to VS.NET/C#, so please be easy on me even though this is probably an easy question. I have the following code snippet in which I am trying to run a thread and have it return values so that I can update my progress bar. Every time I do so, I get the following message: "The name 'sqlProcess' does not exist in the current context." Here is the code: /////////////////////////////////////////// private void button1_Cli ...Show All
Windows Forms Deploying Windows Applications
What is the easiest way to deploy a windows application developed in VS 2005 to the Mac OS Would the grasshopper program work Or, is the only option to develop a web-based application, and if so, will there be any problems with viwewing this on a Mac Robert Windows Forms developed in 2003 or 2005 to not support the Mac OS as the .NET Framework does not install on anything but on a Windows operating sy ...Show All
SQL Server Help retrieving values from 2 similar stored procs
I created one stored proc, then copied it to create another similar stored proc with just some filtering changes in the second. Now I want to obtain the results from both like this: ProjFee ProjGross DailyRunRate Var1 InHouse1 InHouse2 GrossGoal Group Name PostedAmount ---------------------------------------- ---------- ---------- ---------- ---------- ---- ...Show All
