How Many 'odd Things' Happen
Jun 27, 2012After developing using the Excel Interop with .Net for a while, i have become increasingly annoyed with the how many "odd things" happen - such as this question i posted earlier.
View 6 RepliesAfter developing using the Excel Interop with .Net for a while, i have become increasingly annoyed with the how many "odd things" happen - such as this question i posted earlier.
View 6 RepliesIf NewEntryName.Text = "" And OpenFileDialog1.FileName = Nothing Then MsgBox("Please choose a name for your game.", vbExclamation) MsgBox("Please find your game.", vbExclamation) Else Button1.Text = NewEntryName.Text
[code].....
How to know if theres a changes happen in database?
View 10 RepliesOk lets say i have a textbox with five ones. How do i make something happen for every 1 in the textbox?
View 2 RepliesI'm wondering what would happen if my program was used say, on a computer with a chinese keyboard? I assume the text box controls will be fine, but sometimes I compare english strings.. such as "!" and "@" and a few other things.
View 3 RepliesI have a form with seven tickboxes - one for each day of the week - each one saved in my.settings.monday, my.settings.tuesday, etc Now I need to check if something should happen today and the code I'm using (below) seems very longwinded. Can anyone help 'tidy it up'?
If Now.DayOfWeek = DayOfWeek.Monday And My.Settings.monday = True Then
'do it
End If
[code]....
what MSDN is trying to indicate here on this tutorial, ref this page: Walkthrough: Creating a SQL Server Express Database.I cannot make this happen in VS2008 SQL Server 3.5 ? To create a relationship between the tables created in the previous step 1.Right-click the Database Diagrams node in the SampleDatabase.mdf node in Server Explorer/Database Explorer and choose Add New Diagram.
2.Click Yes if a dialog box opens asking to create the required database objects for diagramming.
3.Add the Customers and Orders tables to the diagram.
4.Close the Add Table dialog box.
5.Drag the CustomerID column from the Customers table onto the Orders table.
6.Verify that the Customers table is the Primary key table and the Orders table is the Foreign key table, and verify that the CustomerID column is selected for both tables.
7.Click OK to close the Tables and Columns dialog box.
8.Click OK to close the Foreign Key Relationship dialog box and create the relationship.
9.Select Save Diagram1 from the File menu.
10.Leave the default name and click OK.
11.Click Yes in the Save dialog box.
I can create relationships but not the Diagram ?
I get the following Error: when Using The program ... Didn't Used to happen before ...
This Is the Source Code :
Form2
Form1
I Have tried Different Stuff But none of Them work.
Strange problem: This code gives the appearance the I have 'Split' 1 button into 2 (B -> B(1) & B(2)) and then can 'Join' them back(B(1) & B(2) disappear and B returns). All this works fine, 'cept when I try to declare the only container where this can happen. The 'Control-S' part works as long as the lower portion is commented out, when I uncomment the lower portion 'Control-J' neither part works - the code skips down to the msgbox -
If e.Modifiers = Keys.Control AndAlso e.KeyCode = Keys.S Then
If DirectCast(sender, Button).Parent Is flp1 Then
MakeButton(sender.text & "(1)") 'sub that makes the button passing the text thru
[code]....
I have a website that i've been working on for about a year now.Recently, it's started throwing System.AccessViolationException every now and then, in my dev machine, mostly, when I was away from the machine.I haven't changed anything on the server code in weeks, since I've been working 100% on the Javascript part, and this error started appearing recently.
Also, the code I'm doing is 100% managed. I'm not doing any interop, calling strange DLLs, nothing. It's pure VB.Net, so I don't see how I could be generating one of these myself.Now, I've been using this new machine for a couple of months, and it's not working 100% right. Every 2 or 3 days I'm getting a blue screen for example. I haven't had time to diagnose it properly, but I'm suspecting I may have a faulty RAM chip.
[Code]...
how to make a button get clicked when a key is pressed. The key I want to press is ctrl and I want it to press Button1.
View 5 Replieshow to make an event happen when user presses a key ... let's say space or whichever...and the other thing - how to display a folder on my hard disk ("E:Music") in a ListView box in my program?
View 7 RepliesI have created this user control.
Imports SAAQ.Utl.W00692BaseControle
Imports System.ComponentModel
Imports System.Web.UI.WebControls
Imports System.Web.UI
[code]....
However, the method Button_Click is never called when i click on of the button thatt his method handle. The specifics events arent raised.
I have made 2 application server/client. I want to remote the client from server for example if I press 1 then one action should happen in client, if 2 then another action should occur. How can I do it? I think I should use select statment
Select case a' a dim as integer
case Keys.1
frmmain.axwindowsMediaPlayer1.ctlcontrol.play()
end select
is this right ?
I'm attempting to create the sending path files from each rows of Datagridview to USB removable Drive. Below the code i''ve got from Shanks it's just show the name of usb drives but when i clicked on sendto not work.
[Code]...
I'm beginner on VB 2010 and I wanna write an app that can downloads file My question is: If it gives me 404 or 403 or whatever, I wanna let the app ignore that message, instead of a webexception error Note: I've already know how to download file with VB
View 2 RepliesI have this function I put together with help online and it works just fine until the program runs over night. I don't think it is night time that is the problem, just the long run time. I take bitmaps and place text on them then convert them to icons so that the image can be used on the system tray.
[Code]...
i'd like to know how to make an event happen when user presses a key ... let's say space or whichever...and the other thing - how to display a folder on my hard disk ("E:Music") in a ListView box in my program?
View 1 RepliesLike the browser url is
[URL]
how can i change when button press it will change the url: [URL]to : [URL]it will change M. to WWW.
I'm trying to compare values from a single xml file.
Here is my xml file set up
<?xml version="1.0" encoding="utf-8"?>
<Updater>
<version>
[Code].....
When people use if statements on booleans, they either do this
if booleanStatement = true then
if booleanStatement then
I know that they both accomplish the same thing, but is one better than the other? Outside of 'good programming etiquette'
Im 16 and have been working with Vb for a few months when i have time. I am trying to make a text box that when the user of the program types into it what they have typed will be sent to my email with a push of a button...Im having alot of trouble because i dont know how to do this.
View 1 RepliesI want to make it so when I scroll down on one listbox view, it will do the same on the other one. How do I do that? I have one listbox that lists usernames, and the other one that does the message... so we don't have to worry about one having a longer height than the other one.
View 7 RepliesA few years ago I have been busy creating this application but it didn't succeed, now Im coming back to it and similar problems occur. Basically I use SetPixel on a given window to draw a line, work fine, but the line goes away as the window redraws itself.The problem: I have been putting timers and threads on it to make sure the line is being drawn. Is there any way to make a loop to make a certain thing happen about 10-30 times without taking in too much memory/CPU?
View 7 RepliesOK, Well I'm creating a "Card" creating app. The app will let you type in the name you want in the name field and then select a picture. But the problem is, is the saving. I want the card to be transparent like the original. The original is just a blank card. And theres a picturebox on the form that shows the original transparent image, and then a label over the name tag part of the original transparent image, and then another picturebox over the original pictures box for the picture, everything works for designing and it looks great after your done designing the card. But saving will not be transparent and it will not blend with the background.
How do I add onto the image and still keep the transparency of the original and then save it?
This is my code:
Label1.SendToBack()
PictureBox2.SendToBack()
Dim Card As New Bitmap(Panel1.Width, Panel1.Height)
[Code]....
I have a rather odd thing happening with an Excel WorkSheet that I am creating through .Net.I load up an existing workbook
Dim _xlApp As New Excel.Application
Dim _xlWorkbook As Excel.WokBook = _xlApp.Workbooks.Open(_templateFileName)
set it to be visible before populating it (for debugging purposes)
_xlApp.Visible = True
I then go on to populate the existing template.
Private Sub GenerateOceanFreightGrid()
Dim columnCount As Integer = 4 ' _standardColumnCount
Dim columnInsertPosition As Integer = 5
[code]....
When i set a breakpoint on the "Private Sub Gen.." line, and step through the code line by line, it inserts a new column for each variable declared, so in this case it will insert two columns before it even hits the "If MyBooleanValue()..." line (I can watch it actually happen due to the Excel app being visible). However, if i dont set a breakpoint and just let the code run straight through this doesnt happen.There is no multi threading happening or anything else that i suspect would have any impact on the code.
I am wondering if it is possible to drag and drop a control, lets call it a button, and drag it from a FlowLayoutPanel and drop it in a diff FlowLayoutPanel?
View 2 Repliesi need a code which can look for a special characters like " "(double quotes) ,';' (semi colon)...
i have a text box to look in
I have a pos system im making and all works well except 1 thing
so close yet so far
my problem is when printing the items then qty then price, i need them all to line up nicely (well qty mainly)[cod]e...
I have a class that wraps up a few methods (e.g. OpenPort, SendMessage etc.). Some of the methods accept a number of parameters and return a value (e.g. SendMessage accepts port and a string that is the message to be sent and returns true or false depending on whether the mesage was sent successfully or not). I create an instance of my class when my form loads and I call the various methods throughout the lifetime of the app.In my SendMessage method there is actually a few steps that involves a delay as I send commands to an instrument and wait for a response. I'm using the AutoResetEvent class to synchronize things. Whilst this works ok I've noted that the UI is unresponsive during the wait period.
Public Class MyClass
Private _receiveNow As AutoResetEvent
Public Function OpenPort(ByVal portName As String, _
[code].....