VS 2010 Small Doubts While Reading Other Posts?

Sep 21, 2010

While I was reading some posts, I got stuck at certain lines.

Public Class IP_ADAPTER_INFO Public [Next] As IntPtr Why the square brackets ?

Dim Count As Integer = RichTextBox.Text.Split(","c).Length What's the use of character c in above code?

View 9 Replies


ADVERTISEMENT

VS 2010 Some Doubts On Disposing?

May 17, 2011

I have a class where there is some private strings to hold some data like name, address, etc. And also a private object of Process class. It also has an "AddHandler" method.

So, how to take care of the disposing part.

More info: I'm wrapping up this code into class.

View 21 Replies

VS 2010 Parsing Xml Posts?

Mar 14, 2012

I am using the xmldocument (loadxml) and xmlPathNavigator to parse xml files I am compiling through a incoming stream. The first point of processing the files is to split the file into the different entries and add those to a list. I do this using either xmlPathNavigator or string.split if either one fails.At times both will fail because of some issue in the xml and would still like to salvage the file contents without having to fix the xml. I tried to use regex parsing but its not producing the content as I would like. I use the following code but in the end I do not get all the contents of the entry, only those between some of the tags.

[Code]...

View 6 Replies

SQL Query Doubts To Be Placed In .NET Application?

Jun 24, 2009

Lets say i have a student table, schedule table and MsgIn table.So my sms application will receive incoming messages and store into the MsgIn table. Eg a msg receive is "S12345678 TT MON" and this message will be store into the MsgIn Table. And a sql query to retrieve the timetable for this student will be like:select Day,Time,Venue From Schedule WHERE Lets say i want to see if the receiving Message of "S12345678 TT MON" which is stored in the MSgIn table. So how to do a query if the S12345678 exists in the student table of the ID attributes and TT MON exist in the student table of the Timetable attributes.

View 2 Replies

Make A Small Program For Ticketing On A Parking For A Small Hotel?

Aug 27, 2010

I need to make a small programm for ticketing on a parking for a small hotel.So i have 2 Printers pariking In (for delivery of the tickets) and 2 Readers PArking Out.Both Printers and REaders are working Serial.So i need to poll the serial ports of the printers and readers every second.The data is stored on a SQL database so i need to read and write in the database.Can i do this with 1 PC and 1 programm or 1 PC and 4 programms that are runnning at the same time ?

View 2 Replies

Create A Small Application That Can Make Small Calculations?

Feb 1, 2010

On form 1 , i have a number of buttons that open up different websites.What i want to do is when i click a button on form 1 , i want forum 2 to show ( Form2.show() ) , Form 2 will have a list (Buttons) of internet browsers.

View 4 Replies

Fair Few Posts That Everyone Uses SearchLite?

Sep 12, 2011

just a quick question, i have seen i a Fair Few posts that everyone uses SearchLite ... WTF is it?

<span class="searchlite">

View 1 Replies

ASP.NET GridView DropDownList Posts Empty Value

Feb 23, 2012

I'm having trouble with a DropDownList within a GridView that posts a NULL value when in fact a value is selected from the list when using inline editing.

The problem is that I can't use this method to bind the value to the UpdateCommand in my SqlDataSource:

SelectedValue='<%# Bind("Value") %>'

The reason for this is because the value might not exist in the list so it throws an exception.

Is there a way I can bind the value to the UpdateCommand without using SelectedValue?

View 1 Replies

Unable To Retrieve Posts By Category - MVC 3?

Sep 29, 2011

I am writing a basic blog application to learn mvc 3. I have problems retrieving posts by category. The url looks like /Blog/Browse/Category_Name. I can get the posts if i hard code a value for category. So it would seem that Category_Name is not getting pass to my EF statement in my controller. the category had a period in it so it was not matching.

View 1 Replies

Posts Over Time Relating To Importing And Exporting CSV?

Aug 15, 2011

I've seen a lot of posts over time relating to importing and exporting CSV. Most of the answers involve using TextReader.readline and String.split, which will not work with any but the simplest data. When you are writing for users who have the expectation that your application will work with anything they export from Excel, you will have to cover all the CSV bases.

I hope that this post will give you a clear idea of what you're involving yourself in when you decide you need to read a CSV file. The characteristics of CSV data are:The comma character is used to separate the fields. (This is obvious, but I thought I'd start with a couple of obvious points to warm up) The last field on the line is ended by the end-of-line character or the physical end of the file.Any field that contains commas, double-quotes or control characters will be surrounded by double-quote marks. Any double-quote marks within the field will be "escaped" with an extra double-quote character. For instance, the value Paul "Chuck" Norris would be converted to "Paul ""Chuck"" Norris".After the opening double-quote ANY character is valid. Including line breaks. This is why you can't use readline.I have a parser class that works nicely and I'll post that on this thread in a little while, along with some notes on using it.

