shehz's Q&A profile
Visual Studio Express Editions image to a picture box without using the properties window.
Hi, I would like to place a p icture box on a form and using a text box select from any number of images to show in the p icture box. How can I assign an image to a p icture box without using the properties window. Ken I'm using the image code to configure a PLC where each slot ( nine slots total) of the PLC has an image and a combo box so I can select the appropriate module for that slot. With all those images in the resource it takes around 12 seconds for the form to load. Is there anyway to reduce the load time When I remove an image from the resource folder I get an error when trying to run the program. How do I remove images from the resource folder, can I remove the folder and ...Show All
Visual C# How to Wrap my normal API dll without any COM interface to C# COM+ object?
Hi all, I'm currently touching on the dll for C# asp.net, My customized DLL is a normal API without any COM interface. And i can't use regsrv32 to register my DLL. So how do i design a C# COM+ object to wrap my DLL Issit using either implicit or explicit method Thanks Best regards, =) hungryghost Hi, hungryghost If you want to call one of the many Win32 API functions that are not available directly from the .NET framework, you should be able to call them using PInvoke (Platform Invoke). (PInvoke is not supported with classes. To call an interface method in a COM dll use COM Interop .) There are excellent tutorials on the Microsoft Developers Network on using PInvoke, so I will n ...Show All
Audio and Video Development New HD DVD players
Toshiba recently announced new HD DVD players, the cheapest one is $499. But unfortunately True HD tv's are still very expensive. BTW anyone knows if they support persistent storage, or do all hd dvd players have this as default and how much http://www.hardwarezone.com/news/view.php id=5455&cid=5 To my mind, all HD DVD, now, have not a real special feature of HDi. I saw 2-3 years ago at Ceatec or CES of real "Advanced Content": - 3D games - Web link to webshop. - Menu refresh by the web (filmography of actor) I have 50 HD DVD and I don't see this on HD DVD. (I think this special feature will come). Our first HD DVDs will have the basic feature : teasers and basic filmography. And t ...Show All
Smart Device Development CabWiz Info
This is just a quick post to hopefully save someone some of the pain and agony that I have suffered over the last 2 days trying to get a CAB built for a new PocketPC app. If CabWiz reports an error similar to: Error: CAB file "D:\CabFile.CAB" could not be created one of the first things that you should check is that you do NOT have 8.3 file naming turned off. If registry entry HKLM\SYSTEM\CurrentControlSet\Control\FileSystem\NtfsDisable8dot3NameCreation is set to 1, then CabWiz will either not work or will only work intermittently (depending on whether you are working in a directory that has short names or not). If it is set to 1, change it to 0 and then reboot. You will also need to recreate all existing directories that do not ...Show All
Visual Studio Express Editions Getting this error when installing from CD
The app is click once exe with full trust. It works on my pc, but not any administered lan box with multi users. I had the admin install it and it comes up with this error, but still runs. It just doesn't run a file copy form that is part of it. ************** Exception Text ************** System.NullReferenceException: Object reference not set to an instance of an object. at System.Windows.Forms.Control.WaitForWaitHandle(WaitHandle waitHandle) at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous) at System.Windows.Forms.Control.Invoke(Delegate method, Object[] args) at System.Windows.Forms.Control.Invoke(Delegate method) at Microsoft.Visu ...Show All
SQL Server Why is TOP executed last?
Hi. I have a complex SELECT query with a few joins and some millions of rows to deal with. However, I only need one (and any) result, so I added a TOP 1 clause. When I look at the query plan with Query Analyser, I see the TOP action last. The impression I get is that the query is analysing the whole of the results before poping me the first. Is this right What I'd expect it to do is to stop as soon as it has a single result. Is it possible to enforce this type of behavior Thanks in advance Carlos Unless you have an ORDER BY, TOP(nn) does not guarantee what you will get back. TOP(nn) also has to access the entire table. If you don't really care what you get back, you can try using ...Show All
Visual Studio Team System MSBuild FlavorToBuild being ignored
I setup two build types for a team project, one is a testing debug build and the other is a production release build. It seems that no matter what I put in the FlavorToBuild the solution keeps getting build with the Debug configuration. One of the projects in the solution is a web deployment project that swaps sections of the web.config depending on the build configuration so the final output keeps setting this incorrectly. I currently have this in the TFSBuild.proj: < ItemGroup > < ConfigurationToBuild Include = " Release|Mixed Platforms " > < FlavorToBuild > Release </ FlavorToBuild > < PlatformToBuild > Mixed Platforms </ PlatformToBuild > </ ConfigurationToBuild > ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Mix CustomVertex.PositionColored with CustomVertex.PositionTextured in same scene.
Is it possible to use vertexbuffers with both CustomVertex.PositionTextured and CustomVertex.PositionColored in the same scene I have two objects, one that contains a vertexbuffer that is PositionTextured and one that is PositionColored, both work fine if i use them indivudally but if i render both in same scene i can only see the Textured one. I've tried to change the renderDevice.VertexFormat to the correct type before i render each object but it's still the same problem. Changing the renderorder of the objects doesn't help eighter :( My renderloop looks like this: private void Render() { if (paused) return ; renderDevice.Clear( ClearFlags .Target | ClearFlags .ZBuffer, Color .W ...Show All
Windows Forms Binding to toolstripComboBox does not work
Hi, I am trying to bind data from a dataset to a toolStripComboBox just like a ComboBox. Like the following: this .toolStripComboBox1.ComboBox.DataSource = this .bindingSource; this .toolStripComboBox1.ComboBox.DisplayMember = "Sirname" ; When I do this with a normal combobox it works fine. With this one it does not. Any ideas what is going on Am I forgetting something Regards, Ruud Wijnands Having the combobox under a menu item seems to be the issue. If I move the combobox directly to the menustrip it works fine. If I place it under any of the items on the menustrip it does not work. ...Show All
Visual C# using Word = Microsoft.Office.Interop.Word
Hi, I am having problem with the [Interop] word I was prompt for not exist. are there any reference I should add jbattat I dont see any error in your code for object initialization. I would suggest you the following to change; 1.When Application is set to invisible then document should be also invisible. ( i.e in your case for doc1, Object visible=false; ) 2. I dont see any usage of this code; doc1.CheckSpelling( ref optional, ref optional, ref optional, ref optional, ref optional, ref optional, ref optional, ref optional, ref optional, ref optional, ref optional, ref optional); Because, you are getting error count from the Proofreading object. Better would be comment ...Show All
.NET Development HttpWebRequest loses HTTP header?
I'm writing an application that queries data using HTTP. Before posting data I need to authenticate with the web site and retrieve a session token from a HTTP header. This session header token is then sent in future web requests. I have two accounts to use. To authenticate I create a web request using the code below: The target authentication URL expects a header called "Cookie" with a key / value pair. private HttpWebRequest CreateSessionRequest( NetworkCredential networkCredential) { CookieContainer cookieContainer = new CookieContainer (); HttpWebRequest webRequest = WebRequest .Create(logonUri) as HttpWebRequest; webRequest.Credentials = networkCredential; webRequest.PreAuthenticate = true ; webRequ ...Show All
Visual Basic Is there a Way to Open a Website's Source Code into a Texbox?
Dim allText As String Dim LineOfText As String FileOpen(1, "http://www.msn.com", OpenMode.Input) Do Until EOF(1) LineOfText = LineInput(1) allText = allText & LineOfText & vbCrLf Loop RichTextBox1.Text = allText FileClose(1) I tried that code and I got an Error stating the URL format is not supported. Or simply fully qualify the items being used, that way you dont need to specify an imports statement Dim theRequest As System.Net. WebRequest = System.Net. WebRequest.Create(" http://www.microsoft.com ") Dim theResponse As System.Net. WebResponse = CType(theRequest.GetResponse(), System.Net. HttpWebResponse) ...Show All
Visual Studio Tools for Office How to Search Outlook Mail Body?
Hi, I wrote an Add-in with Outlook which has to search all the outlook (or selected outlook folders') mails Subject or Body, by the keywords from my SQL Server Table. Assume I've 10 Names in my Employee Table. I've to search the mails which are all having at least one of the Employee names from my Table in either Subject or Body. I can search the Subject by "urn:schemas:mailheader:subject = 'Kannan'". But I want to search with in Body too. Is it possible with this Integrated Outlook Advanced Search method, or I've to write separate routine Any suggestions / sample codes will be appreciated. Thanks in Advance, Hello, You might also check out the following topic on MSDN for searching mails for text http://msdn2.micro ...Show All
Visual Basic Listbox: as SearchBox...bug?
Hello I have a database (with name, adress, etc. and an ID as key) and so I want to have a search-form. I thought to use a listbox and show there the first name and the last name. When I click on a name it should open an other form which shows the whole record. It's evident that the listbox is sorted. So I chosed the name as displaymember and the ID as valuemember. But what happens: the SelectedValue is not the ID of the record, neither the index, it's the ID of the record which would be there if I wouldn't sort the listbox. Is it a bug Thank you. Morus P.S.: Sorry for my bad english...I'm from Switzerland This problem is discussed in this thread ... ...Show All
Visual C# XML newbie
I am trying to read all the values under Genre_Country and Genre_Funk. To loop thru each genre...and get the Title and url. Driving me nuts.... < Radio > < Genre_Country > Country </ Genre_Country > < Title > .977 The Kickin' Country Channel </ Title > < url > http://64.236.34.4:80/stream/1075 </ url > < Title > 1.FM - Country </ Title > < url > http://64.62.194.11:8020 </ url > < Title > .977 The Kickin' Country Channel </ Title > < url > http://205.188.215.230:8000 </ url > < ...Show All
