hello :) i wanted to know, how can i change the shutdown mode of my Windows Form Application, @ MS Visual studio 2010. i.e, my application should exit only when i close my last form.. & not when the main form is closed.. i remember, in .NET 2003 windows form application, i used to write following lines to move to forms to forms: private void button1_Click(object sender, EventArgs e) { All_Deposits ad = new All_Deposits(); ad.Show(); this.Close(); } this always worked perfectly.. but i'm in visual studio 2010, application exits, soon as this.Close() is called for the main form... so …

Member Avatar
Member Avatar
+0 forum 3

Hi Everyone, Wanted to share a bit on this subject as I've had to recently make some of these changes. Along my way I found a few sites that basically suggested moving all mailboxes off the database, dismount, delete and create a new database. Simple enough, however I didn't want to do this. As you may or may not know, by default Exchange installs the database at the following location: C:\Program Files\Microsoft\Exchange Server\V14\Mailbox\Database1\Database1.edb Log files would go: C:\Program Files\Microsoft\Exchange Server\V14\Mailbox\Database1 What if you wanted to change the location or name of those files? Well thankfully this is super easy with …

Member Avatar
+0 forum 0

I want to put the path and name of a spreadsheet, the page and number of pages and the date and time into the footer(s) and display it in Times New Roman 6 pts. I made the following macro: Range("A1").Select ActiveWindow.View = xlPageLayoutView` Application.PrintCommunication = False With ActiveSheet.PageSetup .LeftFooter = _ "&""Times New Roman,Standaard""&6 &Z&F" .CenterFooter = _ "&""Times New Roman,Standaard""&6 Page &P of &N" .RightFooter = _ "&""Times New Roman,Standaard""&6 &D &T" End With Application.PrintCommunication = True ActiveWindow.View = xlNormalView Range("A1").Select When I start the macro only a part of the centerfooter is filled. When I start the same …

Member Avatar
Member Avatar
+0 forum 3

I have an Excel spreadsheet that contains names. addresses and various other information. I have word wrap set for all cells in case some new data gets entered that's long. If I sort the data, the data that was in the cells that were word wrapped will end up in cells not word wrapped. In other words the cells formatting as far as word wrap goes does not go with it, or Excel doesn't recognize that it needs to be wrapped. I'm not sure if this is a real problem or a normal function of Excel. I have to highlight …

Member Avatar
+0 forum 0

![ef58374af47c49d4351e49bbebe0a030](/attachments/large/3/ef58374af47c49d4351e49bbebe0a030.jpg "ef58374af47c49d4351e49bbebe0a030") I have even uninstalled and reinstalled the visual studio 2010 but still the error comes. Please Help me to overcome this thank you

Member Avatar
Member Avatar
+0 forum 2

The ip address of our sharepoint 2010 database server has changed, so how do we edit the new IP so that it points to new ip?

Member Avatar
Member Avatar
+0 forum 3

Hello everyone, I'm writing up a new application that instead of using microsoft as a server, I'm using a linux server with a database in it. The database was setup, the tables were set up, and access was granted in mysql. The issue I'm having is that I keep getting an error message with error 25 stating that "A network related or instance specific error occurred." then it goes down to say error -25 connection string is not valid. This is the connection method that I am utilizing: On Error GoTo errorhandler Dim con As New SqlClient.SqlConnection("server=192.168.0.23:3306; database=test; user ID=root;Password=password;Integrated …

Member Avatar
Member Avatar
+0 forum 2

Hi, In an application im making, I need to square a decimal value in a text field to then use in other calculations later, but when the compiler squares the value it ignores the decimal points, treating 1.85^2 as 185^2 and returning 34225 rather than 3.4225. What am I doing wrong? Here is the code: Private Sub btnCalculate_Click(sender As Object, e As EventArgs) Handles btnCalculate.Click Dim heightSquared, height As Double height = txtHeight.Text heightSquared = (height * height) lblBMI.Text = heightSquared End Sub This is the test code im using, and have tried using height^2 and got the same result.

Member Avatar
Member Avatar
+0 forum 10

hi I'm having problems in my crystal report where all the selected rows in my datagrid will show up in my crystal report but instead it showing me an exception selectcommand.connection has not been initialized here's my code in my form where the datagrid is: Dim cmd As OleDbCommand = New OleDbCommand("SELECT Data1.ID, Data1.DateFile as [Date File] , Data1.Plate as [Plate #], Data1.Driver as Driver, Data1.EmpID as EmpID, Data1.OdometerBefore As [Odometer Before], Data1.OdometerAfter As [Odometer After], Data1.Gas as Gas, Data1.CostofGas as [Cost of Gas] FROM Data1", con) con.Open() adpt = New OleDbDataAdapter(cmd) 'Here one CommandBuilder object is required. 'It will …

Member Avatar
Member Avatar
+0 forum 2

Hi all, I have installed SAP Crystal report for Visual Studio 2010 successfully on PC(.NET4.0, Windows Vista, Visual Studio Ultimate 2010). Now When I am going to add rpt file in my existing project, It automatically create .mht file and not .rpt file, that .mht file containing instructions and link to install SAP crystal report which I have installed already. Anyone can tell me, what I have to do to create an .rpt file to generate Crystal Report?

Member Avatar
Member Avatar
+0 forum 2

Can anyone help me making this Gasoline Meter Simulator? Here's the problem, Using .NET construct an application that will simulate Gasoline Meter. The users allows assigning the amount of gasoline per liter. The user can select whether by liters or by amount. If the user select liter, then he will key in the number of liters and will display the total amount or when the user select amount, the user will enter amount and will display the number of liters for that amount. Your application should display the amount and the liters in digital format like in the gasoline meter. …

Member Avatar
Member Avatar
-1 forum 1

Hey what's up everyone? I have a script here that works when i execute it from command line, and when I double-click it. Now, there is something interesting going on here. 1) When the program is executed by process.start it does not load (even when called from cmd.exe /c ...) 2) When the program is executed with system.diagnostics... it loads but does not supply ANY output. 3) Created a terminal program for vb console; it gets executed and then it executes the file... no output. When you physically click on the exe files I created and they in turn shell …

Member Avatar
+0 forum 0

Hi Everyone, Been a few years since I had to post anything here so I'm glad to be back. I've been asked to do a report to show vouchers that have been issued and presented for July (this year and last year). I have done this SQL: SELECT tblOutlet.OL_NAME, Format([VI_TRANSACTION_DATE_TIME],"mmmm yyyy") AS MONTH_NAME, Count(tmpVoucherIssues.VI_ID) AS ISSUED, Sum(IIf(Nz([VH_ID])>0,1,0)) AS PRESENTED FROM (tmpVoucherIssues LEFT JOIN tblVoucherHeader ON tmpVoucherIssues.VI_FORM_NUMBER = tblVoucherHeader.VH_NUMBER) INNER JOIN tblOutlet ON tmpVoucherIssues.VI_OL_ID = tblOutlet.OL_ID GROUP BY tblOutlet.OL_NAME, Format([VI_TRANSACTION_DATE_TIME],"mmmm yyyy"); Returned Data: Retailer 1 July 2012 269 202 Retailer 1 July 2013 285 173 Retailer 2 July 2012 170 112 …

Member Avatar
Member Avatar
+0 forum 4

hi, i'm making a library database and if the user returned the book passed the due date given.i want to find the day difference and multiply that to a given fine amount.like this daydiff = due_date_of_book - date_returned fine_amount = daydiff * amount thanks in advance

Member Avatar
Member Avatar
+0 forum 3

Dear Experts, I am new to asp.net c# but proficient in c++. In asp.net c# i have to open a new page in new tab with pdf file on gridview1 column click event. so give me guidelines to do this. Thanks and regards, Pardeep

Member Avatar
Member Avatar
+0 forum 2

Hey guys, The company I work for is going through a Cross Forest Exchange (both Exch 2010) and AD migration (2003 to 2008 R2). Some users in the TARGET domain were receiving NDRs (Non Delivery Report) in Outlook when responding to old emails from users still located in the SOURCE domain, or when using the N2K cached addresses for those same SOURCE users. This was only happening with 2 scenarios: 1. There was no **mailbox user** or **contact** in the TARGET exchange organization for that recipient. 2. There was a contact for that recipient in the TARGET exchange organization, however …

Member Avatar
+0 forum 0

I've built a SQL report in MS SQL Server Report builder for our ticketing backend. I want to be able to do custom reporting. I've created this report by using the following query: SELECT SR_Service.Date_Closed ,SR_Service.Date_Entered ,SR_Service_SLA_Workflow.Responded_Minutes ,AVG(SR_Service_SLA_Workflow.Resolved_Minutes) AS Avg_Resolved_Minutes ,SR_Service.Hours_Budget ,SR_Service_SLA_Workflow.SR_Service_RecID AS [SR_Service_SLA_Workflow SR_Service_RecID] ,SR_Service.SR_Service_RecID AS [SR_Service SR_Service_RecID] ,SR_Service.Company_RecID AS [SR_Service Company_RecID] ,Company.Company_RecID AS [Company Company_RecID] ,Company.Company_ID FROM Company INNER JOIN SR_Service ON Company.Company_RecID = SR_Service.Company_RecID INNER JOIN SR_Service_SLA_Workflow ON SR_Service.SR_Service_RecID = SR_Service_SLA_Workflow.SR_Service_RecID GROUP BY SR_Service.Date_Closed ,SR_Service.Date_Entered ,SR_Service_SLA_Workflow.Responded_Minutes ,SR_Service.Hours_Budget ,SR_Service_SLA_Workflow.SR_Service_RecID ,SR_Service.SR_Service_RecID ,SR_Service.Company_RecID ,Company.Company_RecID ,Company.Company_ID With a few filters set on company must not equal (some inactive companies i dont …

Member Avatar
Member Avatar
+0 forum 2

is git repository arec supported of visual studio 2010 ?

Member Avatar
+0 forum 0

You know how if you open up options in many applications you are no longer able to click to the side of the program until you have either hit ok or cancel. I was wondering if this is possible to do with a program in visual basic, and if it is possible how exactly to make it happen.

Member Avatar
Member Avatar
+0 forum 6

Hey everyone, I hate posting in forums asking people for help, and then searching for hours and wanting to throw my computer out the window because I can never seem to find the resources I need for programming. I feel that in vb 6 everything was well documented and now here in 2010 it's harsh and nothing is well documented. Can anyone suggest books on win32 api programming? Or, any books on vb 2010 API programming at all? I would appreciate it more than being answered in the forms and posting every time I have a problem. Regards, amvx86

Member Avatar
Member Avatar
+0 forum 5

I have a form with a calendar and a textbox with 2 buttons. The calendar is the vb 2010 tool and the textbox overlaps it so that when a day is selected on the calendar you can make an appointment for that day. i have a save button and a back buton... I am having trouble with the save feature... there is always a file error... here is my code [CODE] Imports System.IO Public Class Form2 Dim m As MsgBoxResult Dim t As String 'Private cal As String = "C:\cal.txt" Private Sub MonthCalendar1_DateSelected(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DateRangeEventArgs) …

Member Avatar
Member Avatar
-1 forum 2

On a site I am helping develop, there seems to be a problem with code executing while not logged into Sharepoint 2010. When logged in as administrator, everything works fine on the site. Code executes as it should. However, when we visit the site without logging into SharePoint or as an account that has no privilages (same as not logging in), none of the server side code executes for certain pages. It's really weird how that happens. Client side code still executes without a problem, but when a postback call or an OnClick is made, the server side code does …

Member Avatar
Member Avatar
+0 forum 1

I am working on a keyboard teaching aid similar to mavis beacon. With the following code i am able to detect if the enter key is pressed on the keyboard. If e.KeyChar = Microsoft.VisualBasic.ChrW(keys.enter) Then MsgBox("Enter key is pressed") End If but what i want to do is that i want to make the keyword "keys.enter" to become a variable name so that the whole code can be called upon as a subroutine to handle all types of letter being pressed by the user so that i dont have to repeat the whole code for the keys needed. Thanks in …

Member Avatar
Member Avatar
+0 forum 5

Hi Guys... Putting together a Tiny little app which shows VPN Details for use 'In-House' but for some strange reason my DataSet won't fill? Can anyone spot the mistake? :S private void Form1_Load(object sender, EventArgs e) { //XML Load of Document. This loads the XML Document and the value of a Single Node then inputs this to a text box// XmlDocument doc = new XmlDocument(); doc.Load("C:\\vpn.xml"); XmlNode node = doc.SelectSingleNode("/DataBases/VPN_Access/vpn_DB"); this.txtBoxDebug.Text = node.InnerText; //Creates new versions of the Connection string and Data Set// con = new System.Data.OleDb.OleDbConnection(); ds = new DataSet(); //The actual connection to the database// con.ConnectionString = "PROVIDER=Microsoft.ACE.OLEDB.12.0;Data …

Member Avatar
Member Avatar
+0 forum 11

Hi guys, I'm hoping you can help here with a problem I am having with regards to filling a Dataset. It was working fine but have had to amend the code to read a different data set and structure. Basics are 2 tables.. one customers, 1 orders. Joined on there Account Reference. SQL seems to be working correctly. **See below:** SELECT cashID, cashQTY, cashDescription, cashSupplier, cashDate, cashCost, cashSell, CashAccountRef_FKID from cashOrders INNER JOIN CashCustomers ON cashOrders.CashAccRef_FKID=cashCustomers.CashAccRef WHERE cashCustomers.CashAccRefID = @HOME But I get "No value given for one or more required parameters." DB table layout seems correct. I'm sure Im …

Member Avatar
Member Avatar
+0 forum 9

Ok, so I am working on the hangman game for a school assignment. I have everything doing what I want except for one issue: No matter how many letters are in my word, the number of dashes is always one more than I need. For example: say the word is apple, I want ----- which will fill in thus: a--le, etc. However, I am getting this ------, which fills in thus: -a--le. I cannot figure out why the additional dash is being appended. I would appreciate a second set of eyes. Probably it will jump out at ya. Here is …

Member Avatar
Member Avatar
+0 forum 3

I have 2 website in Sharepoint 2010 There is only one login for both websites. I want to put provision that some users can only use second website and some can first website. so after logged in by 1st type users they will redirect to first website and same thing for second type users for second website. Hope you understood. Please help me. Its little bit urgent and if possible then explain me in steps those i need to follow in Sharepoint 2010. ok? is there further explaination want? Thank you in advance.

Member Avatar
Member Avatar
+0 forum 1

I'm newbie in C++ programming and I want to declare a constructor from following code in my main however I'm completely confused about it. Here is the code: #include <vector> using namespace std; template <typename HashedObj> class HashTable { public: explicit HashTable( const HashedObj & notFound, int size = 101 ); HashTable( const HashTable & rhs ) : ITEM_NOT_FOUND( rhs.ITEM_NOT_FOUND ), array( rhs.array ), currentSize( rhs.currentSize ) { } const HashedObj & find( const HashedObj & x ) const; void makeEmpty( ); void insert( const HashedObj & x ); void remove( const HashedObj & x ); const HashTable & operator=( …

Member Avatar
Member Avatar
+0 forum 1

Hello everyone I've been searching for help for a long time and still can't find somebody to solve it for me :(, The problem is im not good at explaining it , But here is the problem I'm creating an application in visual basic 2010, and i was aiming to use the The windows command "cmd" inside of the application that im creating in vb, For example, If i wanted to use the cmd on windows, i can go to start menu+search "cmd" and then start using it, But what i wanted it is instead of having to go to …

Member Avatar
Member Avatar
+0 forum 6

How can I attach the OCX of WMP to my dialog based application? I want to use the methods of IWMPControls interface such as play() and pause(). I want to call these method by clicking the button given in the dialog box. Its Urgent...

Member Avatar
+0 forum 0

The End.