View 1 Replies

Vs 2010 To Vs2008 Small Error?

Feb 21, 2011

At the line i left a few empty lines around im getting expression expected ? not quite sure why tho ?

Private Sub xParse(ByVal text As String)
Dim sFind1 As String = "<a href="""
Dim sFind2 As String = "<span class=""smalltext"">"

[code].....

View 3 Replies

Asp.net - Telerik Upload Control In DNN Just Posts Back Without Uploading?

Jul 13, 2011

Ultimately, what I would like to do is upload files directly into the database, so I updated this question with the code I'm using to write to the database. I am developing a module in DotNetNuke using Telerik controls. I need to upload files to the server in the user interface, so I am using the RadUpload control and the RadProgressArea/RadProgressManager.

Here is my ASP:

<telerik:RadUpload ID="RadUpload1" runat="server" ControlObjectsVisibility="CheckBoxes, RemoveButtons, ClearButtons"
AllowedFileExtensions=".doc,.docx,.pdf,.tiff,.gif,.jpg,.jpeg,.xls,.xlsx" MaxFileInputsCount="2"
MaxFileSize="10000000" InitialFileInputsCount="2">
</telerik:RadUpload>

[Code]...

When I hit the button, it does a postback to the page, but the files do not get uploaded. I tried using the autoupload functions and specifying pysical and virtual paths but that didn't work. I did it exactly like they said. I manually registered the controls in my web.config, then removed them and used the auto-register feature to re-register thinking maybe I did something wrong, but I'm still at a loss.

Here's where I spent the last couple hours:
[Upload Overview][3]
[Files are not uploaded][4]

get this upload control and progress indicator working?

View 1 Replies

Get Quote Posts In A Richtextbox And Then Add The New Post To The Database And Display It?

Feb 26, 2010

i want to quote posts in a richtextbox and then add the new post to the database and display it?

View 6 Replies

Working With Listview And Database - Searching Back The Old Posts?

Mar 11, 2010

I have a listview attached to a dbase app I am working on, the last column has a price value and I would like to create a total value for this column in a label or text box below the listview control.I was searching back the old posts looking for some pointers or a code snippet that would do this, but was unable to find anything. i'm using vb 2008.

View 4 Replies

Make A Small Application To Print From .net 2010

Sep 16, 2011

I am trying to learn and make a small application to print from VB.net 2010 to my usb label printer.

View 3 Replies

VB 2010 Underscore And Small Rectangles In String Outputs?

Dec 1, 2010

I've made some good progress with my first attempt at a program, but have hit another road block. I'm taking standard output (as a string) froma console CMD window (results of dsquery piped to dsget) and have found small rectangles in the output. I tried using Regex to clean the little bastards but it seems they are related to the _ (underscore), which I need to keep (to return 2000/NT logins). Odd thing is - when I copy the caharcter and paste it into VS2K10 Express it acts like a carrige return?Going to try using /U or /A CMD switch next..

View 2 Replies

VS 2010 - How To Create Small App To Store Music Collection

Jun 17, 2012

I am a beginner on Visual Basic but was able to create the 'skeleton' of the application I need to build. Basically, it is an application dedicated to keeping a check on the vinyl I have. When I buy a new record, I want to effectively 'Add New Record' on Visual Basic and be greeted with a page consisting of various forms such as 'Artist' and Title'. Once these are filled in, I want to click 'Enter' and for all that information to be converted to one of the pages within my application.

Here's an easier look at it...
There are LPs that have 10" and 12" sections.
There are singles that have 7" and 12" sections.

In the 'Add New Record' page I want to also have a drop down list with the above elements in, once 12" LP is selected and all the other forms are filled in and I click 'Enter' - I want the application to send it to the 12" LP section of the application.

View 11 Replies

VS 2010 - Make Small Pause Before Form Submission

Jun 13, 2011

I have a little project but ive come to an error. What it does: It goes to a site, fills a form and then submits it. But the submit is too fast. I want it to fill in info, then wait 3 seconds and then submit it.

Here is the
WebBrowser1.Document.All("user[screen_name]").SetAttribute("value", TextBox4.Text & intcount)
For Each element As HtmlElement In WebBrowser1.Document.All
If element.GetAttribute("className") = "submit button promotional" Then
element.InvokeMember("click")
End If
Next
I want it to have a little pause of 3 seconds after the intcount).

View 6 Replies

VS 2010 Form A Code For A Small Arrays Manipulation?

Dec 25, 2011

