|
i just want to know how programing on using com port.....
i want the device to send a data from my device to my vb interface....
my device is using micro controller
okies..thankss
ii
|
|
|
|
|
|
Hi All
I am using microsoft's web browser control in my application.
There is a bug in this component. In the application where i am using this component, the situation is like explained below.
I have a MDI Application with some forms like FORM1, FORM2 etc.
Lets assume that FORM1 has got web browser component, so when i load FORM1, it shows correctly and works normally. But incase i make the visibility of FORM1 to be false and show another form FORM2 and after some time make the FORM2 invisible and FORM1 as visible, web browser control crashes. It looks like a White Painted Window without a border and with no contents in it ( however there were contents in the form when it was made invisible) and also the control is in a dead state ie we cant do anything to it.
Any Solutions?
Sumit Domyan
|
|
|
|
|
Is there any easy way to Export data between tables with one SQL command without using DTS?
I found ExportData , i used but it doesnt work? how will i use it?
DB1.dbo.TheSameTable.ExportData (DB2.dbo.TheSameTable)
Thanks a lot I remember an Easy Way, Select Into Command then alter table for key fields
|
|
|
|
|
I have a web application that allows a use to attach a file and email to recipients. The app works fine while in debug mode, but the following senario does not work: A user at pc01 accesses my web app at resides on pc02, and tries to attach a file that resides on pc03. The file is shared amongst EVERYBODY. I gather that IUSR does not have access to this file, unless I explicitly give it access. I would like to us the page user's credentials and then authorise access to the file. does anybody know how I can go about doing this?
Thanks
|
|
|
|
|
If the file is an attachment posted by the user on PC01, then PC01 would be the authenticated user reading the file and sending it to the web app on PC03. The web server will not log into PC03 and "pick up" the file.
How are you attaching this file? Are you just giving the path to the file to the web app so it know where to find it or are you actually uploading the file to the web server in an HTTP POST?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
When I try to Add Reference of Visual Basics Package & Deployment Wizard in VB.net, i get following Error.
A reference to 'Package and Deployment Wizard' could not be added. Converting the type library to a .net assembly failed. Error loading type library/DLL.
Anybody can help me ?
Jatin Mehta
|
|
|
|
|
The Package and Deployment Wizard is an addin for Visual Studio 6, so I'm not surprised that it can't be imported. Why on earth would you want to do such a thing anyway? I can't think of a single reason to do this...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi,
I need to use a popup alert which is similar to MSN messenger in my project. I have seen a CodeProjct article on how to do this with ASP.NET, but it works only within a web browser. I need to know how I could do the same thing in a desktop environment, where the user gets a notification via a Popup Alert, periodically.
I dont mind using a prebuilt component even, as long as it is free. If not I would greatly appreciate if someone could give me some pointers on how to get this thing started. Any development language is fine as long as it's Microsoft technology.
Thanx a lot, in advance
Eraj
|
|
|
|
|
I've never used MSN Messenger, so I have no idea what your trying to accomplish. A more complete description or the requirements would probably help.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hey try doing a search here on codeproject.com for notification window or popup control. I have a seen a couple here in the C# controls...
[CDH]
Thanks cPod....
|
|
|
|
|
Hi,
I am programming in VB.NET compact framework . I am trying to create the program so the tabs on the tabcontrol is in color (for example, first tab would be all red, second tab would be yellow, third tab blue, etc...). I tried to use tabControl1.GetTabRect(0) to get the rectangle for the tab, but CF does not support getTabRect. Is there any other way to get the coordinates for the tab rectangle?
Thanks in advance,
John
|
|
|
|
|
Your question would be better handled in the Embedded/Mobile Forum[^]. It actually has nothing to do with VB.NET or any other managed langugage, but is more concerned with ownerdrawing a custom control in the .NET Compact Framework.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I am working on a few applications in VB.net which use a custom application context for many things such as showing the splash screen, database login form, and finally launching the main form. I have looked all over for a way to put a unhandled exception handler in the custom Application Context so anything that "spawned" from it so to speak would be covered if a exception occured. Is there a way that this can be done? I have tried a few of the examples on CodeProject but still no luck. Doing something like Throw New Exception("this is a test") without a Try Catch will cause the debugger to popup and not the exception handler.
Thanks in advance...
The network is down...let's go get bagels.
|
|
|
|
|
What do you mean by "custom Application Context"? Are you talking about AppDomains? Exceptions will not cross AppDomain boundries.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I am using Microsoft Access 97. I am programming the forms using visual basic that comes with Access 97. I am trying to get a certain date in a certain format but can't figure out why it doesn't work. I am updating an excel document.
Dim strDate as Date
strDate = Format(Now, "mmmm d, yyyy")
objSheet.Range("H9").Value = strDate
this produces 2/16/2005
I am trying to out put February 16, 2005
What am I doing wrong?
Thanks in advance!
Beginner in VB
|
|
|
|
|
There is nothing wrong with your VB format code. My guess is that your excel spreadsheet is reformatting the date value. Check the column formatting properties in Excel - the problem is not the VB part.
Robert
|
|
|
|
|
Your right but do you know how I can set the format to the right property in excel using VB?
I will set the value like this:
objSheet.Range("H9").Value = Now()
Then I should be able to use VB to format that excel object.
If I can set the horizontal alignment to right (objSheet.Range("H9").HorizontalAlignment = xlRight) then I should be able to some way set the format property to tell it to show the date as "February 17, 2005". Do you know how?
Thanks in advance!!
Beginner in VB
|
|
|
|
|
I'm fairly new to VB.NET, and am almost embarassed to ask this, but...
If I already have a form instance open and want to refer back to it, how do I do that?
Example
---------
Public F1 as New Form1 '(say it has two textboxes 1 and 2)
F1.show() 'Fill out TextBox1
Dim F2 as New Form2
F2.show()
Now I'm in the F2 instance of Form2. I get some input that I now want to put back into F1. When I try the following in F2
F1.TextBox2.Text="yadayadayada"
I get a syntax problem (squiggly underline) unless I re-instantiate F1 like so...
Dim F1 as New Form1
This, of course, results in a new F1 instance, not the one I had before.
Thanks for any help! If this is in any of my books, I can't seem to find it.
Hal in AZ
|
|
|
|
|
If the form is no longer visible, then even though the class instance exists, the window does not. You need to get F1 to store this string variable outside the textbox ( best place would be in the click event that closes the window ), so you can still get to it. It's the height of ugliness for a control variable to be public, in any case.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
Sorry for not being clearer. The instance F1 is still visible, and its control TextBox1 contains data I want to use. I simply go to F2 to collect additional data, and want to put that data back into the same instance (F1) of Form1.
Hal in AZ
|
|
|
|
|
OK - then I would still make the textbox private, and add a property to allow you to get it's text. That will also give you something you can step into in the debugger, to see what's going on.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
Still doesn't address the problem. Let's say that in F1, TextBox1 and TextBox2 are private. Now, I write methods doText1 and doText2 with both Get and Set capability. Now we've taken care of the private part. BUT...it still doesn't do what I want.
Inside of instance F2 (of Form2), I want to refer to these methods inside of instance F1 (of Form1). When I try to do something like F1.doText1.Set("yadayadayada") I still get a syntax error saying I haven't declared F1 from inside F2. In other words, inside of F2 any reference to F1 does not point to an instance.
On the other hand, if (inside of F2) I DO declare the instance F1, it creates a NEW F1 rather than referring to the one I already have opened.
I'd like, from instance F2 (of Form2), to be able to write something back to instance F1 (of Form1) without having the declaration construct a new instance named F1. Seems like this would be very easy, but I can't seem to get it to happen.
Hal in AZ
|
|
|
|
|
halhamilton wrote:
Still doesn't address the problem.
It addresses two things. One is a design problem, the other is that you now have a point of entry you can mark to see how far your code is getting, a step towards working out what the problem is.
halhamilton wrote:
Now, I write methods doText1 and doText2 with both Get and Set capability.
Properties you mean ? Why the set ?
halhamilton wrote:
F1.doText1.Set("yadayadayada")
What ? What is doText1 ?
halhamilton wrote:
In other words, inside of F2 any reference to F1 does not point to an instance.
Oh - I thought you were trying to call F1 from the code that holds F1 and F2. Unless you declare an instance inside F2 of F1, that is plainly the case. It sounds like you need to use an event and subscribe to it in the code outside of F2 and F1.
halhamilton wrote:
On the other hand, if (inside of F2) I DO declare the instance F1, it creates a NEW F1 rather than referring to the one I already have opened.
Well, now, that's obvious. That's what you'd have asked it to do. You could SET an instance of F1 to equal the instance you already have, but an event is a far better way to handle this.
halhamilton wrote:
Seems like this would be very easy, but I can't seem to get it to happen
It is very easy, but it's not the way to go. Look up events and delegates, that will put you on the right track.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
Thanks Christian. I'll give that a shot!
Hal in AZ
|
|
|
|