VS 2010 Merging Two Forms, Or An Alternative Method To The Topic?
Oct 17, 2011
The only way I can think of to display this moustache is by creating a new form and locking it to a certain point, that all works.My problem is with all the events surrounding this. E.g. minimizing the actual application etc...I know how to handle those in code but that is painstaking as I have to think of every possible event which would result in a problem then manually code for the moustaches relative actions. So, I would like to know:
View 2 Replies
ADVERTISEMENT
Sep 19, 2011
What would be an cleaner alternative for a code like this.
Dim dAdapter As New SqlCeDataAdapter dAdapter = New SqlCeDataAdapter("SELECT name FROM Users WHERE username='" & GlobalVars.user & "' AND category = '1'", ConnectionString)
[Code]...
View 3 Replies
Nov 15, 2009
I am currently using the registry to get file descriptions for files. As an example, so that a DOCX file will return the description "Microsoft Word". I am doing this from the HKEY_CLASSES_ROOT registry key.However, registry access is extremely slow, and I need to do several thousands of these. Is there an alternative way to do this?
View 6 Replies
Feb 5, 2012
I found this code below to find the external IP address of the system it is run on, but I was wondering is there another method of finding this information out without the need of using this external website incase it isnt operational anymore.[code]
View 3 Replies
Apr 18, 2012
With C# anonymous delegates, we can avoid declaration of extra method, I know in VB.NET they're not available, but is there a design pattern that I can use so that I can avoid writing an extra method each time? I need it for SPSecurity.RunWithElevatedPrivileges which will be used a lot of times in our code.
[Code]...
View 1 Replies
Mar 29, 2009
ive been trying to get statusstrips merging so i can click a label to bring the child form to the front when i have multiple childforms open. I have this code which does work but on closing it leaves the label on the mdiparent and also im struggling with the bring back to front code. i dont want it to open another form just bring it back to front. I have statusstrip set to visible false on my childform. heres some code for merging, this is in mdi parent:-
Private Sub Form1ToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Form1ToolStripMenuItem.Click
Dim NewMDIChild As New Form1
NewMDIChild.MdiParent = Me
[code].....
and some for bring back to front, this is in form1:-
Private Sub ToolStripStatusLabel1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ToolStripStatusLabel1.Click
Dim MDIChild As New Form1
[code]....
View 2 Replies
May 17, 2010
Trying to get it to behave like C#, where there is a Program class with a static Main method.However, in the project properties, I cannot set Program.vb to be the startup object, only the forms (it is a forms application).
View 2 Replies
Mar 27, 2009
I've got an app which uses a background worker to copy files. It works fine but some files are quite large and it "appears" as though the app isn't doing anything. Is there an alternative to the File.Copy method of copying files so I can report on the progress of individual file copies, like the percentage complete?
View 19 Replies
Oct 25, 2010
i have made 2 seprate programs, is it possable to make a link between them. i have a "launcher" which is mainly for launching games and a web browser, soon i will have a music player also but at the moemnt i just want to merge the 2 progs i have atm... i have tryed opening 1 solution (launcher) and then i clicked file > open project and changed the option to "add to solution" instead os "close solution"
View 2 Replies
Dec 1, 2011
I need to take an existing HTML file, which we want to use as a template, and insert another HTML, like an email signature, somewhere in the middle of it. Does .net have any classes that would make this possible?
View 1 Replies
Apr 6, 2011
I'm having a speed issue with some drawing in a program I am working on. I have narrowed down the speed issues to a single function. The cost of this function is such that I really need to find a way to make it faster, and that should be possible.
The function is this:
Public Shared Sub SuperImposeFishAni(ByVal bckGrnd As Drawing.Bitmap, ByVal dtop As Integer, ByVal dleft As Integer, ByVal dwidth As Integer, ByVal dheight As Integer, ByVal ImageInQuestion As FishImages)
Dim tp As Integer = 0
[code]....
This is actually a holdover from an earlier design that included animation, but that's probably irrelevant. What is happening here is that a bitmap (bckGrnd) is passed to the method along with the left, top, width, and height that are to be drawn, and a single variable to select which image to draw.The image to draw is chosen in the select statement, which makes up the bulk of the method. The guts of the issue are the last few lines.
Through profiling, I was able to determine that if this method is called, the drawing takes over .25 seconds, whereas if this method is not called the same exact drawing takes less than .07 seconds. Therefore, I am getting a significant slowdown from this one method, which surprises me, as it is pretty straightforward. It pretty much has to be this method, too, because I can perform the same actions with or without this method being called. It is called if a Boolean is True, which is about as fast a test as can be performed. If the Boolean is False, this method is not called. The >3x difference in timing is with or without this method.
The point behind the method is that the image from the select statement has to be superimposed onto the background image, and the size of the area, as well as the location, that it gets superimposed onto is almost totally arbitrary, which is why the size and location has to passed to the method.Technically, choosing the bitmap to merge in (the select statement), could be avoided, but I doubt that is the issue.
View 21 Replies
Nov 12, 2009
Does calling the Dispose method on a Windows.Forms.Timer call it's Stop method? Or should I stop the timer before I dispose it?
View 5 Replies
Apr 14, 2012
we are new to Visual Basic Programing, We are working on a project, which has modules. My team worked on these modules and prepared 3 separate Visual Studio Projects. Now, I want to combine then into one Visual Studio Project for Integration purposes
View 2 Replies
Jan 10, 2011
I created an app which loads specified image to the picturebox and allows to draw on it:
PictureBox.ImageLocation = "dummy.jpg"
Dim g As System.Drawing.Graphics
Dim pen1 As New System.Drawing.Pen(System.Drawing.Color.Green, 4)
[code].....
View 2 Replies
Nov 30, 2011
I have a parent MDI form and several MDI children. All have menustrips and toolstrips. The merging of the menustrips was no problem at all but I'm trying to do the same thing for the toolstrips, but now it's a no go. The toolstrips are staying separated. Is it possible to merge toolstrips?
View 1 Replies
Apr 19, 2011
I have a tricky piece of code in C# that I need translated to VB.NET. That's not usually a problem, as I can do it by hand or using one of the many conversion websites. However, this particular piece of code uses the Yield keyword; and I don't know how to work around that. [Code]
View 10 Replies
Oct 28, 2009
the name pretty much says it all, I need a more reliable code then AppActivate that does the same thing. I need it to activate a program I tell it to, perferribly without calling the process id.
View 6 Replies
May 12, 2011
I am Using Visual Basic 2010 Express. And the Express Version Does Not have a MicrosoftReportViewer Facility. But is there an Alternative that can be used. I know Monies have to be made But Surely there should be an alternative For the Microsoft Visual Studio/Basic 2010/2008 Express User.or is there another way to create a reportViewer in Visual Studio/Basic 2010 Express. I have Downloaded the MicrosoftReportViewer Redistributable from
[URL]
and I run the setup but it does not work. I know there are other apps that might help me like crystal report. But I want to just use Microsoft version as it is a Microsoft Program.
View 2 Replies
Feb 19, 2012
I am enrolled in a college course using Visual Basic 2010 Express.My current assignment calls for the following:Create a small program that allows a user to enter the total amount of purchases for the purpose of calculating rewards points based on the purchase totals vs. their membership level of basic, standard and premium.The user selects their membership level via 3 radio buttons, basic, standard or premium.
The total of purchases and their rewards points depend on the membership level. Example, if you are a basic customer and your total purchase is under $75, you receive 5% in rewards points (70 x 0.95). Additionally, if the total is between $75 and $149.99, you receive 7.5% rewards.Here is what I have so far, but I am getting errors on the ElseIf statements:
If basicRadioButton.Checked = True And totalTextBox.Text < 75 Then rewards = total * 0.95
ElseIf basicRadioButton.Checked = True And totalTextBox.Text > 74 AndAlso totalTextBox.Text < 149.99 then rewards = total * 0.925
ElseIf basicRadioButton.Checked = True And totalTextBox.Text > 150 Then rewards = total * 0.9
[code]....
View 5 Replies
Jul 28, 2009
just wondering if it is possible to add a method to all forms in my project without having to do it on one form and Inherit all my other forms from that one
View 3 Replies
Jun 12, 2011
What's the equivalent method in .NET of the Picture1.Scale (0,0)-(10,10) method in 6.0?
View 2 Replies
Oct 24, 2010
I want to code auto reply my topic at other forum.i know howto login a website
View 1 Replies
Jan 29, 2012
I have a Application that Crypts all Files in a Directory and the Subdirectories
Public Shared Sub CryptAllFiles(ByVal crypt As Object)
'check if this dir exists
Dim vDirInfo As New DirectoryInfo(vPath)
If Not vDirInfo.Exists Then Exit Sub
'get all files' sizes in current path
[Code]...
View 3 Replies
Apr 9, 2010
I have a dataset that pulls information about topics. However, I need to filter the information so i only get the topics with certain Topic Codes (These topic codes are in the form of an array).
Me.TblTopicsTableAdapter.Fill(Me.MainDataSet.tblTopics)Right, let me try and explain better.
I have an array named COURSE_Topics. This array contains topic codes as string elements.Currently, my table adapter query looks like this:
SELECT [Topic Code], TopicName, NoOfCourses, Duration, StartDate, EndDate, [Level] FROM tblTopics
At the end of that query i need to add a WHERE [Topic Code] = - then list of topic codes in the array.
View 5 Replies
Dec 13, 2009
This string:
<a href="viewtopic.php?t=4133849" class="topictitle">any</a>
I want to extract the id of the topic but fail ..
View 5 Replies
Jun 2, 2011
Say I have something like this
Dim Level1 as Integer = 83
Dim Goal as String
Goal = InputBox(" What level is your goal?")
[code].....
View 7 Replies
Feb 23, 2009
Can anyone tell me how to close a topic or how to stop replies?
View 1 Replies
Sep 22, 2009
I have read - recently - many topics concerning the connection of TCP/IP connecting versus using the old winsck connecting method. Currently, I'm in the middle of a project and I'm completely lost as to which direction to go because I've tried both directions (winsck & TCP/IP) without any sort of avail. Currently, I am attempting to create my own mud client (as a reference, you could look at Nerdy Mud Client @ SourceForge - I'm trying to recreate the VB6 project using VB 2008 EE).
[Code]...
View 1 Replies
Sep 25, 2009
i use this code to open help file with specified topic but it not work .
Help.ShowHelp(Me, "c://help.chm", HelpNavigator.TopicId, "1")
' Help.ShowHelp(Me, "c://help.chm", 'HelpNavigator.TableOfContents, "Thong tin")
Help.ShowHelp(Me, "c://help.chm", HelpNavigator.KeywordIndex, "Thong tin")
how can i do that ?
View 1 Replies
Aug 24, 2009
PrintPreviewDialog1.WindowState = FormWindowState.Maximized PrintPreviewDialog1.ShowDialog()
THAT IS THE ONLY CODE ON MY PRINT PREVIEW MY QUESTION IS HOW CAN I MAKE 2 PAGES DOCUMENT
PROBLEM: IN RICH TEXT BOX THE FILE WAS TOO LONG BUT WHEN I PREVIEW IT ,ITS ONLY 1 PAGES NO 2ND PAGE
View 1 Replies