DaveC426913's Q&A profile
Visual Studio Express Editions Get value from gridview column
How to get value (text) from gridview control in VB. textbox.text = (value in column2 of selected row in gridview) TextBox.Text = DataGridView1.Item(1, DataGridView1.SelectedRows(0).Index).Value BTW, I suggest to don't use "TextBox" as a name for a textbox, this make the programmer confuse... ...Show All
Visual C++ MemoryStream
This does not work: MyStream is a MemoryStream InsertString = String::Format ("insert into blobtest (blobtest) values ('{0}');", MyStream->GetBuffer()); MyStream->GetBuffer() just returns "System.Byte[]", not the actual data, which is what I want. You can see what I'm trying to accomplish here. Why isn't it working Before I answer this question, I'd like to know how you obtained MemoryStream (did you make it from a file Which file Did the user type it in ) What is the column type for blobtest ...Show All
Smart Device Development .Net CF Getfiles IOException
Hi, i've a problem with my VB.NET application and GetFiles() function. I try to run my application on Emulator. I've shared a folder in my Desktop simulating a Storage Card and i try to access files on it but GetFiles() function return IOException error... Any suggestion to solve this problem I use Visual Studio Team suite 2005 beta 2. thanks Andrea. Can you please send me your VB.NET code (either as a post on the forum or a private email to barrybo@microsoft.com ) I'll take a look. Thanks, Barry ...Show All
SQL Server CLR Enabled
Can anyone tell me what this means and how to fix it I created a stored procedure in VS2005 and did a build. When I went to SQL Server there was the stored procedure but when I run it I get the error.... Execution of user code in the .NET Framework is disabled. Enable "clr enabled" configuration option I changed the 'clr enabled' property to 1 using sp_configure but I still get this error. Thanks Mike Hi. You need to run RECONFIGURE. sp_configure 'something', value go RECONFIGURE go sp_configure 'something' go ...Show All
SQL Server Sudden expiration of evaluation version
I have had SQL2005 on a server for a very short period of time. Today I found that I am not able to execute an SSIS package in debug. It give me an error stating that the evaluation period has expired for data transformation services. I went to check the version by querying, but nothing happens when I click on the Server Management Studio link. Has anyone seen this before or how long the trial version should last Does anyone know what version may have been installed on my server Thanks, Believe it or Not,,,,,, according to our DBA, this was a security issue. MS had him perform a reinstall with repair option and all is ...Show All
Windows Forms webbrowser in vb2005
i have a runtime created webbrowser and i want to use it's ProgressChanged event and some others, too. how can i do this I used this code and it worked just fine... Private Sub WebBrowser1_NewWindow( ByVal sender As Object , ByVal e As System.ComponentModel.CancelEventArgs) Handles WebBrowser1.NewWindow Dim NewURL As String = CType (sender, WebBrowser).StatusText Dim TabPageTemp As New TabPage(NewURL) Dim WebBrowserTemp As New WebBrowser WebBrowserTemp.Dock = DockStyle.Fill AddHandler WebBrowserTemp.NewWindow, AddressOf Me .WebBrowser1_NewWindow TabPageTemp.Controls.Add(WebBrowserTemp) Me ...Show All
Visual Studio Express Editions Can't download Express registration benefits
Hi everyone. I'm trying to access the free downloads that come with registration, but I only see the Web Developer downloads listed. I don't see the icons, components, or book that come with C#. I assume they would all be listed on one page, but they aren't there. How can I find them Thanks, John Salerno P.S. I don't understand how to download what *is* there either. The link to the Web Developer book says it's a pdf, but when you download it, the file is an aspx file that won't do anything when opened in WD. When opened in an internet browser, it just tries to download itself again. Maybe the site will be updated and fixed tomorrow. ...Show All
Visual Studio Express Editions MDI Parent Form Events
Hi. How can i raise a mousemove event on a MDI Parent Form ! On a normal form (Not mdi container) it just works fine but on a MDI it dosen't work for me. Here it is a simple code that demonstrates that the mousemove event dosen't work. Public Class Form1 Private counter As Integer = 0 Private Sub Form1_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load Me .IsMdiContainer = True Me .WindowState = FormWindowState.Maximized ProgressBar1.Value = 100 Timer1.Interval = 1000 Timer1.Start() End Sub Private Sub Timer1_Tick( ByVal send ...Show All
Visual C# How to get USB Bluetooth Adapter information ?
Dear All, Using WMI, I managed to get information about device ID and manufacturer of my USB Bluetooth adapter. However, I CANNOT GET Blueooth Device Screen Name ! :( I tried with many diffrent WMI classes, but with no results). Since the Bluetooth device in XP is in the Device Manager, not Registry, I thought WMI will be useful. If I can get it from WMI, which class I have to use Is there any other soultions All responses are appriciated. -- regards Abdullah Ghaleb Double post, i will close this one. For any other discussion and replies visit this thread. ...Show All
SQL Server ActiveX Script Task - SSIS
Within a SQL 2000 DTS Package I have an ActiveX Script that would go within my transform tasks and update the queries by concatenating a "Where" clause with a date from a database table. This way I could keep track of when the last time I updated the table so that I could only bring down the rows since the last run. How can this be done within SSIS I've been looking and I'm getting confused. Any help would be greatly appreciated. The most analogous thing to an ActiveX Script in SSIS is the script component but that isn't what you want to use here. Instead, set the SQL statement that pulls da ...Show All
Windows Forms Adding a control to an user control, and allowing it to be visible outside of the parent control
I'm writing a derived control that is based on a RichTextBox. Within that derived control, I am adding a ListBox. I want the listbox to be able to display outside of the RichTextBox control though, but I'm not sure how to do that. Currently, I am dynamically creating the ListBox control, and adding it to the RichTextBox with the following code: ListBox myListBox = new ListBox(); this.Controls.Add(myListBox); How can I make that ListBox display outside of the RichTextBox if I need it to Thanks, Chris Thanks, that works perfectly! ...Show All
Windows Live Developer Forums WLM 8.0 Beta problems..
Hey guys i've been watching this forum for afew days now and my problem hasnt been brought up yet. I have been beta testing wlm 8 for nearly a week now and its just given me some problems as of last night. It seems to have lost some of its features... like music mix and the beta invitations tab on the help menu have disappeared :/ but on my network my friend uses it who lives with me and his is fine... Could this be due to us using the same ip or something Any help would be apprieciated Thanks guys. yeah i've had this happen to me too and i really wanted to invite friends. can anyone sort this out or ...Show All
Visual Studio Express Editions Visual C# Express Edition
I created a project in Visual C# Express Edition, I was so delighted with the Visual C# Express Edition that I have purchased the Visual Studio Professional 2005 Edition. I am awaiting delivery of the Visual Studio Professional 2005 Edition product, can I convert the project created using Visual C# Express Edition to a project in Visual Studio Professional 2005 Edition Yes, it works. In fact there is no conversion happening... the project file format is just the same between the two versions of VS. ...Show All
Visual C# How to get the Last Month from System.Date ??
Hello Everyone, I'm using the System.DateTime curr = DateTime.Now; this gives me todays date...As today is 22nd Feb, 2006.....From this date if we want to get last month how we get it.... I want something that can give me 1/1/2006 -- 1/31/2006 (mm/dd/yyyy) Secondly, how can I say get this month or this quarter.. Say this month -- 2/1/2006 -- 2/28/2006 (mm/dd/yyyy) This Quarter -- 1/1/2006 -- 3/31/2006 (mm/dd/yyyy) If you can give me some code snippet how to do it.... Thanks, Harsimrat Sorry, it's DateTime.DaysInMonth and it takes a year and a month and returns a digit. ...Show All
Visual Studio How to support Exception Assistant
I want to support an exception assistant to COBOL Exceptions. How can it support It seems that it has realized by putting an XML file on the ExceptionAssistantContent folder of an IDE folder about the standard exception for Visual Studio. Best Regards. Dear Lufeng If the exception object of COBOL is a similar form to $exception, we can support "View Detail" I want you to teach details what form a similar form is. Best Regards. Shinya Watanabe ...Show All
