|
hmm, Thanks..
how about this??
private final static int APP0 = (int)0xE0;
private int[][]Huffval = new int[4][];
|
|
|
|
|
|
Dear friends,
I have one machine who is creating one kind of image which contains some important data. By this data I am making calculation to get the result.
Can some one tell me how can I read that data from the image directly by vb.net and use it in the program without manual calculation. It means can I read the data written on the image.
Your quick response will be hihgly appriciated.
Thankxx
Patel Murtuza
|
|
|
|
|
Your best solution is going to be some kind of Optical Character Recognition, or OCR. You can find a bunch of articles here[^] on CodeProject.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
How to skin forms of .net
How to give diffrent skins to .net forms
Harshad Pednekar
|
|
|
|
|
if u use .NET xpress edn i.e. 2005 edn, there u can Enable XP visual styles, that means if u install some theams in XP, that u will see in ur form!
if not then create a file say ini file which should contains the color values of buttons..etc..etc
a typical file may look like:
// comments
$ Form.backcolor=<some value="">
$ Form.buttons=<some value="">
// blah blah
save that file according to some skin name, say "Matrix.skin"
and when ur loadin ur app read all da color values from dat file and set up ur GUI.
Remember u shud setup a default skin file.
Hope dat helps.
this is not the end, this is how its goin to begin !
|
|
|
|
|
Sorry but i use Visual Basic 2003
So how can i come up with this problem
plz give me the solution if u can
Regards,
Harshad Pednekar
|
|
|
|
|
hi there,
i want to add a listview like another childnode after all child nodes of a parentnode
iam able to add listview but the problem is iam unable to add like another child node
that listview should be displayed after all child nodes when we expand any parent node
i will be very thankful if anybody can help me out
thanks in advance
nagaraju kondepudi
|
|
|
|
|
Child nodes are displayed in the order that they're added to the Nodes collection of the parent. Sooooo, you'd have to remove the ListView from the parents Nodes collection, add your new child node, then put the ListView back into the collection.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
first of all thanks for your interest
i can add a listview to treeview but the problem is how to increase indent.
that is listview is overriding all child nodes and remaning node of that treeview.so i want to increase enough height so that after listview remaining nodes will be displayed properly.
thanks in advance
nagaraju kondepudi
|
|
|
|
|
kondepudi nagaraju wrote: but the problem is how to increase indent.
Now you've changed the question.
If you want to increase the indent while being a member of the same parent as other nodes, you'll have to owner-draw the listview. There's no other way. Search the articles here for "custom listview" for some examples.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
i am writeing the next code in a click button ,
when i run it and put a value , it dose not display the value it display the hole report ...
Dim MyParameterFields As New CrystalDecisions.Shared.ParameterFields
Dim MyParameterField As New CrystalDecisions.Shared.ParameterField
Dim MyDiscretValue As New CrystalDecisions.Shared.ParameterDiscreteValue
MyParameterField.ParameterFieldName = "ComplaintID"
MyDiscretValue.Value = TextBox1.Text
MyParameterField.CurrentValues.Add(MyDiscretValue)
MyParameterFields.Add(MyParameterField)
crv1.ParameterFieldInfo = MyParameterFields
crv1.ReportSource = "C:\sadranim_new\CrystalReport1.rpt"
any help will be appreciated ..
|
|
|
|
|
Heeeelp! This error occured when I created a new form and tried to build the solution. I did absolutely no changes to the form, just created it and tried to build. Help!
Error 1 <br />
<br />
The "GenerateApplicationManifest" task failed unexpectedly.<br />
System.Xml.XmlException: Root element is missing.<br />
at System.Xml.XmlTextReaderImpl.Throw(Exception e)<br />
at System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo(String res)<br />
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()<br />
at System.Xml.XmlTextReaderImpl.Read()<br />
at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)<br />
at System.Xml.XmlDocument.Load(XmlReader reader)<br />
at System.Xml.XmlDocument.Load(Stream inStream)<br />
at Microsoft.Build.Tasks.Deployment.ManifestUtilities.TrustInfo.Read(Stream s, String xpath)<br />
at Microsoft.Build.Tasks.Deployment.ManifestUtilities.TrustInfo.Read(String path)<br />
at Microsoft.Build.Tasks.GenerateApplicationManifest.AddClickOnceFiles(ApplicationManifest manifest)<br />
at Microsoft.Build.Tasks.GenerateApplicationManifest.BuildApplicationManifest(ApplicationManifest manifest)<br />
at Microsoft.Build.Tasks.GenerateApplicationManifest.OnManifestLoaded(Manifest manifest)<br />
at Microsoft.Build.Tasks.GenerateManifestBase.BuildManifest()<br />
at Microsoft.Build.Tasks.GenerateManifestBase.Execute()<br />
at Microsoft.Build.BuildEngine.TaskEngine.ExecuteTask(ExecutionMode howToExecuteTask, Hashtable projectItemsAvailableToTask, BuildPropertyGroup projectPropertiesAvailableToTask, Boolean& taskClassWasFound)
----
Dim Sleepy as Boolean = True
If Me.Sleepy = True Then
Goto Sleep
End If
----
|
|
|
|
|
Try killing off the bin folder in your project folder. If that doesn't work, move the project folder to the root of the drive and see what happens.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I want some help(in terms of code) on how to read a particular job(in mainframe) that runs daily and to get the time at which it has run.I want the code in VB only.The port is 23 and 3270 emulation mode.I want the code urgently.I use Extra! Personal CLient. In that I check in SAR everyday whether a particular job has run or not anf if so what's the date & time.
-- modified at 6:24 Monday 20th February, 2006
|
|
|
|
|
You'll need a 3270 emulation class library. If you don't have one, I highly suggest picking one up (Google results[^]) instead of trying to write your own.
You'll then have to send the appropriate commands to the mainframe to get what you want. Just like you would if you were sitting at the keyboard yourself. You'll then parse up the returned screen using the 3270 class to get the information.
We really can't be any more specific then that because 1) Each 3270 class library is going to be different, and 2) each mainframe implementation of whatever scheduler is going to be different.
For more information, consult the documentation on the 3270 library your using.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-- modified at 10:53 Monday 20th February, 2006
|
|
|
|
|
Hi,
This question is more out of curiosity rather than a neccesity.
VB .Net is Object Oriented. It's my understanding that object can be referenced by other objects, does this mean that if it's value changes, other object needn't ask it what it's new value is?
I'm still trying to grasp the concept though.
If I have a "Public Overridable ReadOnly Property" which is in a class that I did not create, how can I add my code to that property? I can't edit code in a COM control's class, maybe override??
What I want is live tracking of any changes in the value of that property. (Hence the question above)
Is there any object I can put in a form to display the value of that property even when it changes without me having to poll that object to ask it for it's property's value?
Thanx!
|
|
|
|
|
Your questions are confusing, but I will give it a try...
It's my understanding that object can be referenced by other objects, does this mean that if it's value changes, other object needn't ask it what it's new value is?
No, it does not mean that. If you have a class C, which has a property x, from which you make an object O, then you can reference that property as O.x. If the value of x changes, and after it changes you reference O.x again, you will get the new value. Technically, you are asking for it's new value when you do this.
If I have a "Public Overridable ReadOnly Property" which is in a class that I did not create, how can I add my code to that property? I can't edit code in a COM control's class, maybe override??
Yes, if the class is overridable, then you can override it. You can define a class C2 which can inherit class C. In C2 you can define a new x method using your own code. Then when you make an object O2 from C2, you can reference O2.x and it will use your new code. However, if you reference some other property that you did not override is C2, say O2.y, then it will use the code from the original C.y.
I hope this helps.
Roy.
|
|
|
|
|
Hi,
I am creating a web parts control containing a listbox, a button and a context menu using visual basic.net. I have created both controls and would like to add a selectionIndexChanged event handler for the listbox but the intellisense list did not display the listbox control.
Here is a code snippet:
Protected Overrides Sub CreateChildControls()
listbox1 = new listbox //adding a listbox control
listbox1.ID = "List1"
listitem1.Text = "Testing"
listbox1.Items.Add(listitem1)
Me.Controls.Add(listbox1)
//intellisense didnt display the listbox for event handling! [?]
button1 = new button //adding a button control
button1.ID = "Button1"
button1.Text = "Test"
Me.Controls.Add(button1)
AddHandler button1.Click, AddressOf button1_Click //intellisense did include the button control for event handling
End Sub
How do I allow event handling for the listbox? It seems that vb was unable to recognise the listbox for AddHandler
|
|
|
|
|
KaKa` wrote: //intellisense didnt display the listbox for event handling! [?]
Intellisense will only work with controls and classes that are created at design time. It won't show you anything about the controls your added because they only exist, or are created, at run time. You'll have to code the event handlers and wire them up (using AddHandler) by hand.
listbox1 = new listbox
listbox1.ID = "List1"
listitem1.Text = "Testing"
listbox1.Items.Add(listitem1)
AddHandler listbox1.SelectedIndexChanged, AddressOf ListBox1_SelectedIndexChanged
Me.Controls.Add(listbox1)
.
.
.
Private Sub ListBox1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs)
' Your event handler code goes here.
End Sub
If you dynamically create controls at runtime, you have to wire up any event handlers yourself.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
You need to define your listbox variable at the class level using the 'withevents' keyword. Here's an example:
<br />
Public Class Form1<br />
Private WithEvents list1 As ListBox<br />
<br />
Private Sub Form1_Load(yada,yada) Handles MyBase.Load<br />
list1 = New ListBox<br />
list1.Text = "Testing"<br />
End Sub<br />
End Class<br />
You should find that intellisense will give you the options you were missing.
|
|
|
|
|
Thank you for the replies
I have followed both advice and there is now an event handler for the listbox
|
|
|
|
|
How to compare two email is the same or not?
In my Case, A email
From : Kay
To : Jay, Amy
CC : Apple
Compare with kay's inbox, Jay's inbox, Amy's inbox, and Apple's inbox.
They have the same email.
Does any ID helps?
PS. Some Email is internal email, SMTP ID cannot use in my case.
Thanks!
|
|
|
|
|
Hi!
Have created an OnScreenKeyboard in a VB.NET winform but the rendering of the buttons is so slow that when selecting a new keyboard layout you see the buttons disapear and come back one at the time. Although it's kind of a cool effect, it's not what I want for this prjoject.
I'd like to implement a BeginUpdate and EndUpdate functions. Do I override the onpaint event or how can I achive this?
-- modified at 3:16 Monday 20th February, 2006
|
|
|
|
|
You can try using the Form's SuspendLayout and ResumeLayout methods. Call SuspendLayout , add all your controls to the Forms Controls collection, then call ResumeLayout .
You've run into the problem with using LOTS of controls on a form. They're slow to create and draw.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|