[vb2008] Find An Exhaustive Textual Explanation Relative To The Number?
Mar 21, 2011with the code
Marshal.GetLastWin32Error
I obtain a number.... but WHERE can I find an exhaustive textual explanation relative to the number?
with the code
Marshal.GetLastWin32Error
I obtain a number.... but WHERE can I find an exhaustive textual explanation relative to the number?
I'm writing a program for my algebra students to practice integers.Stuff like....
3-6
-4 + (-5)
3(-4)
-15 � 3
etc.
I want to show an explanation and for the addition and subtraction, I want to show it on a number line. For example, if the problem is 3 - 7, the number line should show and arrow to that goes right to 3, and then left 7 units (starting from 3). Then the student can see that the answer is -4.I could probably do this with some string manipulation, but what would be the easiest way to do it in a picture format? Maybe a bitmap.
In vb.net, when writting an application, I want to access a batch file that has been added to the project. My question is how to I find the relative path of this file to access it? I have used relative path on the ASP.NET side, but not on the application side. The properties that I am finding regarding the current directory and running directory and the likes are all for the bin directory its in. While I can use the CurrentDirectory() property and go up two parents (....) in the development environment, when I install the application, the structure is not the same. As in the output is in a single folder, not tiered.
Example. c:projectsMyAppindebugMyApp.exe is the running directory
My file I want to access is at c:projectsMyAppvalidate.bat
so "c:projectsMyApp" is what I am trying to capture.
Using any version of .NET how do you find out which zone a particular share is classified under. I am having a problem identifying if a share where my referenced dlls reside is in the "intranet zone" or "internet" zone relative to some user machine that is running my .NET application. I suspect this is a problem because I am having a problem accessing referenced dlls from a share on some machines but not others. How can I tell which zone .NET is classifying that share in so I can adjust permissions accordingly?
View 1 RepliesI'm experimenting with the RichTextBox control. My goal is to replace certain user input with an image object. For example, when the user used ":-)" in the RichTextBox it will be replaced with a simple image (like ).
I use the TextChanged event on the RichTextBox to replace any found textual smiley with an image. The code below works, but only works on the first found ":-)". When the user used ":-)" twice the first image is being removed from the RichTextBox. No matter howmuch times ":-)" is found, there will only be one image in the RichTextBox (for the last found ":-)").
Private Sub RichTextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RichTextBox1.TextChanged
Dim LastIndex As Integer
[Code]....
I also don't know if the whole clipboard thing (clearing it, storing the image, restoring the original data) is the best way to do it, but I will look at that later.
I'm working on a project that has to do with making a parent mdi form. I'v created the form but I can't set the MdiList property to true cos I can't find it in the property window. For this reason, my windows menu can't list the opened child windows.
View 2 RepliesLets say I have opened image on the screen. I want to find coordinates of little object on that picture. I know pixel pattern of that object.
[Code]...
As know mid(source, wordstart, wordlength) in VB6 source.substring(wordstart, wordlength) in vb2008 what differebce between both ?i can run it "mid(source, wordstart, wordlength)" at vb 6 with no problem,but i can't run it" source.substring(wordstart, wordlength)" at vb2008 'System.ArgumentOutOfRangeException' happened with System.Windows.Forms.dll
View 4 RepliesI whould like to find the IP address of a game server that sends UDP packets to my PC. Of this server I know the fixed Port number, but not the IP address
I can read the netstat -anp udp data and store them in a text file... but this command don't displais the IP Address and the Port number of the external servers, only lots of asterisks
the question is: how to retrieve this IP address?
find the underlying DataGridView (DGV) when responding to a Right Click on a ToolStripMenu (TSM).I have several DGV's all using the same ContextMenuStrip (CMS) [DGV.ContextMenuStrip=CMS]I have six ToolStripMenuItems under the CMS. I thought I could just add a unique handler for each of the ToolStripMenuItems and be a happy camper on each Right Click...But I cannot figure a way to decode the underlying DGV. There doesn't seem to be any relationships between DGV and TSM and none between CMS and TSM.Is this path a dead end? If so how should one do it? FYI my DGV data is unbounded.
View 7 RepliesWhile I reading a sample I found this code which I could not Find its functionPrivate Sub LoadList(ByVal lst As ListBox, ByVal typ As Type)lst.DataSource = System.Enum.GetNames(typ)End Sub Actually I understood that This code create a method to do some thing as I think to list some thing but what is DataSource and what isSystem.Enum.GetNames(typ) and I never created a method before with (ByVal 1st As ListBox, ByVal typ As Type)
View 2 RepliesDim conn As New SqlCeConnection, in the position marked **, it makes the program fall over on the cmd.prepare statement: requires an open and available connection
Public Class Form9
Dim compactStr As String
Dim conn As New SqlCeConnection
[code].....
How to add my explanation to auto finish in user classes or enum etc?
View 3 Repliesi have an array consist of ({9,2,10,5,7}) and i have a total = "17".
the question is, how do i find which sum of array that match the total ??
do you people know the algorithm or in vb.net language ??
the number in array not always the same and so the total is. that is just an example.
search a dataset table and search a column within that table for a value than if the value is true in the column find out which row number it was on
View 7 RepliesSuppose I have a number[code]...
View 4 RepliesFor example, black is 0, how can I find out what number other colors are?
View 12 Replies,how to find the number of words presented for a page in the pdf file using itextsharp. To get total number of page--reader.NumberOfPages.Like wise i need how to get total number of words for a page.
View 6 RepliesI cannot work out the correct formatting of the above type addressing for a textbox in a (sort of) array of textboxes such as
textbox_1
textbox_2
textbox_3
etc.
The controls are on Tabs but I don't think I need to include the Tab as a container control, just refer directly to the textbox on the form, but I cannot work out how this is done in VB .NET format. In VB6 it was relatively straightforward but VB .NEt seems it is different. Can anyone help me with the correct way to formulate
[Code]...
If I have four items in the listbox, e.g. a, b, c, d, how can I find the name by knowing from the top the item is number 3 (c)?
View 6 RepliesHow do I check to see if the first character of a string is a number in VB.NET? I know that the Java way of doing it is:
char c = string.charAt(0);
isDigit = (c >= '0' && c <= '9');
I have a Credit Card Number in an XML Message and I want to use a regex to find the Credit Card Number and encrypt it. All numbers are 16 characters long and they are not always in the same place in the xml, so basically I think I just need to find a string that is 16 characters and decrypt it, but I am not sure how.
[Code]...
how to find the factor of a number using textboxes and arrays? i dont seem to understand the whole layout
View 2 RepliesI have ten numbers like 1.1,2.5,3.7,4.9,5.4,6.2,7.6,8.9,9.0,3.56
How I can find the largest number in the group?? I can do comparison of two number and repeat the process but it is very long, is there any other ways??
How to find the number for sentences in a String data ? Edit: Ok I came up with this after following Wipqozn's method
Dim str As String = "This . is . a . text."
Dim maxCount As Integer = str.Count
Dim intSent As Integer = 1
[code].....
i am trying to find the sin (any number *Pi) but for some reason its not working. the result i am getting is the answer of (sin(any number)) * pi here is an example of my
Answer.Text = Sin(variable1 * Math.PI)
****note variable1 is user input
How can i find the week number in a month.
A month can have 5 weeks, i need to know in which week i am.
I am trying to determine how to take a date and show what the week number is for that month. So 3/1/10 will be week 1, 3/16/10 will be week 3 and 3/30/10 will be week 5. I know how to get the week of the year number just not week of the month.
View 4 Replieshow to use ListName.Find. I am trying to find a number in an a list of integers.
View 1 RepliesI am creating an application and I have the numbers 1 - 20. Each number represents a location. They are continuous. I need a way to find the closest number to a given location. For example if the event is in location 8 and there are 2 people who can attend who are in locations 6 and 10. Then zone 6 would be chosen as its closest and also the lowest. If I needed the next highest closest number then I could pull all of the numbers into an array and sort them and then pull out the one which is the next highest zone. However as I need to find the closest number which could be lower, im not sure how to achieve this.
View 1 Replies