Topics
-
- 1 reply
- 2.9k views
Hi ppl, I have populated my listview with items form by database. I now want to add 2 context menu for diferent purpose im my list view: 1. If a user right clicks in an item that exist in my list view i want to show a context menu with options like "properties", "Delete", "edit", etc. 2. If a user right clicks in the list view where there is no items i want to show a diferent context menu like "add new item", "refresh", "list view", etc How can i do this? how do i know that the user right clicked on an item? thanks to all
Last reply by Machaira, -
- 1 reply
- 733 views
Has anyone been able to send an email successfully in any of the 2005 Express editions? I have all the code correct as per their own samples, but the problem I am getting is that the email won't actually send until I fully quit from my application. I hit my send button and nothing happens, but once i close the program, good old norton pops up and scans it and sends it away. Just curious if anybody else has played around with this.
Last reply by Machaira, -
I have a wsdl that includes 2 .xsd files. When i attempt to add this wsdl as a web reference, i get error that says Igonoring duplicate schema document with targetNamespace "". I assume that becuase in each of these two .xsd files, there are no targetNamespace specified. So i give them each a unqiue namespace, then I get the error that failed to importing binding of a method becuase a dependant dataype is missing. Any clues on what I'm missing? Attached below are my files. Thanks in advance.FDXLMD.zip
Last reply by kahlua001, -
- 3 replies
- 691 views
Hello, i've got a little Problem. I would like to get some Information from a MySQL Database and store these information in a class/function so i have quick access. The information i would like to store are customer information and i would like to get information by using "customers("nameofcustomer").phone" (to get the phone number) or "customers("name").delete" for deleting a customer. Is this possible to do? I don't want to store thousands of customers but using mysql is too slow. Any other Solution would be great too :). Thanks in advance, Twister
Last reply by Denaes, -
- 4 replies
- 2.8k views
Hi, I have quite a big piece of html that I need to change for clarity, some rows in the table needs high lightning and I thought I'd use som regex for that but from what I understand newlines mock things up... The pattern is.... a multiline string starting with <tr> and ending with </tr> containing PÅMINN or PÅMINN should be replaced with <tr class="highlight"> the complete string up to the ending </tr> ie should be.... TIA /Kejpa
Last reply by IngisKahn, -
- 6 replies
- 3.8k views
Hi I have win application wich will run on approximately 200 computers, mostly win xp, but probably there will be some win 98 as well. I want to start a defalut email client (I suppose it will be outlook express on 90% of computers, but I can't be sure) on that machine with new message dialog opened and "to", "subject" and "attachements" properties filled. So far I have only found exapmles on how to send mail through outlook or smtp client. Please help
Last reply by ivan74, -
-
- Administrators
- *Experts*
- Leaders
- 19 replies
- 2.6k views
To be honest I have yet to try a beta of Version 2 of C#/VB, but I have been reading about C# 2.0 and it scares me. It seems to me that the elegance of VB.Net/C# lies in simplicity. Both languages are particularly easy to use and at the same time very powerful and flexible. But now we introduce generics, partials, and nullable types. If we continue to load these "nifty features" onto the .Net Framework/C# it won't be long before we might as well be using Managed C++. Separating designer generated code from hand written code sounds great, but it is hardly necessary; it is already collapsed into a single line in the code editor. And I can see potential there to confu…
Last reply by PlausiblyDamp, -
-
-
- Administrators
- 3 replies
- 2k views
In a C++ application, I need to call the external program "setup.exe" and then exit quickly. "setup.exe" performs updates on the program that calls it. Windows has an API called CreateProcess() that I am thinking about using, but their example on http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/creating_processes.asp shows WaitForSingleObject() and CloseHandle() calls immediately after. I can not wait. The program needs to shut down immediately after calling the external program "setup.exe". Is there a different way to call CreateProcess() that is better for my situation, or do I need to use something else?
Last reply by joe_pool_is, -
-
- 1 reply
- 643 views
Effecting other controls on a form from within a compiled control This is something I really want to learn more about. Say I made a control and it does many nice things that are useful. One thing is to press the "Disable" button and disable (enable = False) every other control on a form. Now preferably I just want to drag this control onto a form and be able to click the button and everything is disabled. I'm pretty sure I can do this easily. Just do a myBase.ControlCollection "for each control..." and make sure I'm not disabling the control doing this. This would work right? Well where I want to take it is to be able to choose certain controls to subscribe …
Last reply by Denaes, -
- 0 replies
- 710 views
Hi, everybody! I have several webservices that I call from a .Net application. I would like to make a method that would call a webservice received as a parameter. for instance: public object ExecuteWebService(string WSname, string WSMethodName, object[] params) Is this thing possible, or anything close to this approach?
Last reply by puma, -
- 4 replies
- 1.9k views
I'm not sure if this is the category to drop this question under, so please move it if it's not. I have a program that takes screenshots by using a hotkey (user defined - ALT, CTRL, SHIFT or WIN + a user-defined character). This works perfectly under any program EXCEPT directx programs. It works fine with OpenGL (Medal of Honor Allied Assault) but not at all with DirectX (Halo). It seems that DX just completely ignores all hotkeys. Is there a way I can set this up to recognize my hotkeys while directx is in the foreground and my program is minimized to the system tray? I even tried setting the program on top and hiding the form, and still no go. I'd appreciate any f…
Last reply by Wile, -
-
- Leaders
- 4 replies
- 1.4k views
I worked out the following code and it works great with one exception. When I am looking at them, (I am using the wall_with_pillars.x mesh that comes with the DirectX August SDK Update) they are see through. You can easily see the object, but it is see through. You can see clearly with a screenshot I took. If you look at the pillers they are all see through. Any advice anyone has would be greatly appreciated. Private Mesh As Mesh Private Materials() As Material Private Textures() As Texture Private Sub DrawMesh() Dim i As Long For i = 0 To Materials.Length - 1 If Not Textures(i) Is System.DBNull.Value Then Direc…
Last reply by Nate Bross, -
-
-
- Leaders
- 1 reply
- 884 views
Hi, I'd like to be able to take control of the screensaver and screenlock from within a little C#.NET application. Specifically, I'd like to programmatically: 1. Force the currently selected screensaver ON. 2. Force Windows to Lock. 3. Force Windows to Unlock. Any help on any of these would be very useful insight. Cheers folks, Matt.
Last reply by snarfblam, -
-
- 0 replies
- 2.4k views
If you don't know what FURPS+ is, or at least requirement modeling then this discussion might be a little above you. Most of my references in this post will come from Craig Larman's book 'Applying UML and Patterns' which by the way is an excellent book and should be in your library along with GoF's Design Patterns and several others mentioned on other post throughout the forum. For review many companies out there only have two types of requirements - Functional and Non-Functional. I don't like that black and white/broad generalization labeling; I prefer the FURPS+ model which stands for the following requirements types: Functional Usability Reliability Performa…
Last reply by bri189a, -
-
- Leaders
- 7 replies
- 1.9k views
Just for clarity sake, while in project mode, where should I point code like: Private Sub TextBoxDescription_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBoxDescription.TextChanged 'catch file errors If File.Exists("/wartext.txt") Then Dim StreamToDisplay As StreamReader 'point to where the file should be StreamToDisplay = New StreamReader("/wartext.txt") ' <--- is this correct "/wartext.txt" where does that point to? TextBoxDescription.Text = StreamToDisplay.ReadToEnd StreamToDisplay.Close() TextBoxDescription.Select(0, 0) Else …
Last reply by matt09524, -
-
-
- *Experts*
- Leaders
- 14 replies
- 7.3k views
What do you do to make a control a fixed height (and/or width) at Design time? Control.SetStyle(ControlStyles.FixedHeight, true); does not work
Last reply by Diesel, -
-
-
- *Experts*
- 8 replies
- 1.3k views
Ok, I'm loading some values into a combobox (and other controls) and I have a SelectedIndexChanged event for this combobox. Now, in the event I need to evaluate either the Value or the Text. Now what happens is that the SelectedIndexChanged event fires multiple times while the form loads and the data is fed into the combobox from the datasource. Before there are any items fed into the combobox, the Text and value are Null, which causes errors on trying to evaluate. I have two solutions to this problem: 1. Try statements around anything reading from the combobox. 2. Set a variable like isLoaded which is set to false and made true after the formLoad event …
Last reply by Denaes, -
-
- 5 replies
- 1.4k views
Hi. Here is an example of something I want to create graphically: http://img113.imageshack.us/img113/1576/table6ol.jpg Now I think I can handle the content (i.e. get a datagrid and populate it :P) but want im after is information on how I would create the item. It needs to have the little button in the right to collapse and expand the 'mini-form', it needs to have the heading (table name) and it needs to be drag-able. Another criteria is this has to be able to go into a form... specifically PART of a form (so im not sure if i can inherit from the windows form class as i only know of normal forms and mdi forms, not something inbetween!). So how do I go about doi…
Last reply by Machaira, -
-
- *Experts*
- 1 reply
- 735 views
Any good? I'm running on Team Edition b2 (we were sent team edition and team server, but no normal b2 dvds in our MSDN package??) and it's workable stable. It slows down at some points and does a good job about creating code for a control/component, then changing all instances of the name to match the change... but sometimes wigs and corrupts or changes half the names causing a lot of errors (on the error list, not VS runtime errors). More than once I've had to delete all my datacomponents to get the form working again, then adding and renaming (because I'm anal about how they're named). Of course I should add that I'm using the VB.net portion. I havn't used th…
Last reply by Nerseus, -
-
- 0 replies
- 1.5k views
Hello Can anyone give me a working sample for StretchRectangle in C#? I just want to copy a texture. Thank you! wima
Last reply by wima,
-
Who's Online 0 Members, 0 Anonymous, 53 Guests (See full list)
- There are no registered users currently online