I need help to form a code for a small arrays manipulation. The input data are known: they are two integers "N" and "s". An integer "N" is always divisible by 4.I need to create an array of "N" members, by repeating (N/4 times) this sub-array: 1,2,2,1 (always is the same). In the picture, this is shown in blue. Then I need to add the same array to the existing array, but shifted for "s" places (red array). The result is "yes" if each sum in new columns is always the same (3). Otherwise the result is "no." note there is no need to draw or display something (DGV, table ...). The required result is only "yes" or "no".

View 8 Replies

VS 2010 Creating A Shift Rota System For A Small Number

Dec 7, 2010

i am creating a shift rota system for a small number of staff basically there is a 3 week rota

week 1 - late
week 2 - early
week 3 - off

i am getting confused on how to calculate which week the member of staff is currently on eg week 1 / 2 / 3 i think i need a datediff with a mod to calculate it but thats where im getting confused (if im even right on that part)

View 3 Replies

VS 2010 - Create A Small Game In VB2010 - Creating A GIF And Placing It In The Picturebox And Moving It

Aug 9, 2011

I'm trying to create a small game in VB2010. The gameplay is as follows:

civilians would walk/stand in a room/street and suddenly an evil character would pop from the ground/wall. This evil character would suddenly vanishes too. So, the player has to shoot it to kill the character. The evil character, civilians, etc. would be random. Also, there would be sound effects too. That is the popping up of the evil character, it's voice, the civilians voice, etc. I'm trying to make it as simple as possible but without degrading the quality of the game play. I think, I could somewhat create the graphics for the characters, scenes, etc. and can get the sound effects recorded.

So, the difficult part is,[ ] how could I make it a smoother for playing the game ?
[ ] what would be the best way to do animations ?
[ ] Creating a GIF and placing it in the picturebox and moving it ?
[x]how to play the music in background and at the same time play sound effects on certain instance ?

View 2 Replies

Get Permission From Microsoft To Develop Applications For Small Local Firms Using Visual Studio 2010?

May 13, 2010

I would like to know if I need to get permission from Microsoft to develop applications for Small local firms using Visual Studio 2010.

View 6 Replies

VS 2010 Array - Small Report Card Project - Pull 5 Students With Each Student Having 5 Test Scores A Piece

Jan 13, 2012

I'm basically trying to do a small report card project. I only need to pull 5 Students with each student having 5 Test Scores a piece. The full Code of what I have for the submit button is below. I have actually 3 questions.

1. I always seem to have trouble with them unless I initialize them when I dim them. Is there a better way than below

2. The below code works really well for Student 1 and all 5 test scores. Rather than do that code 5 times though, what is the best way for me to basically state that IF dblStudent1(intMax) = 4 Then Change dblStudent1(intMax) to dblStudent2(intMax) etc.

3. Would this be better suited towards a multidimensional array ?

Private Sub btnEnterGrades_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnEnterGrades.Click

Dim strStudentNames() As String = {" ", " ", " ", " ", " "} ' Holds the 5 Students Names
Dim intMax As Integer = (4) ' Place Holder for Student Number

[CODE]...

View 8 Replies

VS 2010 Reading Microsoft Word In VB 2010 And Extract Words

Mar 18, 2012

I'm having a little trouble trying to read a word document in vb. how to get the text out of the word document would be great.

View 4 Replies

VS 2010 : Open Button Menu In Toolbar When Click In ALL The Button Not Only In The Small Arrow?

Sep 7, 2010

the menu in the button is opened with click in the small down arrow, but NOT if click in the button image.

View 6 Replies

VB 2010 Reading XML?

Feb 15, 2012

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="plugin.video.stagevu"
name="StageVU"

[code]....

View 2 Replies

VS 2010 Reading From A Shortcut?

Jan 23, 2011

Does Anyone know a Way of reading from a Shortcut File (.lnk) ? or Does anyone know the Format of shortcuts (.lnk). I have Tried the windows script host object model COM Component But I can't Get It To Work.

View 9 Replies

VS 2010 Reading Registry Key?

Feb 8, 2011

I am trying to loop through a key to get all values. For some reason this returns nothing

Dim RegKey2 As RegistryKey = Registry.LocalMachine.OpenSubKey("SoftwareCompanyStartup")
Dim subname() = RegKey2.GetSubKeyNames
MsgBox(subname.Length)

[code].....

View 2 Replies

VS 2010 Reading The CPU Temperature WMI?

Jul 7, 2009

Vb.net
rivate Sub CPU_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CPU.Tick

[code].....

View 6 Replies

2010 Reading Configuration Settings?

Aug 23, 2011

Coding in VB.net in VS 2010. I have:Imports System.Configuration and I added a reference to System.Configuration.

When
**MsgBox(ConfigurationManager.AppSettings("sDBName").ToString)**

[code]....

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved