hazz's Q&A profile
Visual Basic Drag and Drop Picturebox/Textbox
I'm hoping that someone can shed some light as to way I can't drag text to a picture box and have that text populate a textbox. Thanks. Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load pbxPhone.AllowDrop = True End Sub Private Sub pbxPhone_DragDrop(ByVal sender As Object, ByVal e As System.Windows.Forms.DragEventArgs) Debug.Print("in dragdrop") ' Copy the text to the second TextBox. tbxNumber.Text = e.Data.GetData(DataFormats.StringFormat).ToString End Sub Private Sub pbxPhone_DragOver(ByVal sender As Object, ByVal e As System.Windows.Forms.DragEventArgs) Handles pbxPhone.DragOver Debug.Print("in dragover&q ...Show All
SQL Server how to compare two word documents using full text search?
can we use full text search and mining algorithms to comapre two word or text documents to find out if they are similar please help. thaks for reading None of the above links help answer the question It would be nice if there was a way to compare two documents using full text indexing or be able to perform a serch which returns other documents that are similar to a document you specify, however I don't believe this is native functionality ...Show All
Visual Studio Team System Build doesnt compile/ publish web service in solution?
Hi I have a web service project in my solution. I dont see any publish or compile when I use the wizard to create a build type, and then run it. Every other solution like the class library or test project do compile and I get no errors. Is this something I have to configure manually Thanks ~R You shouldn't have to configure this manually. What are the values you are using for ConfigurationToBuild (look in your TfsBuild.proj file) Typically the PlatformToBuild value for a web service will need to be .NET, while for other types of projects (e.g. C#) it might be Any CPU or something else. If you have a solution with both a web service project and a C# project, you will typically have a platform called Mixed Platforms ...Show All
SQL Server index question???
I do have a dump table "table1" Table1: UniqueId varchar(4) scandate datetime courseno varchar(5). This table is not related to any other tables in the database. This is used to track the student attendance for a particular course. There can 60000 distinct uniqueid's in the table and 300 disticnt courses. I query this table most of the time on uniqueid and coursecrn combination. This table can grow up to 5 million records. can anybody tell on what fields do I have to create indexes and also of what type(clustered or non-clustered). This table doesnt have a primary key. Thanks Dave...Thanks a lot for your effort. what is the meaning of logical read . "the ind ...Show All
Visual Studio how to properly check in solution to VSS 2005!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
This is driving me nuts. I'm tyring to upload my solution folder (which contains everything from the .sln, the project folders, the root files such as web.config...everything!) for the first time in our VSS 2005 database that contains other projects...it's a 3rd party forum app. The solution contains multople projects. I am not sure the proper way to upload to VSS because every time I test VSS by redownloading it into a test folder or something, I open the .sln only to find it cannot find the projects. When I go back to VSS, sure enough, myupload did not upload the damn projects or files. what the hell am I doing wrong. Should I just manually drag the entire folder form my C drive which contains mul ...Show All
Visual Studio Crystal report help
original report format is General David conform General Edward Not-conform Gereral Lisa Conform Conform : 2 Not-Conform : 1 i changed the report like below but background color is not applied properly General David conform Edward Not-conform Lisa Conform Conform : 2 Not-Conform : 1 i want to change the backcolor of the General if conform =not-conform yellow else if conform >not-conform green else if conform < not-conform red plz help me on this By what you sent, you have the formula in the "general" field, but it looks like the formula is only going to be calculated on ...Show All
Visual C# how do i make a code in a button
hello i am new to this language and have a problem where to start.... ok i make a form, i make a textbox, a button, and a label, i wanted to put a code in a button to enabled the textbox to put a value on it, but want to change the text at the button into save and focus the cursor in the textbox, but when i compile i got and error..here's my code below private void button1_click(object sender, EventArgs e) { if this.text='&Add' this.text='&Save' textbox1.ENABLED= false ; textbox1.SETFOCUS : else this.text='&Add' textbox1.ENABLED= false ; } thank you very much for any help... I am new to this language and starting from scratch, Hi, in C# text is quoted with double quotes ", a sin ...Show All
Visual C# private fields, public properties...why??
Why is it preferred to have private fields and use public properties to access and/or set the variable values Some of the books i have read do explain why...but only vaguely. Does anyboday know the real 'life threatening' type reason why we should do things this way Thanks add verastility to the list of reasons why. you could add a property to a class that takes a single type as parameter and the value off that parameter could effect several member fields. eg. foo.Position = "200,200" ; Position is a property of foos type that takes a formatted string, verifys the value and stores the result in the private field x and y. Oh and it fires an event to any listners that t ...Show All
Commerce Server Multi-Lingual Catalog not switching languages
Hello list, I have a catalog with 2 languages. And a method to switch the Default language of the site between the two. So every aspect of the site works, the display of all the text, and even the display of teh catalogs. It switches with no problems so you can see the catalog items in either language. BUT, when you add an item to the basket, it is only ever adding it in one language. Regardless of the language selected. Is it a setting the the Commerce Server that is somehow setting the Default language within the catalog To get the correct language on your basket, you need to set the weakly typed property "catalog_language" either at the ContextDictionary level or the orderform level or the ...Show All
Visual Basic !! HELP !! Extracting frames in a video and comparing them THANKS ALOT!
Hi, I need help in my project here. my project mate did this in C++, which no one else in the grp knows and so i need some help if anyone knows how to convert it to VB, if possible. The program is supposed to pick up a unattended object (like a bomb) and send an alarm (to like SMS or a PC). so it works like that. (what i understand he said, & seeing the C++ code). capture a background start capturing video average frames (eg. 10), so small movement is not picked up (think so) if pixels are the same for too long ( xx frames) - something isn't moving then send alarm he used C++ and open CV http://www.intel.com/technology/computing/opencv/ , http://www.cs.iit.edu/~agam/cs512/lect-notes/opencv-intro/index.html the things needed are a di ...Show All
Visual Studio 2008 (Pre-release) How to assign Multiple endpoints
Hi, Problem statement: I have 2 services hosted on 2 diffrent machine. Thier is a Web Client on One machine which will access either of the 2 services. Now I have to assign the endpoint (ip address of particular machine). How can i assign this dynamically depending on a contratint. if possible please provide some code samples for both service and client Thanks in advance. Well when you use client proxies they inherit from System.ServiceModel. ClientBase < > so i imagine you could just create a clientbase<YourServiceContract> reference and instantiate it conditiona ...Show All
.NET Development ProcessStartInfo to execute vb script with certain user
I tried to use ProcessStartInfo to execute a vb script with certain user name. My Code: --------- ProcessStartInfo psi = new ProcessStartInfo(); psi.FileName = fileName; psi.UserName = userName; psi.Password = password; psi.Domain = domain; psi.UseShellExecute = true; Process.Start(psi); The Problem: ---------------- When I set UseShellExecute to true --> the error is "The Process object must have the UseShellExecute property set to false in order to start a process as a user." When I set UseShellExecute to false --> the error is "The specified executable is not a valid Win32 application." Any Help please Bishoy I would make sure that the user you are try ...Show All
Visual Studio 2008 (Pre-release) WPF XAML xmlns: assembly not found problem.
i've created a xbap wpf project and i have problem with "Error 2 Assembly '' was not found. The 'clr-namespace' URI refers to an assembly that is not referenced by the project. " at the line which highlighted with red color. CustomControlLibrary2 in particular is a custom control made by using adding wpf control library template project. <Page x:Class="CarouselSample.Page1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/interactivedesigner/2006" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d&qu ...Show All
Visual Basic get { return (int)this["Attribute1"]; }
Is the following the equivalent vb.net Get Return CType ( Me ( "Attribute1" ), Integer ) End Get Thank you, -greg Yes, looks about right, if you're looking for the 'exact' translation. However, casting might not be necessary if default property already returns Integer. Andrej ...Show All
.NET Development How to emit delegate call (System.Reflection.Emit)?
I have to emit delegate call into dynamic method. What is the right way to do it This will create delegate, but how to call it Should I call it's "Invoke()" method like MethodInfo delegateMethod = (TypeOfdelegate).GetMethod("Invoke"); ... generator.EmitCall(OpCodes .Callvirt, delegateMethod, null ); ...Show All
