Visual basic 2010 project settings
Hi,
Could any one please tell me how to make my project appearance be a specific color depending on the text that is in a text document?
for example, me.backcolor = text document (C:\Users\MajorE.\Desktop\Setting.text.txt). text -and if the text document text = red then backcolor = red-
And another setting...
let's pretend that label 1 backcolor = yellow
Private
SubLabel1_Click(ByValsender
AsSystem.Object,
ByVale
AsSystem.EventArgs)
HandlesLabel8.Click
textdoucument.text (C:\Users\MajorE.\Desktop\Setting.text.txt)= yellow
endsub
the text in the text document will change when I click on a label to a different color
so that every time I put a color from one of my label then exit the application and open it again the back color will be the same color as I chose last time
I'm really into programing although I'm still new or a noob I'd like to learn more and more.
Thank you for reading
MajorE
MajorE,
Sorry but you have posted to a forum that deals exclusively with question/issues about customizing and programming Microsoft Project, a planning and scheduling application. I suggest you delete this post and find a more appropriate forum.
John
Similar Messages
-
Using Crystal Reports in Visual Basic 2010
I am trying to add several Crystal Reports to a new project and having a major problem. Here's the situation. I created a new Visual Basic 2010 project with only one form, In visual Basic I added Crystal Reports. I then imported a form that was created in Crystal Reports 8.5.
There were no errors and the report with valid data was visible. I then tried to run...it wouldn't run and 31 errors appeared.
Obviously I missed something. I have searched for a very simple basic tutorial and either can't find one or didn't recognize one.
Can anyone point me in the right direction.
MiltOk. So, you added the report to the project. Now we have to add the CR assemblies to the project, add the viewer (if need be) and fire it off. Simplest code would be:
Public Sub New()
' This call is required by the designer.
InitializeComponent()
' Add any initialization after the InitializeComponent() call.
CrystalReportViewer1.ReportSource = ("path to report")
End Sub
In this case you are using the viewer SDK to runt he report. The report will prompt for any logon parameters - but you can code these also. You can load the report via the engine as bellow. Again, the report will prompt. I prefer to use the engine as it is way more "extensible"...
Public Sub New()
' This call is required by the designer.
InitializeComponent()
' Add any initialization after the InitializeComponent() call.
Dim crReportDocument As New CrystalDecisions.CrystalReports.Engine.ReportDocument()
crReportDocument.Load("path to report")
'Bind the report to the viewer
CrystalReportViewer1.ReportSource = crReportDocument
End Sub
If you have a report added to the project (strongly typed) the code would be:
CrystalReportViewer1.ReportSource = New myReport()
For more details, I'd recommend looking at the sample app vbnet_win_simplepreviewreport.zip available from the following location:
https://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsfor.NETSDK+Samples
The developer help files are here:
[SAP Crystal Reports .NET SDK Developer Guide|http://help.sap.com/businessobject/product_guides/sapCRVS2010/en/crnet_dg_2010_en.zip]
[SAP Crystal Reports .NET API Guide|http://help.sap.com/businessobject/product_guides/sapCRVS2010/en/crnet_api_2010_en.zip]
- Ludek -
How do I get visual basic 2010 on my macbook pro?
How do I get visual basic 2010 on my macbook pro?
The Mac version is called Real Studio
That is not the same as Visual Basic. It is similar, but not the same. Unless something has changed in the last few years, it will not execute or create Visual Basic code. That may or may not be important to the OP, depending on whether he actually needs VB or just a product that is similar, but is an important point he needs to be aware of. -
I want to know how to set the password encrytacion a database. Accdb from Visual Basic 2010 for a report. Rpl
You have to connect via ODBC, then use code along the lines of what is described here:
http://scn.sap.com/thread/3526924
by me on March 28 and Jan on March 29.
Also see KBA: 1686419 - SAP Crystal Reports designer does not recognize Access *.accdb file
- Ludek
Senior Support Engineer AGS Product Support, Global Support Center Canada
Follow us on Twitter -
How to connect to oracle database from visual basic 2010 express edition
I have installed visual basic 2010 express edition on windows xp. But visual basic 2010 express edition supports Microsoft sql server database file,Microsoft sql server compact 3.5, Microsoft access database file. I want to connect to oracle database from visual basic 2010 express edition. So what drivers are required and how to do connectivity?
Hello,
I wasn't clear on what you were using to make the connection. I had a look in Visual Studio 2010 (don't have express to test sorry).
I think you mean the Data Sources available under the menu Data-> Datasources. this seems to match the description you give when I
look at the list of datasource options.
In here you can make ODBC connections via the Microsoft .net Data Provider .
If you select ODBC as a datasource you can see listed the DSN's you created - for example I see 2 which use the Oracle ODBC driver.
This assumes you installed an Oracle Client + the oracle version of the ODBC driver (comes with the oracle client).
Once you created a server connection then you should see it in the server explorer.
You can also download the Oracle Developer Tools for Visual Studio which is an add on for VS.
** I suspect this is only for VS 2010 and I didn't see that Express was supported.
http://www.oracle.com/technetwork/developer-tools/visual-studio/overview/index-097110.html
Let me know if that helps.
John -
Can i use visual basic 2010 console mode or later versions on a macbook?
hello. i want to buy a macbook but i am taking computer classes that require visual basic 2010 console mode or later versions. Can i use this on a macbook or does it work only on windows' laptops?
Sometimes they do work - i've done it before. I have a late 2008 Macbook Uni and used the install dvd of my 2009 Macbook White and it worked.
Why not just clone your hard drive? It'll save you a lot of time doing a clone rather than doing a clean install.
Unless you're having issues with your old set up or your old hard drive is dead.
You can download Carbon Copy Cloner - install your new hard drive in a external usb enclosure (around $10) and clone fromt here then test it before you install it in your Macbook.
Once you've done the swap, you can install your old hard drive in the USB enclosure and use it as a backup drive.
Good luck -
SQL SERVER 2012 and Visual Basic 2010
Can an SQL Server 2012 database function when used with a Visual Basic 2010 Program?
Milt
sirmiltCan an SQL Server 2012 database function when used with a Visual Basic 2010 Program?
Milt
sirmilt
Yes
Basically you can use any T-SQL query that you want, directly or through a Stored Procedure.
Ronen Ariely
[Personal Site] [Blog] [Facebook] -
Hello,
I am getting error messages when I compile a Visual C++ 2010 project that includes the Atlcomcli.h file.
The error messages are:
Error 1 error C2338: CVarTypeInfo< char > cannot be compiled with /J or _CHAR_UNSIGNED flag enabled c:\program files\microsoft visual studio 10.0\vc\atlmfc\include\atlcomcli.h
Search and found link to download hotfix KB982517. But no download available.
https://connect.microsoft.com/VisualStudio/feedback/details/613888/i-would-like-to-receive-hotfix-kb982517-or-make-this-available-in-the-downloads-section
Please help me to resolve this issue.
Thanks,
GaganI would have to ask: why are you using _CHAR_UNSIGNED? Is this really necessary? I have to admit that the fact that by default char in C++ is signed is an annoying fact, but most of us have just gotten used to it.
Have you tried the workaround
#pragma push_macro("ATLSTATIC_ASSERT")
#undef ATLSTATIC_ASSERT
#define ATLSTATIC_ASSERT(x,y)
#include <atlcomcli.h>
#undef ATLSTATIC_ASSERT
#pragma pop_macro("ATLSTATIC_ASSERT")
that is described in the link
https://support.microsoft.com/kb/982517?wa=wsignin1.0
David Wilkinson | Visual C++ MVP -
Can I use a dll created in Visual Basic 2010?
I am reading up on the new extention system for air 3.0.
I have successfully (I think) managed to integrate the Air 3.0 prerelease into Flash CS5.5 (I don't use flex or flash builder)
So now I am trying to read up and learn how to use extentions.
Now, I don't know C/C++. My experience with it has been very limited over the years. But I know visual basic pretty well as I have been using that since VB4. (back in the programming stone age, heh)
Right now, I have Visual Studio 2010 and Flash CS5.5.
I am developing for the iPhone and iPad and up until now I have created a working iOS application that works pretty well.
Can I create a dll in visual basic (A class library) and then use the extention system to load that into my application to run on the iOS mobile device?I thought I'd seen this question asked somewhere before, but I can't find the thread. In theory there should be no problem. However, you'll need to have both the LabVIEW 5.1 and LabVIEW 8.6 run-time engines installed, and I don't know if there are any operating systems on which both of those versions are supported. If the run-time engine is properly installed, then calling a LabVIEW-built DLL is just like calling any other DLL. There might be some special optimization if the calling application and DLL both use the same version of the run-time engine.
-
Can I change the color of a ProgressBar In Visual Basic 2010
Is there a way that I can change the Color/Colour of a ProgressBar, or is it a Color/Colour that I have to put up with?
At the Moment the Color/Colour is green...
Kind Regards Gary
Gary SimpsonHi Saygılarımla, Onur Güzel
Below is the code i have and where would i put your code:
ProgressBar1.Forecolor=Color.red
And I have been to my setting but I cannot find Visual Styles under project properties
Kind Regards
Gary
Public Class Form1
Dim CPU As Integer
Dim Ram As Integer
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Timer1.Enabled = True
Timer2.Enabled = True
End Sub
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
CPU = PerformanceCounter1.NextValue
Ram = PerformanceCounter2.NextValue
End Sub
Private Sub Timer2_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer2.Tick
ProgressBar1.ForeColor = Color.Aqua
If ProgressBar1.Value < CPU Then
ProgressBar1.Value += 1
ElseIf ProgressBar1.Value > CPU Then
ProgressBar1.Value -= 1
End If
If ProgressBar2.Value < Ram Then
ProgressBar2.Value += 1
ElseIf ProgressBar2.Value > Ram Then
End If
Label3.Text = ProgressBar1.Value.ToString + "%"
Label4.Text = ProgressBar2.Value.ToString + "%"
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Me.Close()
End Sub
End Class -
Visual Basic 2010 Msg Box Help
Hey,
I was working on a maze project yesterday. I removed the solution and all the files that are included away to an external device, not on my Windows 7 PC. However, a message box keeps popping up at random moments and I have to click about 30 times to get
rid of them all. This was a problem in my project, and i realize it must still be running somewhere even though it is not still on the PC. how do I stop this?
ThanksHey,
I was working on a maze project yesterday. I removed the solution and all the files that are included away to an external device, not on my Windows 7 PC. However, a message box keeps popping up at random moments and I have to click about 30 times to get
rid of them all. This was a problem in my project, and i realize it must still be running somewhere even though it is not still on the PC. how do I stop this?
Thanks
Try using Resource Monitor or Task Manager to find the process running and make it exit.
You don't explain what the message box is for or what it says.
And by working on I suppose you mean working on a project in and running it from Visual Studio?
Did the project use threading of some style in which a thread is still running from the project?
Is Visual Studio running?
You don't really provide much information in order to assist you.
La vida loca -
HELP NEWBIE Integrating CR into Visual Basic 2010 pro
I am creating reports in CR for ms visual studio(VB) how do I do this I am lost. I do not understand how to have a menu written in vb. A menu with reports that a user can select which report to run. I have been tring to do this for weeks. I am using SQL which is on a MS SBS. Any help would be grateful.
ThanksHi William,
Could you provide the version of CR and VS you are using?
Also, have you designed the report? do the report work fine from CR designer?
Designing Crystal reports from designer and viewing them from a .NET application are two different things. For a report to work fine from application, it is important that the report should work fine from designer. It is the CR designer where you could connect to the database and drop the DB fields on the report. Once the report is designed and works fine when refreshed then it can be viewed from a .NET application.
To design a report,
- start a new app in VS
- add a new item as a Crystal Report. It will automatically launch the reportcreation wizard for you.
Select the database and add the fields to the report.
The simplest VB.NET application to view reports is using below procedure.
- Start a new app in vosual studio.
- Drag a Crystalreportviewer from toolbox and drop on the form.
- Assign a reportsocurce as your report to the viewer and run the app.
- reprot will prompt for the DB credentials.
And then you could go on adding code to your app..
See the CR.NET sample applications here: http://wiki.scn.sap.com/wiki/display/BOBJ/Crystal+Reports+for+.NET+SDK+Samples
- Bhushan
Senior Engineer
SAP Active Global Support
Follow us on Twitter
Got Enhancement ideas? Try the SAP Idea Place
Getting started and moving ahead with Crystal Reports .NET applications. -
How do i use directX in microsoft visual basic studio 2010 express ?
i am writing code to graph stock market prices using microsoft visual basic studio express
i want fast response (i do machine language) using directX
this is my problem
i have never used directX, and i have never used directX in visual basic studio
i followed a tutorial that went like this
Reference: Microsoft.DirectX
Microsoft.DirectX.Direct3D
Microsoft.DirectX.Direct3DX
Imports: Microsoft.DirectX
Microsoft.DirectX.Direct3D
Microsoft.DirectX.Direct3DX
Declare: Private D3Ddev As Device = Nothing
Private D3Dpp As PresentParameters = Nothing
Private DP As DisplayMode = Nothing
i found the reference dll's at C:\Windows\Microsoft.NET\DirectX for Managed Code\1.0.2902.0
when i imported microsoft.directX.direct3DX i got error #1
namespace or type specified in the imports 'microsoft.directX.direct3DX' doesn't contain any public member or cannot be found...
the same error occurs wether i use direct3DX \1.0.2911.0 or \1.0.2902.0
when i built and ran, i got error #2
microsoft visual basic 2010 express is waiting for an operation to complete ...
it hangs and i have to soft reset ctrl-alt-del
error #3
when i reference
Microsoft.DirectX
Microsoft.DirectX.Direct3D and
Microsoft.DirectX.Direct3DX
from C:\Windows\Microsoft.NET\DirectX for Managed Code\1.0.2902.0,
all my declares work:
D3Dpp = New PresentParameters() 'Initialize
some stuff for the Presentation parameters
D3Dpp.BackBufferFormat = DP.Format
D3Dpp.BackBufferWidth = DP.Width
D3Dpp.BackBufferHeight = DP.Height
D3Dpp.SwapEffect = SwapEffect.Discard 'There's flip, copy, and discard. Flip and Discard
are used most often.
D3Dpp.PresentationInterval = PresentInterval.Immediate 'Present the scene immediately
but when i start debugging (f5), i get this error message:
mixed mode assembly is built against version 'v1.1.4322' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information
i dont fully understand the visual studio process, but i think 'mixed mode' means run and debug. two seperate app's
i know this is a long question, but the forums don't answer it properly
i want it answered concisly. i am running windows 7 basic, and this is my question
can somebody give me a dozen lines of directX code that will work with my system, so that i can at least draw a line using directX 2D and 3D ?
thanks everybody :)Hi,
Thank you for your post.
I am afraid that the issue is out of support range of VS General Question forum which mainly discusses
WPF & SL designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System
and Visual Studio Editor.
Since your issue is related to DirectX, I suggest you consult on DirectX forum:
http://xboxforums.create.msdn.com/forums/ for better response.
Thanks,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Crystal reports integration with sql server and visual studio 2010
when I am trying to open a crystal report through code ( visual basic 2010 ) I get the error
the report has no tables
I am using SQL SERVER 2008 R2
HERE IS THE CODE I WROTE
Imports System.Data
Imports System.Data.OleDb
Imports CrystalDecisions.CrystalReports.Engine
Imports CrystalDecisions.Windows.Forms
Imports CrystalDecisions.Shared
Public Class frmRep
Dim objConnection As New OleDbConnection("Provider=SQLOLEDB;Data Source=ASHRAF-PC\SQLEXPRESS;Integrated Security=SSPI;Initial Catalog=TEST")
Dim objDataAdapter As New OleDbDataAdapter()
Dim objDataSet As New DataSet()
Private Sub CrystalReportViewer1_Load(sender As System.Object, e As System.EventArgs) Handles CrystalReportViewer1.Load
End Sub
Private Sub frmRep_Load(sender As Object, e As System.EventArgs) Handles Me.Load
Dim cr As New ReportDocument
objDataAdapter.SelectCommand = New OleDbCommand()
objDataAdapter.SelectCommand.Connection = objConnection
objDataAdapter.SelectCommand.CommandType = CommandType.Text
objDataAdapter.SelectCommand.CommandText = "select * from bands"
objConnection.Open()
objDataAdapter.Fill(objDataSet, "bands")
objConnection.Close()
cr.Load("D:\MY VB 2010 PROJECTS\test2\test2\CrystalReport1.rpt")
cr.SetDataSource(objDataSet.Tables("bands"))
CrystalReportViewer1.ReportSource = cr
CrystalReportViewer1.Refresh()
End Sub
End ClassI suggest you post that question in a Crystal Reports forum.
Markus -
Compile Plug-in with Visual Studio 2010 beta
Hello there,
I know that only Visual Studio 2005 is supported for the Acrobat SDK. But maybe one of you is also experimenting with visual Studio 2010 and got it to work.
I get the following error message. Did anyone solve this problem.
Error 105 error MSB3073: The command "if not "¬roSDKPIDir%"a == ""a if not exist "¬roSDKPIDir%" mkdir "¬roSDKPIDir%"
if not "¬roSDKPIDir%"a == ""a copy "C:\Users\test\Documents\Visual Studio 2010\Projects\EPapers_Button\EPapers_Button\Debug\EPapers_Button.dll" "¬roSDKPIDir%"
if not "¬roSDKPIDir%"a == ""a echo EPapers_Button copied to "¬roSDKPIDir%".
if "¬roSDKPIDir%"a == ""a echo not performed. AcroSDKPIDir environment variable not set.
:VCEnd" exited with code 255.
Thanks for your help.this is something that i tried i set AcroSDKPIDir to
C:\acrobatxsdk\Adobe\Acrobat 10 SDK\Version 1\PluginSupport\Samples\WeblinkDemo\win32\Debug
and in th e post build events i did the following
<Target Name="PostBuildEvent" Condition="'$(PostBuildEventUseInBuild)'!='false'">
<Message Text="Description: %(PostBuildEvent.Message)" Condition="'%(PostBuildEvent.Message)' != '' and '$(AcroSDKPIDir)'"/>
<Exec Command="%(PostBuildEvent.Command)$(BuildSuffix)" Condition="$(AcroSDKPIDir)"/>
</Target>
can u be plzz more specific in terms of it
the error i got is
Error
84
error MSB4100: Expected "$(AcroSDKPIDir)" to evaluate to a boolean instead of "C:\acrobatxsdk\Adobe\Acrobat 10 SDK\Version 1\PluginSupport\Samples\WeblinkDemo\win32\Debug", in condition "'%(PostBuildEvent.Message)' != '' and '$(AcroSDKPIDir)'".
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets
112
61
WeblinkDemo
Maybe you are looking for
-
How to upload the data from legacy system database to SAP data base
Hi. We are doing analysis of Legacy system and which needs to be converted to SAP system i.e. SAP implementation. I just want to know , how we migrate the existing whole data( from legacy system) into SAP system. and which method is the best method t
-
Hi, Recently I have noticed an issue with how the Roles function on our server works. We have two Roles per computer in the Database. One role specifies the Task Sequence and any other specific details and the other role specifies any additional appl
-
XMII query against a SAP NetWeaver database
Hi all, I have set up a data server for a SAP NetWeaver MSSQL database (DX1 on SAPSRV03) for SAP Web AS 6.40. The status of this data source shows OK. I try to create a new query template. In the SQL Query details, I can see the list of the tables an
-
How to embed flash media encoder
I wanted to know if it is possible to embed the flash media encoder in a webpage to allow a user to encode a video input without having to download the software on their computer. I have seen several sites (Ustream, LiveStream) have this in place. I
-
The never-ending iWeb issues...
So I've officially had it up to the back teeth with iWeb screwing up my website.... I'm constantly getting the error message: "iWeb couldn't connect to MobileMe. Make sure your Internet connection works and try again" I am connected, so I'm completel