|
|
Hi,
Is it possbile to disable the topMost property on a complete vb.net program (.exe) or somehow bypass it... The software is started maximized and its topMost property is set to True so I cannot see any other forms while I run this program...
Thank you!
|
|
|
|
|
You gotta love idiot "developers".
There is no way to change it "application wide", but you can do it window-by-window, as they come up. You have to use the Win32 API functions directly to search for the titlebar text to get the window handle, then you can use that handle with other Win32 Window function calls to modify each window. I think you're looking for FindWindow[^] and SetWindowPos[^] functions at the least. You could be forced to use more of them in that category.
You may also just be wasting your time too. There's no guarantee that what you're doing will work at all, let alone 100% of the time.
|
|
|
|
|
Hi,
Dave is right. If it does not work (the app may refuse to resize, all depends on the
code), you should consider hooking up a second monitor (you can set up a dual-monitor
system such that maximize only fills one monitor).
Luc Pattyn [Forum Guidelines] [My Articles]
This month's tips:
- before you ask a question here, search CodeProject, then Google;
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get;
- use PRE tags to preserve formatting when showing multi-line code snippets.
|
|
|
|
|
Hi,
I just want to know the process how to communicate with different types of hardwares (like telephone,electronic equipments,epbex,etc) through coding and how to get output from them.
Please let me know about any link , topic,books.
I deadly looking for any information regarding this.
Thanks in advance.
amolk
|
|
|
|
|
aamn1 wrote: I just want to know the process how to communicate with different types of hardwares (like telephone,electronic equipments,epbex,etc) through coding and how to get output from them.
This is determined completely by the hardware and the interface's exposed by them and the interfaces they connect to on your computer. There is no one link, or even a dozen links, that's going to explain every possible situation. Your best source of information on this is going to be the documentation for each device. What you do to communicate with these devices must be handled on a case-bny-case basis. There is no one way to talk to everything.
|
|
|
|
|
--------------------------------------------------------------------------------
I am upgrading my VB app from VB6 to VB.Net
here is the code complaining the error ( warning)
i am new to VB and how to resolve the problem?
oTask = goPackage.Tasks.New(gsDTSExecuteSQLTask) givs the problem
code :
Public Sub Task_Sub1(ByVal goPackage As Object)
Dim oTask As DTS.Task
Dim oLookup As DTS.Lookup
Dim oCustomTask1 As DTS.ExecuteSQLTask2
'UPGRADE_WARNING: Couldn't resolve default property of object goPackage.Tasks. Click for more: 'ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"'
oTask = goPackage.Tasks.New(gsDTSExecuteSQLTask)
oTask.Name = gsCreateTable & sTalDbtbl & gsTask
oCustomTask1 = oTask.CustomTask
|
|
|
|
|
If you click on that link (if you have the MSDN Library installed) it will tell you that before you run the upgrade process, you should go through your VB6 code to determinewhat statements are using the default properties of object, such as the Text property of a TextBox, and modify the code to explicitly specify the property instead of relying on the compile to know what the default property is.
The warning is saying that the upgrade wizard cannot determine what the default property is on some object in that statement. You have to modify the code to explicitly specify the default property of all the objects involved.
|
|
|
|
|
Hi all,
I have a data byte array which further I will convert it as PDF and print it.
Can anyone help me in this regards.
Is there any chance to print directly from byte array without converting into PDF.
Thanks in advance
Senthil
|
|
|
|
|
Senthil_GeoEdge wrote: I have a data byte array which further I will convert it as PDF and print it.
Can anyone help me in this regards.
Help with what?? What is this data??
Senthil_GeoEdge wrote: Is there any chance to print directly from byte array without converting into PDF.
Are you asking how to print a bunch of numbers on a page??
|
|
|
|
|
Hi,
Thanks for reply.
In detail,
I have designed a .rdl report using SQL Report Services 2005 in a server.
I have vb.net program in my client machine to access that report.
After rendering that report in client, I recieve data in byte() format.
I further use file stream to write that as a PDF.
Now, I want to print that to a particular printer.
Here is the code.
=========Code Starts
Dim results As Byte()
results = objReportingService.Render(m_sReportPath, sOutputFormat, HistoryId, DeviceInfo, LoadParams(), RSCredentials, ShowHideToggle, Encoding, MimeType, RSParamsUsed, RSWarnings, StreamIds)
Dim fs As System.IO.FileStream
fs = System.IO.File.OpenWrite(m_sFilePath)
fs.Write(results, 0, results.Length)
fs.Close()
=========Code Ends
Now the question again.
I want to print that PDF file OR Is there any chance to print directly from byte array without converting into PDF?
I hope its clear.
Thanks
Senthil
|
|
|
|
|
In my application having a problem to load, datgridview which as 2 column textbox,and combobox .on load event table values as to be shown in datagrid view using above two controls,combobox should have drop down properity and it should accept the changes on run time (not in wizard by using code)
Franics K Antony
|
|
|
|
|
I'd like to help, but I can't make heads or tails of your problem description.
You have a DataGridView and, I think, you want to show 2 columns of data from a database, one is a TextBox column, and the other in a ComboBox column??
|
|
|
|
|
I have program that generates a report. I'm trying to output the report as a pdf file. I can get it to save to the computer in pdf format however the document only shows half the form as the other half is cut off. I've been trying to change the layout and page types without success. Anyone have any ideas how to get the report to output as either one piece or on 2 pages? Here is my code for the outputting part.
Public Sub SavePDFReport()<br />
' gives user ability to output copy of report as PDF and choose a location to save it to<br />
MsgBox("Save file in PDF format by selecting CutePDF as printer.", MsgBoxStyle.OkOnly)<br />
Dim pd As New PrintDialog<br />
<br />
pd.ShowDialog()<br />
<br />
PrintPDFForm.PrinterSettings.PrinterName = "CutePDF Writer"<br />
PrintPDFForm.PrintAction = Printing.PrintAction.PrintToPreview<br />
PrintPDFForm.Print()<br />
<br />
<br />
<br />
End Sub
|
|
|
|
|
If you have a library to generate PDFs, your best bet is to create a screenshot of your app and turn the bitmap into a PDF.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
|
Set FormBorderStyle to "none".
|
|
|
|
|
Java is a programming language with the feature "security". I just want to know how much vb.net is concerned with it?
Please answer this simple question....
Help mee
|
|
|
|
|
Java is a language, VB.NET is another. Neither is secure or insecure. Only the code you write in these languages is secure or otherwise.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I am using a DataGridView.
I will like to be able to edit the data entered by a user into the cells.
I put in a Validating procedure but when I check the contents of the cell it is Nothing.
Row = e.RowIndex : Col = e.ColumnIndex
Data = grdHSBC.Item(Col, Row).Value
Data and grdHSBC.Item(Col, Row).Value are Nothing when the procedure get control.
I do not understand this type of behavior and was hoping that someone could explain and also how do you check the validity of data if the cell returns Nothing???
|
|
|
|
|
If you are doing this validation on cell leave or any other leave event it will have this issue
Instead put this validation in end-edit event
Good luck
|
|
|
|
|
I have a client that works in security and has a program that displays all of the instances when a key card is used at one of the many locked doors they have and registers who's key was used, the door they were trying to open, the time of the attempt, and whether they were successful or not.
Now, the software they have can pull up a report based on a date range but it can't sort any other way. That is when they called me. I found that the format that the program saves a report only saves the schema of the report fields and none of the data, but I could send the report to the microsoft xps printer and got it to save me a xps file (the document printer would only save it as a tiff image).
So, now I have an xps document that I would like to load into a vb.net 2.0 app to do some searches on the document. Is there a way for vb.net to read this document as is, or do I need to convert it to another format?
|
|
|
|
|
XPS describes an image of a printed page, not the data in it, kind of like PostScript or HP's PCL. The .NET Framework, nor anything else for that matter, has no methods to turn the file back into the data that generated it. Basically, the file is useless to you.
You have to find some other way to export the data from that app or have it print in some other format that can output plain text or an XML file, or find some kind of export function in it.
|
|
|
|
|
Okay, that is what I was afraid of. Back to the drawing board.
|
|
|
|
|
I have used some data mining software in the past for just this sort of thing. Have a look at Monarch[^] by DataWatch.
Steve Jowett
-------------------------
It is offen dangerous to try and see someone else's point of view, without proper training. Douglas Adams (Mostly Harmless)
|
|
|
|