Bo Tanaka's Q&A profile
Visual C# C# and VB.NET, which can be learned faster?
Could anybody help let me know which language I should begin with C# or VB.NET VB.NET would be since its more english like syntax. It really depends on your experience and knowledge but generally VB.NET since its more english like syntax compared to C#. Both have their advantages but its totally your call. ...Show All
Windows Forms auto scrolling in grid
I have a grid and a textbox, every time the user write somthing on the textbox the selected row in grid changed.If the selected row is not in sight I want the grid to scroll to this row.How can I do it Thank in advanced Alon ...Show All
Visual Basic strange behaviour
Hi guys, I am definitely a newbiew to .Net, and am having a problem that I cannot seem to get around. I have a single Windows form app that loads several (probably about 10) datatables into a dataset. The dataset is defined as a public. Eventually the data is summarized into a datatable that is displayed into a datagrid. At first I could not get the double-click to work, and eventually tried to add a context menu control to capture a right click. Once I got things wired up, when the menuitem click event fired, I wanted to create a dataview from one of the datatables in the dataset and filter accordingly. To my surprise, the dataset variable has a value of nothing while in the click event. I then figured out how to capture a double ...Show All
SQL Server Count the number of times a row satisfies CONTAINS
Is there a way to get the number of occurances of a word within a specific row I want to query a dataset and have a column act as the number of occurances of a word within that row. I also need to use Full-Text searching... Is this possible Sorry for the slow response (vacation): create table dbo.SMALL_ITERATOR ( iter smallint not null constraint PK_SMALL_ITERATOR primary key ) /* Populated with integers 1-32767 */ ...Show All
Visual Studio Express Editions Rename project
How do I rename a project I'm unsure about the Express editions however you would go to your solution explorer, then right click the project and go to rename. Perhaps go to View > Solution explorer to show the solution explorer. Then continue on as above. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Needs steps to purchase Creator's Club memebership.
I find the link for the Creator's Club here: http://msdn.microsoft.com/directx/XNA/creators/default.aspx I find nothing when I attempt to find an offering titled "Creator's Club" from here: http://www.xbox.com/en-US/live/ WT.svl=nav Or listed under the Subscription Plans: http://www.xbox.com/en-US/live/memberships/xbox360subscriptionplan.htm It should be easier than this. There isn't even a blatant "Creator's Club" menu item in the XNA Express "Community" menu. Any demonstrable links would be nice. -Thanks Eric Lindahl wrote: So, Creator's Club can only be accessed via the XBox console. -Thanks You can create Windows only games using X ...Show All
.NET Development Remote Debugging of ASP.Net 2003 application
I have been assigned to make a research on remote debugging using Visual Studio 2003. The scenario is that I have a web server over which an asp.net site is hosted, I have to perform the developments, debugging from another remote machine within same domain. Initially web server can contain the source code (.cs files etc) but does not have an IDE installed on server, the IDE is installed on the remote machine. Web server can have just .net framework installed in it. So how can I develop and debug the asp.net application on server from remote machine well I got a little success and now I can make th ...Show All
Visual C++ The specified module could not be found. (Exception from HRESULT: 0x8007007E)?
I've just experienced this runtime exception for the first time. I'm trying to instantiate a managed c++ dll object from a c# executable, and it raises this exception. Im running WinXP, and using Visual Studio I first read several groups, and came across an excellent article by Grimes on this topic. http://www.ddj.com/documents/q=1/ddj0604f/0604f.html . I also found a pretty useful blog at both http://www.ddj.com/documents/q=1/ddj0604f/0604f.html . I also found a pretty useful blog at both http://blogs.msdn.com/cheller/archive/2006/08/24/how-to-embed-a-manifest-in-an-assembly-let-me-count-the-ways.aspx and http://www.conceptualinertia.net/blog/blogs/conceptual_inertia_net/archive/2006/05/20/19.aspx Assuming that embedding my mani ...Show All
Internet Explorer Development Selectively Removing IE History
Hi all. Is there a way to effectively traverse the URL history and selectively delete entries (our pages) from it. We have a web based application that uses a client side ActiveX control, so we have full access to the Windows API. Any help or direction would be greatly appreciated. -BG I was able to put together a prototype that successfully calls the DeleteUrl method from IUrlHisotyrStg. After this is done I can confirm that the selected URL's are gone if I enumerate thru the history again. So far so good, but... If I pull up IE, the URLs are still listed in the history and they're also still in the Temporary Internet Files directory. So I'm really not sure what I've accomplished by doing ...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
Visual C++ Urgent !! Update the DataGridView contents on Form1 in a thread
Hi guys, I am using Visual C++ in Visual Studio 2005 (.NET 2.0). I have created a Form application. The Form is called Form1 and on it is a DataGridView with say 11 columns and 5 rows. Then when the user clicks a button on Form1, I will go off into a thread using BackgroundWorker to do some calculations and I want to update the content of the DataGridView on Form1 "from" the thread. But I get this System.InvalidOperationException: Corsss-thread operation not valid: Control 'dataGridView1' accessed from a thread other than the thread it was created on. What is the best and correct way to do this please help. Thank you very much Cheers Davo sorry I c ...Show All
SQL Server SQL Server 2005 memory architecture
Hi All, Recently, I am trying to learn the SqL Server 2005 memory architecture. Can anyone share some useful resources Especially the components in Bpool and the memtoleave (sql 2000 concepts) in SQL Server 2005. Thanks in advance. Start with Slava Oks's blog: http://blogs.msdn.com/slavao/archive/tags/SQL+Server+Memory+Management/default.aspx Regards, Ron D. ...Show All
.NET Development Converting from system.web.mail to system.net.mail
I have been trying to convert to system.net.mail with no luck so far. I am positive that I have my smtp server ip, port and authentication correct. Here is a code example of how I am trying to send my emails using system.net.mail... //create the mail message MailMessage mail = new MailMessage(); //set the addresses mail.From = new MailAddress(sendAddress); mail.To.Add(recieveAddress); //set the content mail.Subject = "This is an email"; mail.Body = "this is the body content of the email."; //send the message SmtpClient smtp = new SmtpClient(myIP); smtp.EnableSsl = true; smtp.Credentials = new NetworkCredential(username, password); try ...Show All
Visual C++ Presenting a C++ library (.lib) for use in C# project
I have a collection of C++ programs and the C++ libraries they use. The libraries currently compile to a .lib format. Changing the project property to use a .dll results in multiple reference errors. Without having to go through the entire collection of source files, is there a way to create any kind of project in a .NET language that would provide a "wrapper" for the existing .lib files so that they could be used in that environment. Thanks. Brian, Tactically, adding a question to an already answered thread (like this one) reduces the number of people likely to see your question. Some people use the 'unanswered' links to skim through new questions that haven't been marked as answered, those people won't even see your qu ...Show All
SQL Server Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection.
I am receiving the following message when connecting via query analzyer to SQL server using windows authentication.(error 18452). I have a login created with the sys admin server role on the server. When I connect using SQL authentication it works. I added myself to the local admin group on the server, this allows it to work. The same situation is seen with another user. I am using windows 2000 sp4 server and SQL 2000 SP3, connecting from NT4. I get the same issue if I use TCP or named pipes. We have been using SQL security but are moving to windows authentication - but this issue is stopping us. I have checked and upgraded my version of MDAC to match the server version 2.7 (sp1) Any help would be much appreciated. Thanks ...Show All
