|
Thank you!!
I couldnt find it because only the "All Windows Form" was showing, and I finally found it in the "WindowsApplication1 Components" box.... guessing it matches my project name.
It would've been if we had the ability to suppress the events directly.. but you got me going.
|
|
|
|
|
Yes, you'd think there would be an easier way of controling that behavior. I find it a bit strange that there isn't at least an ability to suppress a mouse click. We can suppress keyboard keys so why not mouse clicks. In this case however it may not have been enough because you still want the context menu to appear. Anyway's, who knows maybe there is simple solution and I missed it However, I assume you looked for an obviouse answer and I know I did. So were 0 for 2. Glad you found the control and I assume all is working.
|
|
|
|
|
Well thanks !
I am using a Canon EOS with a Canon SDK, and an Allmotion servo control and a Garmin GPS
I can use
Using com1 As IO.Ports.SerialPort = My.Computer.Ports.OpenSerialPort("COM4")
on error return
com1.WriteLine(CommDataOut)
End Using
to get to the servo (it is still a bit flaky) - I am using CP2100 usb-to-uart bridge software and it shows in the device window as COM4
Next task is to scan the ports to get the location of the (serial usb) devices - I wil target the Garmin GPS 60 first
Any Ideas ??
Thanks !!
bob
|
|
|
|
|
There is nothing that will scan the ports for a device for you. You have to write the code to attempt to open each COM port using the settings that the device expects (baud, bits, parity, stop bits, ...). If the port opens, you then try to send a command that the device expects and see if you get a correct repsonse. If so, you found it! If not, try the next port.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
This may seem like a very basic question, but im a novice!
I have an MDi form, and i want to load up my other vb.net forms into it, so basically, running my application from within the MDi form.
Can someone give me some advice on this as it is stressing me out a bit!
Thanks
|
|
|
|
|
I use them quite a bit in C# and they are for the most part quite easy. There is a very good article IMHO SuiteApp
That is a great example of how to get started with the Mdi Forms. Just to get you started use the IsMdiContainer property to get the Mdi parent setup then set the children to open inside of the parent. The C# example will give you the syntax you need to Load the child forms. I have written a couple of app frameworks in .net 1.1 and 2.0 that are very similar and it really becomes easy after awhile.
By the way if Mark's example helps give him a good review it takes a lot to write an article.
|
|
|
|
|
I wonder can someone help me with a project im working on
I am currently creating an WebSite in asp.net, which links to some crystal reports. Now im new to asp.net and dont have an advanced level of VB knowledge. However i was able to view the reports on an .aspx page using the crystalreportsviewer object. Now what im trying to do seems extremely simple but yet i havent found a simple explanation on the web.
My report designed in VisStudio 2005, prompts for a parameter before executing and displaying the result. So simply, what i would like to do is link to the report and pass this parameter without having to manually enter it on the webpage!
So i am going to pass the value via a querystring into the page to contains the viewer, upon which the code will set this value as the parameter and request the report! Here's the code i have with just the viewer;
<br />
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %><br />
<%@ Register TagPrefix="CR" Namespace="CrystalDecisions.Web" Assembly="CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" %><br />
<br />
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><br />
<br />
<html xmlns="http://www.w3.org/1999/xhtml" ><br />
<head runat="server"><br />
<title>Untitled Page</title><br />
</head><br />
<body><br />
<form id="form1" runat="server"><br />
<div><br />
<br />
< CR:CrystalReportViewer ID="CrystalReportViewer1" Runat="server" AutoDataBind="True"<br />
Height="947px" ReportSourceID="CrystalReportSource1" Width="845px" /><br />
< CR:CrystalReportSource ID="CrystalReportSource1" runat="server"><br />
<Report FileName="CrystalReport1.rpt"><br />
<br />
< /Report><br />
< /CR: CrystalReportSource><br />
<br />
</div><br />
</form><br />
</body><br />
</html><br />
I have read article that say to use the reportdocument class, but i cannot find sny information on how to use this!
Surely there HAS to be a simply way of setting the parameter, something like this: parameter.name.value = "Value"
Anyway any help would be greatly appreciated!
-- modified at 4:50 Tuesday 23rd January, 2007
|
|
|
|
|
date and time picker control to display time only and not date.
|
|
|
|
|
not sure if is this way in 2003 but in 2005, change the format property to 'time'
|
|
|
|
|
I am trying to make a custom control. Should I extend the UserControl Class or should I extend the Button or TextBox or whatever class?
What are the differences of each inheritance?
Can anyone recommend any tips or articles?
Yoshimitsu
|
|
|
|
|
That depends on what you are trying to do.
If you are simply trying to add a need feature to a textbox then it might just be simpler to start by inheriting from TextBox and move on.
If you want to build a textbox with tons of new things that the existing textbox does not do then you may want to start with a blank control and take care of everything yourself.
If you are just building a small enhancement do not overlook building an extender control.
|
|
|
|
|
Thanks Ray.
What I need to do is make a round button, so I am a little confused if I should extend the button class or UserControl. I guess usercontrol will not give me all the functionality of a button but then if I extend button will I be able to make it round? My guess is no.
Yoshimitsu
|
|
|
|
|
Each Control has its own Region
You Should Make an Elliptic Region For You Button if You Use Button.
But if You Use Usercontrol.You have to set the region to an elliptic one and also make some changes in mouseclick event of usercontrol to make your control having click event like a button.
AEK
|
|
|
|
|
Hi,
I'm using an USB API writed in C++. I've declared each function in VB.net and it works ok. But I'd like to have a VB.net event when USB data is available (like VB COMM control). I thought to make an user control with a timer control inside, where I could evaluate a variable and depending on the state, raise an vb.net event, but I guest it is not a good programming practice.
Could anyone suggest me any solution ?
Thanks
coadorna2003.
german
|
|
|
|
|
A Timer is a lousy way to go. It generates a ton of execution overhead since the code attached to the Tick event has to constantly poll to see if there's data available.
The best option is if the library you're using exposes this functionality. Somehow, I doubt it, because that's something that normally left up to the driver of the USB device to supply.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Sorry to ask what is probably an elementary question, but I've searched the site and other places for this. Clearly, my general understanding of the underlying architecture is a bit weak.
Is there a particular advantage to sharing methods through modules rather than instantiating them from a class? I found for instance that synclock() doesn't work in a module, but works fine from a class. That got me to wondering about why modules are used at all.
|
|
|
|
|
Modules are there for backwards compatibility with the older version of VB. Going forward it would be best to use classes. If you want to use the features that modules really used to be used for (a place to put functions that could be called from anywhere) consider a cl;ass with shared members instead.
|
|
|
|
|
Hello every one,
I created a project with ClassLibrary(Visual Basic 2005) and I added a ComClass file to it .In ComClass there are some functions and when I run this project it creates a dll file and I can access to all of functions that I defined in ComClass .I call this dll in a Macro in Word(microsoft office 2003) ,I can see all of functions that I define in my ComClass file but I need to access to a global variable in this ComClass ,I defined a public variable in top of ComClass file but I can not see and access to it from out of project.I mean I can not see global variable from Macro that uses this dll.
If any one knows how can I use global variable in ComClass please Inform me.
I'd appreciated for any help.
yours sincerely.
Orchid
|
|
|
|
|
Hi,
How do I set both bold, italics and underline style to my text box value dynamically.
Regards
Rams.
Be simple and Be sample.
|
|
|
|
|
A regular TextBox does not support formatted text. You can use a RichTextBox instead.
---
Year happy = new Year(2007);
|
|
|
|
|
Actually it does support it:
Me.TextBox1.Font = New System.Drawing.Font("Microsoft Sans Serif", 9.75!, CType((System.Drawing.FontStyle.Bold Or System.Drawing.FontStyle.Italic), System.Drawing.FontStyle), System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
|
|
|
|
That is formatting of the text box, not formatting of the text box value as the OP asked for.
But, then again, perhaps the OP doesn't want what he asks for. That is not so uncommon...
---
Year happy = new Year(2007);
|
|
|
|
|
how to compress a file in vb.net?
meaning
having a 'txt' file ,how can i compress it
Regards
Ramy
|
|
|
|
|
Do you have .NET 2.0 ? I think it has zip support.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
yep i noticed that...
but can you just tel me how to zip the folder ,coz i m fed up with that?
thx
Regards
Ramy
|
|
|
|