Drake1500's Q&A profile
Visual C# Getting Image Source URL
Hey everybody, I'm trying to drag-and-drop an image from a web page to my application. What I wanna do is to get the image source url.. When I drag an image to my app. I got the image itself or the target link (if the image is a link HREF).. How can I get the source url of the image.. For example, in the upper-left side of this forums there is a "msdnR" image.. When I drag and drop it to my app, I got as a result the image itself and the target of the image ( http://msdn.microsoft.com ).. What I want from my app to do, is to give me the location of the image itself, in this example, I wanna get http://forums.microsoft.com/library/toolbar/3.0/images/banners/msdn_masthead_ltr.gif as a result.. Can you help me ...Show All
SQL Server Aggregate Function task issue
We have a Data Flow Task. Inside this, we have a OLE DB Data Source which calls and executes a stored procedure. We use a Row Count Task to count the number of rows returned by the OLE DB Data Dource Task. Then, we use an aggregate function task to get the sum of all the rows of one particular column that is returned from the OLE DB Data Source. The issue here is that we want to assign the sum value returned by the Aggregate Function Task to a User Variable named User::Variable. We have tried to assign this by using @User::Variable and User::Variable, but neither of those return the expected value. If there is any other method to do the same then let us know. We have checked the that the row count is greater than zero. Any help would be ve ...Show All
Windows Networking Development Time-Out on Overlapped I/O
Hello, I am writing a server using completion routine call back on a non blocking ReadFileEx. Can the programmer of the server side rely on the fact that the completion routine will NEVER be called until the client side executes a WriteFileEx If it is not the case, I guess that the completion routine will be called either if the client side or the server side executes a ShutDown ou a CloseSocket, or if the Windows system has a kind of time-out on the call back. This latter case is my real question. Does-it exists such a timeout and is there a way to set it to infinity. Thank you, Eric Yes, all overlapped operations have an infinite timeout until a condition of their completion is satisfied. For your Read ...Show All
Visual Basic .net framework not referenced (even though it is)?
I am having an unusual error. I have added reference to .net framework and imported system system.object system.windows.forms etc... But my problem is that suddenly my project cannot be compiled anymore. It says errors like: Class frmNewTaskWizard Inherits System.Windows.Forms.Form sais: Type 'System.Windows.Forms.Form' is not defined. Other errors: Type 'System.Windows.Forms.Label' is not defined. Type 'System.Drawing.Point' is not defined. etc... Even system.object is not defined My error list is full - what is the issue here Any ideas Thank you for your suggestion - Forgot to mention that I tried that already. I re-referenced my references, but that didn't change anything. I tried to delete obj a ...Show All
Visual Basic Setting authentication for mulitple pages
How do one set authentication for mulitple pages for an administrator using Login Function in Vb.net using vb language Is this a Forms project or a web developer project If it's forms, then you can simply maintain a login/authentication variable nd check it with each form (or a variation of such). If it's a web project, please refer to the http://forums.asp.net for answers for such questions. You also don't need to multipost the same question across similar forums. ...Show All
Visual Studio 2008 (Pre-release) Filtering in a master detail situation
I have a listbox which is used to filter a listview. I would like to add two items manually after the listbox is databound. One to show ALL items (the attatched listview is not filtered at all), and one to show all items that are not in any of the items listed in the listview. How could i do that using the supported databinding features thanks for the insight. However, it looks like that will take care of adding them, but not take care of filtering the attatched listview. The listbox is being populated by an ado.net datatable ...Show All
Visual Basic sort datagridview
I notice automiatc sort of datagridview only allow sorting one column. I I have a table with columns viewname, code, sequence and values and want to sort by viewname, code and sequence, how do I go about it Do I have to create a virtual column and sort on that Oh, I want the datagridview automatically keeps database source updated. Apparently when I naively add an order by query to the datagridview, changes are longer propagated to the database source. ouch! thank you. I tried to add a query with order by. now changes to datagridview does not propagate back to the origianl sql dataset file. I then had to add somehting like these to allow the datagridview to update the database file Dim ...Show All
Visual Basic Visual Basic Visual Studio 2005 Debug.Write doesn't work
I recently purchased Visual Studio 2005, and am trying to learn Visual Basic .net via an on-line class. Most of the less on s are very simple short programs to write messages to the Debug Output Window. For example: Public Class Form1 Private Sub Form1_MouseMove( ByVal sender As Object , ByVal e _ As System.Windows.Forms.MouseEventArgs) Debug.WriteLine(e.X & "," & e.Y & " " ) End Sub End Class However, when I run it in Debug/Start Debugging, I see nothing at all appear in the Debug Output window. I asked the instructor about it, and he has no clue, but says the code works in VB 6. Does anyone know what might cause that David ...Show All
Visual C++ Explicit Interface Method Implementation
In MC++, I can do the following: - __gc __interface ICloneablePerson { Person* Clone(); }; public __abstract __gc class Person : public ICloneablePerson { private: String* _name; protected: Person() :_name(String::Empty) { } Person(String* name) :_name(name) { } Person(Person* source) :_name(source->_name) { } public: __property String* get_Name() { return _name; } }; public __gc class Student: public Person { private: String* _id; public: Student(void) :Person() { _id = String::Empty; } Student(String* name) :Person(name) { _id = String::Empty; } ...Show All
Visual Basic get text by line ?
hey , im trying to upgrade my programs so that i can have one file save files i know how to get them all in one (one line per value) but i dont know how to get all the text of a specific line, like : get text textbox1 line 5 if anyone could help me pleaz (i have visual basics - visual studio 2005) MsgBox(TextBox1.Text.Split(vbCrLf)(4)) Use split function to convert a string to an array , the split of string is done according to a delimiter which is the Carriage Line Feed CrLF. Starting index of the split function is 0 , so we use index #4 to get line 5. Hope this can help! Best Regards, Amr Ouf ...Show All
Visual Studio 2008 (Pre-release) How to create AppBar without SHAppBarMessage?
Hi all, I am currently developing a "Windows Application" project. I need to create an Application Desktop ToolBar (AppBar) with WPF (using C#) without using the System API (to be more precise, without importing SHAppBarMessage API). Is It possible And, if so, how Thanks in advance, Null May be, it can help: http://www.sellsbrothers.com/tools/genghis/ In this library there is a component to create AppBar in managed code. My best regards, OldDino ...Show All
Visual Studio Team System Build Error on crircular call
A lot of my procedures are calling the same databse thy are in such as DB Catalog_RDAT SP: SELECT SiteId, AttrId FROM [Catalog_RDAT].[dbo].Attribute On build I get this error: Error 21 TSD4001: Invalid object name 'Catalog_RDAT.dbo.AttributeContent'. (SQL error = 208) D:\International\Basket_INT\Main\Database\Catalog_INT\Catalog_INT\Schema Objects\Views\vw_pubAttributeContentProd.view.sql 4 1 Catalog_RDAT This issue has been reported ever since CTP5, when is it going to be fixed Not really. As I stated before to get away from the circular error I had to create the project database + refrencing databases and objects using a separate script, and then re-create the project, by dr ...Show All
Visual Studio Tools for Office How to add dynamic controls to Excel Add-in
Hello, I have an Excel Addin and i need to create dynamic controls on the worksheet. Can someone tell me if this is possible and/or give me a sample Dynamic controls I need to create are dropdowns, date control etc. The issue i am facing is I don't have a "Tools.Excel.Workbook/Worksheet" instance in Excel Addin app. Is this by-design or an i missing something Is there a work around This tool needs to work on Excel 2007, so Workbook solution is not an option. thanks, Shyam PS: I am using VSTO 2005 SE, with C#. Shyam, Cindy is right when it comes to Windows.Forms.Controls but we have two other options to use. The following VB.NET code shows these two options: Friend Sub Add_Cont ...Show All
Software Development for Windows Vista Problem with workflow
i create workflow for vacation, the exception The identifier "instanceId" cannot be set to Guid.Empty code: Dim vacation As New VACATION_SERVICES.VacationReport vacation.EmployeeId = "1" vacation.VacationReportID = System.Guid.NewGuid ' ' ' ' Dim wfinstanceid As Guid = vacation.VacationReportID vocser.RaiseVacationReportSubmittedEvent(wfinstanceid, vacation) the message error accour here. _ wfruntime.CreateWorkflow(Me._ActivatingWorkflow, New Dictionary(Of String, Object), Nothing) The error is slightly misleading. There are three System.Type overloads for CreateWorkflow: CreateWorkflow(System.Type) As System.Workflow.Runtime.WorkflowIn ...Show All
Windows Live Developer Forums Right-Click Select and Zoom
Has anyone managed to get this functionality to work. I want to have the ability to Right-Click and Hold anywhere on the map select an area and them zoom into it. I know there is the alt+click and the middle-click but a lot of your average users don't think of these methods. Most will try to use the method I'm trying to work out. I got a good part of it worked out, but I need to figure out how to override the click event on the VEMap Object, or how to get from the View returned the event I'm working with. So I can test for right-click on the onMouseDown event. Any ideas I had tried that. The problem is that the onContextMenu function is fired after the map pans. So you can't get a starting point only an en ...Show All
