blackspider's Q&A profile
Windows Forms See a row that is selected if it's below the the visible rows
I'm having a problem when the number of rows in my datagrid is more then the number of rows that are visible. When I load the form, i want it to automatically move down to the last row. I can move the arrow and i can highlight the row, but i can't move the down to bottom, i have to scroll down to see it. how&n ...Show All
Visual C# calling functions one after another and get result into Main again
Dear all, I have this C# code. public class SimpleUdpClient{ ... void recieve_msg(){... msg[] contains data... } void capture_off(){... recieve_msg();... } public unsafe static void Main(string[] args){... simpleclient.capture_off(); fixed (byte* pSrc = msg, pDst = buffer) {...I want to use the data in msg[] to save to buffer[] here and do other operations... } } } But how do I get the data after Main calls capture_off(), then capture_off calls recieve_msg() and get the msg[] from there to continue working in Main. Hope you guys are not confused by me. Really appreciate your help! Thanks a million. Regards, Siew eng ...Show All
Visual Basic Encrypt in VB6, decrypt in VB.NET? (and vice versa)
I use DES Encrypt and Decrypt routines in VB.Net2003, using System.Security.Cryptography - something like: Public Shared Function DESEncrypt( ByVal strKey As String , ByVal strData As String ) As String Dim strValue As String = "" If strKey <> "" Then ' convert key to 16 characters for simplicity Select Case Len(strKey) &n ...Show All
Windows Forms Master/Detail Multiple rows?
Is there any way when making a master/details Windows form that you can make it so that you're able to select multiple rows in the parent and have the child form display the results for each of the rows selected I'm having trouble getting this to work. I have a simple master details form working fine, but I need this additional functionality. Anyone have any idea how I can achieve this Thanks, Chris ...Show All
Visual Studio 2008 (Pre-release) No System.ServiceModel after Feb CTP install
Hi, If anybody experienced the problem: after installation of February WinFX CTP library System.ServiceModel disappeared from VS project reference list. November CTP worked Ok. Any help would be very appreciated. Dmitry Okonov I solved this problem by editing my machine.config file. It was still pointing to the "2.0.0.0" reference of system.servicemodel. I edited all the "2.0.0.0" references to system.servicemodel to point to "3.0.0.0" and it started working. Thanks, Chuck ...Show All
.NET Development Updating database
i have a problem to update my database. in my update button i have the following code: dataset.AcceptChanges() Adapter.Update(dataset.table) i've tried other things like: adapter.update(dataset) swopped the two lines around... it saves the data on the current form, but when i close the form and reopen it, the data never changed in my database. i think the changes get saved in my dataset, but not in my database... but aren't sure... Thanx Kurt, The DataSet that you copied from probably needed an .EndEdit() somewhere. I'm sure the Copy itself does nothing to the row state of the rows it is copying. I've ...Show All
Visual Studio Team System Exception has been thrown by the target of an invocation
Hi, (VS 2005, Beta 2) I get the error "Exception has been thrown by the target of an invocation" when I try to open any of the test windows using "Test|Windows|Test View" or any similar approach. I created a new solution a while ago and added some unit tests. Everything was working great, until now... Anybody have any suggestions Thanks, Tor Langlo ok, well. it seems that all i needed to do is leave it along for 30minutes and it worked. No joke. I think my computer is evoluting. =D Maybe it will make my code for me!! =) ...Show All
Visual Studio 2008 (Pre-release) No Designer View in VS
I have just recently tried to load up Cider in the VS 2005 RTM, but for I do not see the Designer Tab anywhere. I do see the DataGrid view when looking at the xaml. I have the latest January Orcas CTP release and see the new templates installed when I create a new WinFX project. The WinFX Runtime Components - January (CTP) are installed and the WindowsR (SDK) January 2006 WinFX Runtime Components (CTP) are installed as well. I am running the new Sparkle release and it seems that everything is installed ok, since I can use that program. What am I missing here Thanks for the help. Try launching ...Show All
Visual Studio Team System use Team Build on a website
How to use Team Build with a website with Project references within the same solution The project referenced assemblies are not copied over to the bin directory and is resulting in unable to find namespace or assembly error See post http://forums.microsoft.com/msdn/ShowPost.aspx PostID=10588 the issue seem to be in MSBuild Task not with Team Build, thanks ... ...Show All
Visual Basic VB 2005 Window Stay On Top?
I was trying to get my form (the main form Form1) to stay on top all other windows windows(such like the Windows Task Manager) but with no luck. I tried Google and came up with several approaches: One used the SetWindowPos API call but that generated some insanley cryptic message that the call '...unbalanced the stack...'. I also tried setting the form's TopMost property to true, but that only made the main form stay on top the other forms, in the the same project, not all other windows at runtime. So far I have nothing so if anyone had this problem before please say what I'm doing wrong (or not doing at all). Thanks in advanc ...Show All
Visual Basic Quick Question
I am new to VB.NET and am using VB.NET 2003. I keep seeing the term: <Serializable()> Can anyone tell me what it is and /or what it does. A URL to a site with an expalnation even would help. Thanks all. http://www.vbdotnetheaven.com/Code/May2004/object_serialization.asp http://www.ondotnet.com/pub/a/dotnet/2004/01/26/serializationpt1.html ...Show All
Visual Basic How to save data from a form to a xml file?
i'm trying to find a way to store data entered in a form into a xml file i have found some codes~ it worked~ but when i want to store another set of data~ it replaces the one i enter before~ it's like it's creating a new xml file each time i store data in the xml file the code i used is this Dim xmlTW As New XmlTextWriter("..\CYFmembers.xml", Nothing) With xmlTW .Formatting = Formatting.Indented .Indentation = 2 .WriteStartDocument() .WriteStartElement("CYFMembers") .WriteStartElement("Members") .WriteElementString("FirstName", txt_fname.Text) .WriteElementString(&q ...Show All
Windows Forms Receiving Cretaures
I'm new, and I have a question: I can send creatures fine into the ecosystem via the web but I don't receive any. Does anybody know what I'm doing wrong It may be that users can't connect back to your Terrarium on port 50000. This often happens if you have a firewall or NAT device enabled. You should read the FAQ on&n ...Show All
Software Development for Windows Vista 5270: Internet Connection Sharing Problems?
Hi. I'm having problems with internet connection sharing. As far as I can tell it is all setup correctly. I have disabled IPv6. Vista is the computer sharing a broadband connection to the network. What happens is most strange. If I visit for example: http://www.google.com then I can visit anypage from google.com on the networked computers. But I can't visit for example http://news.google.com Does anyone have any solutions or suggestions to try Thanks. you should get traces of this using netmon or another network capture utiliyt. It sounds like a DNS problem....but that should point you in right direction. ...Show All
Visual C# overheads involved with events
I've tried to search for answers to this question but there are just too many results being returned on google etc that are totally unrelated. I want to know what overheads are involved when an event is fired, I'm currently working on a dynamic TreeGridView (thanks to Mark Rideout for the code on his site, it's helped me get started with this). Each row is related to a service in a service structure in a database, number of services ranges from hundreds to a few tens of thousands depending upon the company running out service management programs. whenever a change happens to a service an event is fired from a server client with details about ...Show All
