Christie Myburgh's Q&A profile
Windows Forms Calculate visible data in a connected datagrid column only
Hello, This is a hard one and I am not sure if anyone can help me please. I have a connected datagrid to a table in which the 'table has a thousand records'. I am able to populate the datagrid with the data I need only using a date range. So with the 25 rows of data in the datagrid I have requested I need to calculate column A. I am not interested in calculating the full column in the table only whats visible in the datagrid. Can anyone please help me with sample code Thank You Joe Hi Paul thanks for that. The date range is between the dates entered in 2 text boxes on the form and teh summing needs to be done on the visible data in the data grid. I think I might have to purchase e ...Show All
Visual Studio Returning variables from the BuildEngine to application
Hi, I have an application that runs a MSBuild engine and I can pass parameters, and build projects fine, but I also want to get the variables set during the build (like a task output) into my application. I was able to do this in custom tasks using custom events and catching this in the logger but this seem clumsy. Is there a way of getting the engines parameters after the build is done. Thanks, Kuruvilla. ...Show All
Smart Device Development problem - DeviceIoControl
Hi , I am tyring to retrieve the names of the adapters using IOCTL_NDIS_GET_ADAPTER_NAMES CE-specific NDIS DeviceIoControl request. This is the piece of code i am using to retrive adapter names. PIP_ADAPTER_INFO pAdapterInfo; BOOLEAN bRc; ULONG bytesReturned, nBufferLength; PWSTR pszAdapterName ; HANDLE m_hFileHandle = CreateFile(_T("NDS0:"), 0, 0, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, (HANDLE) INVALID_HANDLE_VALUE); if( m_hFileHandle == INVALID_HANDLE_VALUE ) { printf("Could not open file (error %d)\n", GetLastError()); return 0; } // Get list of adapter names bRc = DeviceIoControl(m_hFileHandle, IOCTL_NDIS_GET_ADAPTER_BINDINGS, ...Show All
.NET Development EOF not set with StreamWriter
Hello, When I execute the following code the EOF marker is not being set correctly. I've tried flush and that doesn't seem to work. StreamWriter FPFileOut; FileStream FavoritesFS; FavoritesFS = new FileStream ( "FavoritePrograms.txt" , FileMode .OpenOrCreate, FileAccess .Write); FavoriteProgramsRecord FPRecord = new FavoriteProgramsRecord (); FPFileOut = new StreamWriter (FavoritesFS); for ( int i = 0; i < FavoritesArray.Count; i++) FPFileOut.WriteLine(FavoritesArray ); FPFileOut.Close(); FavoritesFS.Close(); } Originally my file contains ABC Heroes Jericho After I programmatically remove Heroes from the FavoritesArray (using FavoritesArray.Remove) lea ...Show All
Visual Studio deployment ON OS win98
wen i try to deploy my application on win 98 it works perfectly but non of the crystal reports works ,,,, don't know y !!! does any buddy know Are you including the Crystal Merge Modules in your deployment package Check out http://support.businessobjects.com/downloads/merge_modules.asp Also, which version of Crystal Reports are you using ...Show All
Visual Studio Team System Visual Studio 2005 Team Suite 180-Day Trial
I am trying to lower the En_vs_2005_vsts_180_Trial.img file but single it lowers 4kb to me or in its 1,7 defect Gb Somebody podria to say to me of where I can lower it so that quero to prove this version You can also order the Team Suite trial from here and avoid the trouble of downloading it: https://www.tryvs2005.com . -Ajay ...Show All
SQL Server Check if a windows/nt user account exists
I have some script which creates/grant priveleges to windows/nt users to DB but i frequently get the message below: Windows NT user or group '<user or group>' not found. Check the name again. I understand that this is because the said user/group is indeed not present in the environment I'm running the script (ie. testing and production environment). But is it possible to have some sort of checking whether the user/group exists in the environment so that I could determine whether or not to call some lines of code Not sure if this is possible so i had to ask. c",) SELECT * FROM sysusers will show the users from the current database. There are columns like isntname ...Show All
Windows Forms After installing a Windows Update, I get Type 'AxSHDocVw.AxWebBrowser' is not defined.
I have an older VB.Net 2003 project that used the mshtml DLL to add a web browser to a form for displaying HTML help files in my application. After installing a security update from Windows Update website, I now get a "Type 'AxSHDocVw.AxWebBrowser' is not defined." error when I try to compile this project. Has the WebBrowser COM component been taken away from us still using Visual Studio 2003 If so, what are we supposed to use instead OK... resolved this issue. Apparently the security update made the DLLs in my assembly references obsolete and removed them. I had to ensure that current SHDocVw.dll & AxSHDocVw.dll existed by running the import utility. Start "Visual Studio .N ...Show All
Visual Studio 2008 (Pre-release) WCF on Windows Mobile 5.0
I've seen a few posts on blogs from a few people indicating that people are actively working on this product. If anyone knows anything about the status, or how I can get into the beta to get my grubby little geek hands on a CTP, please let me know :) p.s. I am extremely interested in finding out if the compact framework version of WCF will support the NetPeerTcpBinding This is a better forum for that question: http://forums.microsoft.com/MSDN/ShowForum.aspx ForumID=33&SiteID=1 ...Show All
Smart Device Development DoubleBuffer in usercontrol
All, I have code that does this in the constructor: this.SetStyle( ControlStyles.DoubleBuffer, true ); this.SetStyle( ControlStyles.UserPaint, true ); this.SetStyle( ControlStyles.AllPaintingInWmPaint, true ); However, when I compile I get this: Error 1 'BT.MyClass does not contain a definition for 'SetStyle' C:\myclass.cs 35 18 MyClass Thanks The managed double buffering is described here: http://msdn.microsoft.com/library/ url=/library/en-us/dnnetcomp/html/ImageButton.asp frame=true ...Show All
Visual C++ Sending structures as packets using Send function in Socket programming
Hi, I have created a socket using: SOCKET sock; and would like to send a structure over to the reciever using the send command,but when i type the send command,I get an option of: int socket(SOCKET s,const char* buf,int len,int flags) but I would like to send a structure with a set of items.How do I implement this Thanks I assume you meant send(). Just cast the structure instance to const char*. For example: struct MyStruct { int a; long b; }; void test(SOCKET sock) { MyStruct inst; send(sock, (const char*)&inst, sizeof(inst), 0); } ...Show All
SQL Server Remotely Register SQL Server 2005 Express in Enterprise Manager
I have SQL Server 2005 Express installed on a windows server 2003 standard edition. I have configured the windows firewall to allow exceptions for sqlservr.exe and sqlbrowser.exe. I have enabled remote and local connections using tcp/ip & Named Pipes through the Sql Server Surface Area Connection utility. I am able to telnet into the server with: telnet <server ip> <1433>. Here is the strange part: I am able to connect to the Sql Server remotely from a development machine via Sql Server Management Studio Express, but I am unable to connect to the Sql Server from the same development machine by registering it in Sql Server Enterprise Manager...Is it possible to register SQL Express through Enterprise Manager ...Show All
Visual Studio Team System Adding new project alerts?
Hello, I'm a s/w program manager. I would like to have TFS send mail alerts to team members when I create a new task for them. I would also like to have TFS send a mail to me when they mark a task complete. None of the out of box alerts seem to fit this bill. Is this possible to set up, if so how Many thanks, Jon That's excellent! I'll try it out. In the project alerts dialog, can I just enter a group, such as developers@mycorp.com so everyone in that group will receive changed items Or do individual developers need to enter their own email addys individually Best Regards, Jon ...Show All
Windows Forms Webbrowser Control and cookies
I want to be able to store seperate cookies in each web browser instance... Yet I can't find out how they are stored, I can change them on the per-document level... but that wouldn't be a good idea would it It would change global cookies too right Basically I want to create some kinda cookie container (not the one used for httpwebrequest...) and assign each browser it's own container... I've also heard about extended web browser controls and web browser controls based off the firefox engine, wheres info on these, I can't find them. You can't do this either for example if you had created your own request and response objects then you enter form data in the webbrowser control those cookies do not persist into the browser ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Programs used to make .bmp files and such?
I was wondering what programs people use to make the .bmp files and other image files for their heightmaps and stuff. Please dont say Adobe Photoshop as one, I have GIMP where that comes in. but any other program names will be very helpful, thanks OK, you are forgiven :-) Not sure what search terms would find the threads, but unfortunatly a lot of people do not search for stuff in advance so we always warn when there are repeats. My apologies. ...Show All
