Topics
-
-
- Leaders
- 5 replies
- 4.4k views
Hi there, I have a picturebox with BackgroundImageLayout set to Zoom. So when I resize the picturebox, the background resizes too maintaining its aspect ratio. How do I get the zoomed image instead of the original background image?
Last reply by boops boops, -
-
- 4 replies
- 1.9k views
In a Case statement is there a way to access the value of the Case? Given that you can say " Case 4 To 10" for instance, this would be a useful thing to do. Thanks.
Last reply by rbulph, -
- 0 replies
- 1.1k views
I screwed up majorly when writing my program.... never envisioned I would need threading while updating... But having like 2000 objects needing Updating, collision detection and AI, no computer can handle this on a single thread. In essence my program implements a GameObject that is iUpdatable, iDrawable and contains an iSprite. iUpdateble only contains one function Update(); iDrawable only contains one function iSpriteInfo[] GetSprites() //I just do this as I have other classes derived from iDrawable Like CompositeSprite and Spriteanimation and then we have iSpriteInfo public interface iSpriteInfo { float X { get; set; } flo…
Last reply by Napivo1972, -
- 2 replies
- 13.8k views
Hello, Currently working on a fairly simple forms application. Since I am a complete newbie, I can't figure out even simple stuff. I would appreciate any help in this regard. This is what I intend to do: A small application that pings a list of servers. The list is stored in a Access mdb file. When the application pings the PC's in a loop, it looks for any PC that's offline. If counts the PC's that are offline and those which are online and reflects that count separately onto two labels somewhere on the form. Plus, it should log the event if it sees that any PC was unreachable. The logging should be done in that AccessDB file, but in a separate table. Logging t…
Last reply by robertsams23, -
- 1 reply
- 1.9k views
Hello everyone, I have written a Windows application in C# that is monitoring production statistics of a machine via OPC and logging to a SQL database. It has just a single user interface. I would like to provide a way for my manager, for example, to access this application via web browser and serve him a single html page with current production data, for instance. I'm not looking for detailed code -- just a high-level view of how this is accomplished. I just need concepts, at the moment - not specific solutions, necessarily. Thanks for any guidance you can provide.
Last reply by Recondaddy, -
- 1 reply
- 7.8k views
Hi guys, I'm making an VB.NET application that allow user to log in to a server that use the third-party OAuth service from another server. I got the log in packets like below: 1st packet: POST [b]/1st_url_session_third-party_service[/b] HTTP/1.1 Content-Length: 175 Content-Type: application/x-www-form-urlencoded Host: [b]{third-party.com}[/b] Connection: Keep-Alive User-Agent: {user_agent} Accept-Encoding: gzip Accept: application/json Authorization: OAuth oauth_consumer_key="{key}",oauth_nonce="65L3uQ",oauth_signature="lHCIs%2Bs3Z7MVnm1FUfS6cqOmu0g%3D",oauth_signature_method="HMAC-SHA1",oauth_timestamp="1374631148",oauth_token="",oauth_version="1.0" device_typ…
Last reply by ghostshadow189, -
- 0 replies
- 1.8k views
Hi, I am using .NET Framework 4.0 and want to do a task. I have a .zip file with a folder named "word" in the root and a file named "document.xml" in the folder! I want to unzip the <ZIP File>\word\document.xml on the fly and store the whole contents of document.xml in a string! I will need a function like this: Private Function GetContents(ByVal FileName) As String FileName is the name of source zip file and contents are stored as output! I need a VB.NET code snippet, anyone can help me here? Thanks :)
Last reply by usvpn, -
-
- Leaders
- 2 replies
- 2.7k views
I create a program in vb .net 2010 express and every time i deploy the program to another pc i get the following message: See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text ************** System.IndexOutOfRangeException: Index was outside the bounds of the array. at Milebug_Report.Form1.Form1_Load(Object sender, EventArgs e) at System.EventHandler.Invoke(Object sender, EventArgs e) at System.Windows.Forms.Form.OnLoad(EventArgs e) at System.Windows.Forms.Form.OnCreateControl() at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) at System.Windows.Form…
Last reply by dodge_dakota, -
-
- 0 replies
- 9.1k views
I have a C# program that opens an application object via a type library. I have managed to set up my own event handlers which fire when the application events trigger, but I would actually like to override those events, rather than just know that they have occurred. Anyone know whether this is possible (and how to do it?) Found this code which suggests it is possible, but I am looking for a tutorial or similar. The code actually looks relatively simple - appears you only need to know the GUID for the application (which I guess I can find), and the DispID - not sure where that is found?
Last reply by Legend, -
- 1 reply
- 3.7k views
I am having trouble setting up my local home network for remote debugging a surface tablet. Ping requests to all the local addresses (192.168.1.*) except the adsl-modem-wifi-router get timed out. A ideas how to get the network working?
Last reply by JumpyNET, -
-
- Leaders
- 3 replies
- 4.7k views
After browsing the web and reading dozens of examples and tutorials I still can't figure out how to translate mouse X;Y screen position in pixels to X;Y isometric tile index. All the examples I tried returned strange values. The attached picture shows exactly the tiles' redering order. The Zig-Zag rendering mode was so simple to implement with the help of a colored coded tile. But this diamond shapped design is really giving me a hard time. I guess the formula involves the following variables: - MousePos.X - MousePos.Y - TileWidth - TileHeight - ScreenWidth - ScreenHeight Now I just need to know how to put the pieces together. Unfortunately, I fail to se…
Last reply by EFileTahi-A, -
-
-
- Leaders
- 4 replies
- 4.9k views
Is there any way that I can display a property in the PropertyGrid Control but not expose it when I pass the object to a dll?
Last reply by rbulph, -
-
- 0 replies
- 3.2k views
I am trying to convert the C# LongListSelectorSample from http://phone.codeplex.com/ to VisualBasic. Here is the original C# code (with the problematic linq-query included): private void LoadLinqMovies() { List<Movie> movies = new List<Movie>(); for (int i = 0; i < 50; ++i) { movies.Add(Movie.CreateRandom()); } var moviesByCategory = from movie in movies group movie by movie.Category into c orderby c.Key select new PublicGrouping<string, Movie>(c); …
Last reply by JumpyNET, -
- 1 reply
- 3.7k views
Is there any way to get Justified TextAlignment on Windows Phone? At least TextBlock does not seem to support that. Is it possible to somehow use Silverlight components or do you know if some one has made a custom TextBlock?
Last reply by JumpyNET, -
- 0 replies
- 2.9k views
I cannot seem to find any way to change priority of threads on the Windows Phone 8 platform. The default priority seems to be too high as my app takes now 2,5 seconds to startup, but if I make my background thread sleep alot the startup time will be only 0,8 seconds. Any advice?
Last reply by JumpyNET, -
- 0 replies
- 6.8k views
I have a chart that displays a dataset with ranges. So the series is formatted like 100-150, 150-200, 200-250 Since that value in the data set is a VarChar not numeric, how can I add a strip line on one of these values as a target?:confused: Thanks in advance.
Last reply by PrOpHeT, -
-
- Leaders
- 1 reply
- 3.2k views
How can I replace text inside angle brackets? My best try so far: Dim Input As String = "Aaaa [abc] Bbbb [7] Ccc" Dim Output As String = Regex.Replace(Input, "\[.+\]\s", "") ' Output is "Aaaa Ccc" but should be "Aaaa Bbbb Ccc"
Last reply by snarfblam, -
-
-
- Leaders
- 2 replies
- 2.9k views
Googling for instructions spesific to Windows Phone seems impossible. Can someone please help me how to replace the following VB-code with WP alternatives? Dim Beginning As String = Left("Some Text", 2) Dim Answer As Boolean = "Some Text" Like "S*"
Last reply by JumpyNET, -
-
-
- Leaders
- 2 replies
- 4.1k views
What references do I need to add to get this working? Imports System.Web.Script.Serialization
Last reply by JumpyNET, -
-
-
- Administrators
- Leaders
- 5 replies
- 7.6k views
How can I ignore window's font size scale settings? Because if the font size is set to 125% or above my app will be completely wasted as dozens of controls will overlap and text itself will be cut in 90% of the cases. Not to mention that one of my forms got destroyed when I opened it in my new Notebook which had the font size set to 125%. I had to reposition every damn control on that form when I set the font size back to 100%. So, how can I completely bypass window's auto font scale size? (The correct way to see it) I understand that I shouldn't override the user's chosen settings in windows, but I have no other way to let my custom controls function properly a…
Last reply by EFileTahi-A, -
-
Who's Online 0 Members, 0 Anonymous, 29 Guests (See full list)
- There are no registered users currently online