dreameR.78's Q&A profile
Visual Studio 2008 (Pre-release) DragEnter/DragLeave
Can anyone post a working example of DragEnter/DragLeave, please I've seen Marcelo's blog, but all what that example does is it provides with some visual feedback during the DnD operation, which is cool enough. But what I'm trying to achieve is to make certain components responsible for DragEnter/DragLeave. I'd appreciate any information on that matter. Thanks. DmitryMS, let me see if I can help you out. In your first example, you're just using the bare drag-and-drop capabilities, and thus you don't get any interesting UI. So far, I follow you. For the second step, I got a bit lost. It appears that you are trying to offset the A rectangle by adjusting the thickness - is this correct And ...Show All
Windows Live Developer Forums GeoRSS or XML for adding many points
I currently use an array to populate about 120 push pins (and growing) on the map, and it appears slow, see http://www.fulhamusa.com/fusamap/membermap.html I tried to use the AddLayer as described in the interactive SDK, but it doesn't appear to GET the data no matter what. If someone could post a simple example with an example of the xml or georss file too that would help greatly. Thanks Ok it took longer then i thought but i got my article written and via virtual earth put it up very quickly, check out: http://viavirtualearth.com/VVE/Articles/Clustering.ashx (clustering virtual earth) Thanks John Soulsolutions - Dotnetnuke and Virtual Earth ...Show All
SQL Server modifying data from extract before import
Hi all, Having some fun with an excel import. I have a excel sheet that has data that needs to be UpSert'ed into 2 different tables. In addition, I need to use a value in the spreadsheet to determine the PK from a reference data table, for one of the UpSert oprations. That is all working now. The thing I'm struggling with is something I am sure is quite simple - but I'm not seeing a solution from attempts, googling or BOL. 2 of the columns I receive have either nothing, or X in them. The columns they go into are defined as BIT, NOT NULL. So, in SQL it would be something relatively simple like: CASE When IsAvailable = 'X' then 1 When IsAvailable is null then 1 ELSE 0 end But I don't kno ...Show All
.NET Development using the output from a DataReader to insert in another DB
Here's my situation. I have two tables with the same structure but residing in different databases (and different machines). I need to read a set of records from one table/database and insert the records (as is) into the other table/database. I don't want to loop through each record and column. Is there a way to do this in "one shot" What I have is a DataTable that I created by overriding the DbDataAdapter class to allow for a FillFromReader eg: public int FillFromReader(DataTable dataTable, IDataReader dataReader) { return this .Fill(dataTable, dataReader); } Any ideas Thanks, gagis. Unfortunately, linking a server is not an option in this environment (in ...Show All
SQL Server Change "Report is being generated"
Hello, I develop some application using SQL Server Reporting Services 2005 to Russian customers. They usually don't know English well. That's why I really want to change phrase "Report is being generated" to Russian words. How can I do it I tried to fing this phrase in configuration files or registry but there wasn't success. Thank you, I solved, it was my fault.When I looked assamblies I have created two version, I was giving wrong version of assambly.I deleted that then I give the valid one to referance web.config It is worked.Thanks. ...Show All
SQL Server How do you make use of ErrorCode and ErrorColumn
SSIS automatically adds the columns ErrorCode and ErrorColumn to the error pipe routing bad rows. However, both these columns appear to be meaningless. We need to translate the error column to the actual problem column and the error code to a meaningful error. ErrorColumn is the more important issue for us. The question is 'Are these just useless columns If not, how do we translate them into something useful ' Thanks Jamie has an execellent blog entry on that: http://blogs.conchango.com/jamiethomson/archive/2005/08/08/1969.aspx ...Show All
.NET Development Async HTTP POST/GET in VB .Net 2005 !!
Hi, I am a VB6 developer and I am learning VB 2005, I wanted to know how can I make HTTP POST AND GET requests in asynchronous mode , I wanted to use it to download file from HTTP servers Simultaneously (probably using multi-threading). Thanks. This is what I came up with.. I was also having the same problem, for my problem I had made this works for me. (I am learning VB 2005, so dont expect too much) Public Sub PostData(ByVal strURL As String, Optional ByVal POST1 As String = "", Optional ByVal POST2 As String = "") Try ' Declare a variable named client of type WebClient. Dim myWebClient As WebClient ' Instantiate a WebClient object and assign it to the 'client' ...Show All
Windows Forms Opening / Closing Forms
Hey guys, Really simply, how do you open forms when you click a button! ! (i.e. in VB its docmd.open 'Form'). I just want to click a button and it pop up another form i have designed. Thanks in advance Tom Matthew Watson wrote: form.ShowDialog(this); (The parameter to ShowDialog() is made the parent of the form which is displayed. Since you will be calling this code from a button handler in the parent form, "this" is the correct thing to pass in.) form2.ShowDialog( this ); is exactly the same as: form2.ShowDialog(); (The default owner (not parent) is the current active window, which is 'this'). Interestingly, even if you pass the ...Show All
Visual Studio Express Editions Reinstall help files?
I recently installed two additions to VSC#2005EE: 1) The Service Pack 1 2) The .NET 3.0 (aka WPF), which created some new templates I'm not certain which one was responsible, but one of these two deleted most of my help files by way of 'merging' them. Since I'm offline more than I'm on, and I loved my original local store of help files, is there any way to get them back short of complete removal & reinstall (No, I don't want to change to online help. I need to be able to access it wherever I have the laptop at that given time/day. I've tried specifying 'local help first', but most of the index and content is just gone.) Okay, how would I go about that As far as I know, I never directly installed the ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How to display surface onto interface
Hi I'm have some experience in writing programs in vb, and now i wish to try using DirectX for graphics. I thought the easier place to start is at directDraw. I have already created and drew on a DirectDraw.Surface, may anyone please tell me how to display that surface onto the interface Some folks do Find DirectDraw the place to start but these days its considered old technology and there are few reasons to use it other than you want to support very old hardware. Unless you have a very good reason you should start with Direct3D (which can do 2D just fine). There are many more tutorials for Direct3D. However not many in VB. Check out http://www.thezbuffer.com/categories/tutorials.aspx for a f ...Show All
Visual C# Username and passwords using C#
Hey I wrote a Password manager IE plugin using C#. Now its fillinf up usernames fine everywhere. It also fills passwords well for many web pages but for some pages the passwords do not get filled at all. I am using HTMLDocumentClass.all.item("Email",0) etc. to fill usernames and passwords. Here is the code: string selectedItem = comboBoxChooseService.SelectedItem.ToString(); string password = AuthenticatePassword.getPassWord(selectedItem); string username = AuthenticatePassword.getUserName(selectedItem); HTMLDocumentClass doc = new HTMLDocumentClass(); doc = (HTMLDocumentClass)this.Explorer.Document; Object input = doc.all.item("email", 0); if (input == null) ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Change the color of a mesh?
I'm currently using a simple mesh created in 3ds. I changed the color and exported several times until I had a rainbow of colored objects. This seems silly to me, but it got me moving along at the time. I would like to progress beyond this and be able to be able to change the color in code. I realize the answer to this might involve textures and/or lighting, so if the answer is not straightforward, could you at least tell me where to begin Do I need to create multiple textures and swap between them Thanks! Greg I guess you'd use a vertex shader for this. Texture your mesh greyscale and make sure you're using vertex colours. Then in the vertex shaderset the vertex colour to whatever you want it to be. Thi ...Show All
Visual C# Checking User Group in Active Directory using VB.net
Hi i am new to .net and active directory. i need to validate user in Active directory. my input data is Domain name , Username and groupName and i won't pass password private function chechkUser(ByVal domain As String, ByVal username As String, ByVal GroupName As String) As Boolean if username is found in active directory chechkUser = true else chechkUser = false end function how to resolve this can any send VB.net code for this requirement thanx in advance -naren This Forum is for Visual C# General so your code is in VB.Net, Better post your question here in Visual Basic General and Visual Basic Language Forums at: http://forums.microsoft.com/MSDN/ShowForum.aspx ForumID=32&SiteID=1 http://foru ...Show All
Visual Studio Express Editions How do I declare an angle?
I'm a newy and I'm writing a programme that does mathematical calculations - and I'm working on the trigonometry part of things at present. My question: Do I have to declare/Dim an angle I've tried various methods of getting an angle to be recognised but with no luck. Following on from that - how do I enter an angle into a textbox Do I enter it as an ordinary number then convert it to an angle I have studied the math class and I can't see what to do. Any help and advice is much appreciated!!!! Regards, Steve I haven't posted since last year, so I hope everyone had a good Christmas and Happy New Year to you all!!!!! Thanks Dave299, I appreciate your help. I've been trying for 3 days to work it out without success and ...Show All
Visual Studio Express Editions Very simple Question
ok I have something like this: http://img294.imageshack.us/img294/7065/notepadlv8.jpg Now I want to be that in .exe. You know, like every normal program you click on it and it opens without any other stuff How can I do that Thank you for answers you simply build the project. CTRL + SHIFT + B or Build > Build Solution however in order to run it on other computers, it must have the appropriate .NET Framework version otherwise the application will not run. Either create a clickonce project which will install the appropriate files (.NET Framework) with the application I believe, or let the user install the .NET Framework version and then run the application usually the output will be in your project\bin\deb ...Show All
